fa912de2b5
More appropriate here than GNOME:Apps, will look at moving to TW as well OBS-URL: https://build.opensuse.org/request/show/460616 OBS-URL: https://build.opensuse.org/package/show/Publishing/gscan2pdf?expand=0&rev=1
112 lines
3.1 KiB
RPMSpec
112 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package gscan2pdf
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gscan2pdf
|
|
Version: 1.7.2
|
|
Release: 0
|
|
Summary: Easy scan to PDF
|
|
License: GPL-3.0
|
|
Group: Productivity
|
|
Url: http://sourceforge.net/projects/gscan2pdf/
|
|
Source0: http://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/gscan2pdf-%{version}.tar.xz
|
|
Source99: %{name}-rpmlintrc
|
|
BuildRequires: fdupes
|
|
BuildRequires: update-desktop-files
|
|
Requires: perl(Config::General)
|
|
Requires: perl(Date::Calc)
|
|
Requires: perl(Glib)
|
|
Requires: perl(Goo::Canvas)
|
|
Requires: perl(Gtk2)
|
|
Requires: perl(Gtk2::Ex::Simple::List)
|
|
Requires: perl(Gtk2::ImageView)
|
|
Requires: perl(Image::Magick)
|
|
Requires: perl(List::MoreUtils)
|
|
Requires: perl(Log::Log4perl)
|
|
Requires: perl(PDF::API2)
|
|
Requires: perl(Proc::Killfam)
|
|
Requires: perl(Readonly)
|
|
Requires: perl(Sane)
|
|
Requires: perl(Set::IntSpan)
|
|
Requires: perl(Try::Tiny)
|
|
Requires: perl(Filesys::Df)
|
|
Requires: perl(Data::UUID)
|
|
Requires: unpaper
|
|
Recommends: %{name}-lang
|
|
Recommends: djvulibre
|
|
Recommends: gocr
|
|
Recommends: tesseract-ocr
|
|
Recommends: tiff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%{perl_requires}
|
|
|
|
%description
|
|
A GUI to ease the process of producing a multipage PDF from a scan.
|
|
|
|
Features:
|
|
* Compatible with any SANE-capable scanner
|
|
* Crop, threshold & clean up scan
|
|
* Reorder pages via DND
|
|
* Write multi-page scan to PDF, DjVu or TIFF
|
|
* Write single scans to any format supported by ImageMagick
|
|
* Ocropus & tesseract support
|
|
* Place OCR output at boundary boxes supplied by Ocropus
|
|
* Incorporate PDF metadata in filename
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
%perl_process_packlist
|
|
%find_lang %{name} %{?no_lang_C}
|
|
%fdupes %{buildroot}
|
|
|
|
%post
|
|
%desktop_database_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING LICENCE
|
|
%{_bindir}/gscan2pdf
|
|
%{_bindir}/scanadf-perl
|
|
%{_bindir}/scanimage-perl
|
|
%{_datadir}/%{name}/
|
|
%dir %{_datadir}/appdata
|
|
%{_datadir}/appdata/gscan2pdf.appdata.xml
|
|
%{_datadir}/applications/gscan2pdf.desktop
|
|
%{_datadir}/pixmaps/gscan2pdf.svg
|
|
%{_mandir}/man1/gscan2pdf.1p%{?ext_man}
|
|
%{_mandir}/man1/scanadf-perl.1p%{?ext_man}
|
|
%{_mandir}/man1/scanimage-perl.1p%{?ext_man}
|
|
%{perl_vendorlib}/Gscan2pdf/
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|