and placing them where the rest of the build scripts expect them. OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/pdfquirk?expand=0&rev=8
71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package pdfquirk
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2007-2011 Klaas Freitag <freitag@kde.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: pdfquirk
|
|
Version: 0.95
|
|
Release: 0
|
|
Summary: App to create PDFs from images or scans
|
|
License: GPL-3.0-only
|
|
Group: Productivity/Office/Other
|
|
URL: https://dragotin.github.io/quirksite
|
|
Source0: https://github.com/dragotin/pdfquirk/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: pdfquirk_es.ts
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: cmake(Qt6Core)
|
|
BuildRequires: cmake(Qt6Gui)
|
|
BuildRequires: cmake(Qt6LinguistTools)
|
|
BuildRequires: cmake(Qt6Widgets)
|
|
Requires: ImageMagick
|
|
Recommends: deskew
|
|
Recommends: sane-backends
|
|
|
|
%description
|
|
PDF Quirk helps to generate PDF files from images from storage
|
|
or directly from the scanner.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
# Update the spanish translation that came in after release
|
|
cp %{SOURCE1} resources/
|
|
|
|
%build
|
|
|
|
%cmake_qt6 -DUSE_QT6=yes
|
|
# First build the localization files and copy them to the resources directory
|
|
cmake --build build -- pdfquirk_lrelease
|
|
cp build/src/*.qm resources/
|
|
%{qt6_build}
|
|
|
|
%install
|
|
%{qt6_install}
|
|
|
|
%suse_update_desktop_file -r de.volle-kraft-voraus.pdfquirk Graphics Scanning
|
|
|
|
%files
|
|
%{_bindir}/pdfquirk
|
|
%{_datadir}/applications/de.volle-kraft-voraus.pdfquirk.desktop
|
|
%{_datadir}/icons/*/*/*/*.png
|
|
%{_datadir}/metainfo/de.volle-kraft-voraus.pdfquirk.appdata.xml
|
|
|
|
%doc AUTHORS README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|