gscan2pdf/gscan2pdf.spec

104 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gscan2pdf
#
# Copyright (c) 2020 SUSE LLC
#
# 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: gscan2pdf
Accepting request 859568 from home:Kieltux:branches:Publishing - Update to version 2.10.2: * Catch errors running default launcher * Check both stderr and stdout for libtiff-tools version Closes Debian bug 977532 (gscan2pdf: save option not available) * Rename drag tool -> pan tool * Update to German translation (thanks to Matthias Sprau) * Update to Turkish translation (thanks to Buckethead) * Update to Ukrainian translation (thanks to Yuri Chornoivan) - Update to version 2.10.1 (03.12.2020): * Switch from Perlmagick to imagemagick for threshold tool to improve performance. Closes Debian bug 968918 (Threshold function is extremely slow) * + missing crop icon * + View/Edit OCR toggle * Don't zoom in/out if plus/minus pressed whilst editing OCR * Allow cut/copy/paste whilst editing OCR * Fixed bug manually adding OCR that overlaps with existing words * + button to duplicate OCR text * Fixed bug adding OCR text '0' * Fixed bug processing deleted page * Don't sort OCR confidence list if not changed * Fixed bug decoding 3-octal UTF-8 characters in DjVu text layer * Update to Hungarian translation (thanks to csola) * Update to Ukrainian translation (thanks to Yuri Chornoivan) - Update to version 2.10.0 (31.10.2020): * Switch from PDF::API2 to PDF::Builder to improve TIFF handling and compression options. Closes Debian bugs 602486 (heavily distored scans) and 703768 (parts of the page translated to the right, black border) * Switch from internal image viewer to Gtk3::ImageView (based on internal image viewer) * Update to German translation (thanks to Eugen Artus) * Update to Ukrainian translation (thanks to Yuri Chornoivan) - Update to version 2.9.1 (25.09.2020): * Work around imagemagick versions that create TIFFs that PDF::API2 doesn't like when testing pdftk by using JPEG. Closes #361 Hang on startup since commit #ab767c * Read locale from LC_MESSAGES, rather than LANGUAGE environmental variable, map C locale to English. Thanks to Petr Písař and Chris Mayo for the patches. Closes bug #360 and merge request #32. * Update to Hungarian translation (thanks to csola) * Update to German translation (thanks to Matthias Sprau) * Update to Ukrainian translation (thanks to Yuri Chornoivan) - Update to version 2.9.0 (19.09.2020): * + warning if tesseract OCR package for current locale not installed. * + split tool * If device-not-found mini-wizard is exited via cancel or by destroying it, use ignore response. * Fix bug manually adding first OCR word to page. * Limit zoom to 15 to avoid errors like: "pango_font_description_set_size: assertion 'size >= 0' failed" * Fix bug finding page by number * Update to Hungarian translation (thanks to csola) * Update to Turkish translation (thanks to Buckethead) - Update to version 2.8.2 (25.07.2020): * If previously used font no longer exists, automatically pick another one. * Delete temporary files that fall off the undo buffer. Closes #350 (When delete photos the files in /tmp are not deleted) * Fix reload-recursion-limit problems after device-not-found mini-wizard. Closes Debian bug #965153 ("fails to open device" for Epson NX100) * Update to German translation (thanks to Matthias Sprau) * Update to Ukrainian translation (thanks to Yuri Chornoivan) OBS-URL: https://build.opensuse.org/request/show/859568 OBS-URL: https://build.opensuse.org/package/show/Publishing/gscan2pdf?expand=0&rev=17
2021-01-03 15:17:33 +01:00
Version: 2.10.2
Release: 0
Summary: Easy scan to PDF
License: GPL-3.0-only
URL: https://sourceforge.net/projects/gscan2pdf/
Source0: https://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/gscan2pdf-%{version}.tar.xz
Source1: https://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/gscan2pdf-%{version}.tar.xz.asc
BuildRequires: fdupes
BuildRequires: update-desktop-files
Requires: unpaper
Requires: perl(Config::General)
Requires: perl(Data::UUID)
Requires: perl(Date::Calc)
Requires: perl(Exception::Class)
Requires: perl(Filesys::Df)
Requires: perl(Glib)
Requires: perl(GooCanvas2)
Requires: perl(Gtk3)
Requires: perl(Gtk3::SimpleList)
Requires: perl(Image::Magick)
Accepting request 526596 from home:Zaitor @project maintainers: Please let the package maintainer be the one to review this sub. - Update to version 1.8.6: + Fixed visibility of options for DjVu, JPEG, & TIFF in save dialogue. + Reload recursion limit in Edit/Preferences. Break of out reload recursion loop if maximum number of reloads is exceeded. + Reapply only those current scan settings that were reset by the reload + Fixed unpaper detection for v0.3. - Update to version 1.8.5: + Add support for Poppler (pdftops) as postscript backend. + Drop support for libsane-perl. + Reapply current scan settings for those scanners that reset them when forcing a reload. + Eliminate unnecessary strings from gscan2pdf.pot to prevent unnecessary work and confusion on the part of the translators. + Add A3 to default paper sizes. + Updated translations. - Update to version 1.8.4: + Cope with Tesseract 3.0.5 writing Page 1 instead of Page 0. + Assume pixels/inch if the image doesn't know better. + Fix paragraph formatting in save as text output. + In preparation for future removal of libsane-perl frontend, change default frontend libsane-perl -> libimage-sane-perl, and similarly switch selected frontend on upgrade from older version. Assuming no major problems occur, support for libsane-perl will be removed in the next release. + Fixed bug writing postscript file. + Add support for ghostscript backend due to apparent bug in tiff2ps. + Round scan options with ranges to valid values before applying. + Fixed bug updating list of option-dependent values. - Add perl(Image::Sane) Requires: Now available in openSUSE, and gscan2pdf is ported to use it. OBS-URL: https://build.opensuse.org/request/show/526596 OBS-URL: https://build.opensuse.org/package/show/Publishing/gscan2pdf?expand=0&rev=4
2017-09-20 14:30:03 +02:00
Requires: perl(Image::Sane)
Requires: perl(List::MoreUtils)
Requires: perl(Locale::gettext)
Requires: perl(Log::Log4perl)
Requires: perl(PDF::API2)
Requires: perl(Proc::ProcessTable)
Requires: perl(Readonly)
Requires: perl(Set::IntSpan)
Requires: perl(Try::Tiny)
Requires: typelib(GooCanvas) = 2.0
%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} || 0%{?sle_version} >= 150200 || 0%{?suse_version} > 1500
Requires: typelib(GdkPixdata) = 2.0
%endif
Recommends: djvulibre
Recommends: gocr
Accepting request 526596 from home:Zaitor @project maintainers: Please let the package maintainer be the one to review this sub. - Update to version 1.8.6: + Fixed visibility of options for DjVu, JPEG, & TIFF in save dialogue. + Reload recursion limit in Edit/Preferences. Break of out reload recursion loop if maximum number of reloads is exceeded. + Reapply only those current scan settings that were reset by the reload + Fixed unpaper detection for v0.3. - Update to version 1.8.5: + Add support for Poppler (pdftops) as postscript backend. + Drop support for libsane-perl. + Reapply current scan settings for those scanners that reset them when forcing a reload. + Eliminate unnecessary strings from gscan2pdf.pot to prevent unnecessary work and confusion on the part of the translators. + Add A3 to default paper sizes. + Updated translations. - Update to version 1.8.4: + Cope with Tesseract 3.0.5 writing Page 1 instead of Page 0. + Assume pixels/inch if the image doesn't know better. + Fix paragraph formatting in save as text output. + In preparation for future removal of libsane-perl frontend, change default frontend libsane-perl -> libimage-sane-perl, and similarly switch selected frontend on upgrade from older version. Assuming no major problems occur, support for libsane-perl will be removed in the next release. + Fixed bug writing postscript file. + Add support for ghostscript backend due to apparent bug in tiff2ps. + Round scan options with ranges to valid values before applying. + Fixed bug updating list of option-dependent values. - Add perl(Image::Sane) Requires: Now available in openSUSE, and gscan2pdf is ported to use it. OBS-URL: https://build.opensuse.org/request/show/526596 OBS-URL: https://build.opensuse.org/package/show/Publishing/gscan2pdf?expand=0&rev=4
2017-09-20 14:30:03 +02:00
Recommends: tesseract-ocr
Recommends: tiff
Recommends: pdftk
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
%autosetup
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
%make_install
%perl_process_packlist
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%files
%doc %{_datadir}/help/C/%{name}/
%license LICENCE
%{_bindir}/gscan2pdf
%{_datadir}/%{name}/
Accepting request 526596 from home:Zaitor @project maintainers: Please let the package maintainer be the one to review this sub. - Update to version 1.8.6: + Fixed visibility of options for DjVu, JPEG, & TIFF in save dialogue. + Reload recursion limit in Edit/Preferences. Break of out reload recursion loop if maximum number of reloads is exceeded. + Reapply only those current scan settings that were reset by the reload + Fixed unpaper detection for v0.3. - Update to version 1.8.5: + Add support for Poppler (pdftops) as postscript backend. + Drop support for libsane-perl. + Reapply current scan settings for those scanners that reset them when forcing a reload. + Eliminate unnecessary strings from gscan2pdf.pot to prevent unnecessary work and confusion on the part of the translators. + Add A3 to default paper sizes. + Updated translations. - Update to version 1.8.4: + Cope with Tesseract 3.0.5 writing Page 1 instead of Page 0. + Assume pixels/inch if the image doesn't know better. + Fix paragraph formatting in save as text output. + In preparation for future removal of libsane-perl frontend, change default frontend libsane-perl -> libimage-sane-perl, and similarly switch selected frontend on upgrade from older version. Assuming no major problems occur, support for libsane-perl will be removed in the next release. + Fixed bug writing postscript file. + Add support for ghostscript backend due to apparent bug in tiff2ps. + Round scan options with ranges to valid values before applying. + Fixed bug updating list of option-dependent values. - Add perl(Image::Sane) Requires: Now available in openSUSE, and gscan2pdf is ported to use it. OBS-URL: https://build.opensuse.org/request/show/526596 OBS-URL: https://build.opensuse.org/package/show/Publishing/gscan2pdf?expand=0&rev=4
2017-09-20 14:30:03 +02:00
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/net.sourceforge.gscan2pdf.appdata.xml
%{_datadir}/applications/net.sourceforge.gscan2pdf.desktop
%{_datadir}/pixmaps/gscan2pdf.svg
%{_mandir}/man1/gscan2pdf.1p%{?ext_man}
%{perl_vendorlib}/Gscan2pdf/
%files lang -f %{name}.lang
%changelog