2017-02-27 09:38:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package gscan2pdf
|
|
|
|
#
|
2020-03-02 07:51:10 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-02-27 09:38:06 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-08 08:50:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-27 09:38:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gscan2pdf
|
2020-07-13 18:30:12 +02:00
|
|
|
Version: 2.8.1
|
2017-02-27 09:38:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Easy scan to PDF
|
2019-01-08 08:50:57 +01:00
|
|
|
License: GPL-3.0-only
|
2020-03-02 10:27:41 +01:00
|
|
|
URL: https://sourceforge.net/projects/gscan2pdf/
|
2017-07-27 09:43:12 +02:00
|
|
|
Source0: https://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/gscan2pdf-%{version}.tar.xz
|
2018-02-23 01:33:31 +01:00
|
|
|
Source1: https://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/gscan2pdf-%{version}.tar.xz.asc
|
2017-02-27 09:38:06 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: update-desktop-files
|
2017-04-25 18:57:01 +02:00
|
|
|
Requires: unpaper
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Config::General)
|
2017-04-25 18:57:01 +02:00
|
|
|
Requires: perl(Data::UUID)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Date::Calc)
|
2018-02-23 01:33:31 +01:00
|
|
|
Requires: perl(Exception::Class)
|
2017-04-25 18:57:01 +02:00
|
|
|
Requires: perl(Filesys::Df)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Glib)
|
2019-01-08 08:50:57 +01:00
|
|
|
Requires: perl(GooCanvas2)
|
|
|
|
Requires: perl(Gtk3)
|
|
|
|
Requires: perl(Gtk3::SimpleList)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Image::Magick)
|
2017-09-20 14:30:03 +02:00
|
|
|
Requires: perl(Image::Sane)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(List::MoreUtils)
|
2019-01-08 08:50:57 +01:00
|
|
|
Requires: perl(Locale::gettext)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Log::Log4perl)
|
|
|
|
Requires: perl(PDF::API2)
|
2019-01-08 08:50:57 +01:00
|
|
|
Requires: perl(Proc::ProcessTable)
|
2017-02-27 09:38:06 +01:00
|
|
|
Requires: perl(Readonly)
|
|
|
|
Requires: perl(Set::IntSpan)
|
|
|
|
Requires: perl(Try::Tiny)
|
2019-01-08 08:50:57 +01:00
|
|
|
Requires: typelib(GooCanvas) = 2.0
|
2020-08-10 08:11:38 +02:00
|
|
|
%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} || 0%{?sle_version} >= 150200 || 0%{?suse_version} > 1500
|
|
|
|
Requires: typelib(GdkPixdata) = 2.0
|
|
|
|
%endif
|
2017-02-27 09:38:06 +01:00
|
|
|
Recommends: djvulibre
|
|
|
|
Recommends: gocr
|
2017-09-20 14:30:03 +02:00
|
|
|
Recommends: tesseract-ocr
|
2017-02-27 09:38:06 +01:00
|
|
|
Recommends: tiff
|
2020-10-27 19:53:16 +01:00
|
|
|
Recommends: pdftk
|
2017-02-27 09:38:06 +01:00
|
|
|
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
|
2020-03-02 07:51:10 +01:00
|
|
|
%autosetup
|
2017-02-27 09:38:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2020-03-02 07:51:10 +01:00
|
|
|
%make_build
|
2017-02-27 09:38:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%files
|
2019-01-08 08:50:57 +01:00
|
|
|
%doc %{_datadir}/help/C/%{name}/
|
2017-12-05 02:59:26 +01:00
|
|
|
%license LICENCE
|
2017-02-27 09:38:06 +01:00
|
|
|
%{_bindir}/gscan2pdf
|
|
|
|
%{_datadir}/%{name}/
|
2017-09-20 14:30:03 +02:00
|
|
|
%dir %{_datadir}/metainfo
|
2020-03-02 07:51:10 +01:00
|
|
|
%{_datadir}/metainfo/net.sourceforge.gscan2pdf.appdata.xml
|
|
|
|
%{_datadir}/applications/net.sourceforge.gscan2pdf.desktop
|
2017-02-27 09:38:06 +01:00
|
|
|
%{_datadir}/pixmaps/gscan2pdf.svg
|
|
|
|
%{_mandir}/man1/gscan2pdf.1p%{?ext_man}
|
|
|
|
%{perl_vendorlib}/Gscan2pdf/
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|