From fa912de2b5eb805e959c59a2dd5501f4b17c790ea8f27d4573b1f3252c5dbdff Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 27 Feb 2017 08:38:06 +0000 Subject: [PATCH] Accepting request 460616 from GNOME:Apps 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 --- .gitattributes | 23 +++ .gitignore | 1 + gscan2pdf-1.7.2.tar.xz | 3 + gscan2pdf-rpmlintrc | 2 + gscan2pdf.changes | 389 +++++++++++++++++++++++++++++++++++++++++ gscan2pdf.spec | 111 ++++++++++++ 6 files changed, 529 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gscan2pdf-1.7.2.tar.xz create mode 100644 gscan2pdf-rpmlintrc create mode 100644 gscan2pdf.changes create mode 100644 gscan2pdf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gscan2pdf-1.7.2.tar.xz b/gscan2pdf-1.7.2.tar.xz new file mode 100644 index 0000000..5418e7a --- /dev/null +++ b/gscan2pdf-1.7.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28cbdecbea19f99a34a29a365077f961f82395c6485cdbf1aa95ad3f942c1984 +size 393620 diff --git a/gscan2pdf-rpmlintrc b/gscan2pdf-rpmlintrc new file mode 100644 index 0000000..d00d055 --- /dev/null +++ b/gscan2pdf-rpmlintrc @@ -0,0 +1,2 @@ +# The perl code is not meant to be used by others +addFilter("perl5-naming-policy-not-applied"); diff --git a/gscan2pdf.changes b/gscan2pdf.changes new file mode 100644 index 0000000..1a2d4df --- /dev/null +++ b/gscan2pdf.changes @@ -0,0 +1,389 @@ +------------------------------------------------------------------- +Mon Feb 20 19:56:34 UTC 2017 - zaitor@opensuse.org + +- Update to version 1.7.2: + + Suppress errors from CLI frontends caused by rounding. + + Reload default scan settings after rescanning for devices. +- Add missing runtime perl(Date::Calc) Requires. + +------------------------------------------------------------------- +Wed Jan 25 14:19:16 UTC 2017 - zaitor@opensuse.org + +- Update to version 1.7.1 (boo#1021886): + + Fixed bug setting preferences. + + Fixed bug saving when no post-save hooks defined. + + Fixed bug attaching PDF to email. + +------------------------------------------------------------------- +Thu Jan 19 22:01:37 UTC 2017 - zaitor@opensuse.org + +- Update to version 1.7.0: + + post-save hook: post-save arbitrary command capability. + + Option in Edit/Preferences to force # pages = all if ADF if + selected. + + --import command-line option, command line options for Gnome + integration (lp#312839). + + Fixed bug preventing append/prepend PDF in combination with set + timestamp. + + Catch error setting timestamp for dates prior to 1970. + + Correctly scale boundary boxes when importing text layer of PDF + + Test and documentation fixes. + + Fix saving TIFF with compression (introduced in 1.6.0). + + Updated translations. +- Changes from version 1.6.0: + + Catch errors importing text layer of DjVu. + + Support for dragging files from Nautilus (or Konqueror, or + anything that delivers URIs) (lp#515854). + + Support for brackets in imported djvu hidden layer. + + Store document date as offset (reverted code introduced in + v1.3.9) (deb#842239). + + Support ampersand (&) in filenames whilst saving images. + + Refactor most system() calls to use IPC::Open3 to eliminate + need to escape special characters from shell. + + Eliminate warnings when reloading scan options with option + groups. + + Option to change the pdf and djvu access and modification times + to the metadata date. + + Sort config file and ensure only currently used settings are + stored. + +------------------------------------------------------------------- +Mon Nov 28 16:03:14 CET 2016 - fcrozat@suse.com + +- Update to version 1.5.5: + + Work around bug in imagemagick causing the image depth not to + be respected (sf#231). + + Fix deleting pages by selecting thumbnails and hitting delete + key. + + Fixed drag-and-drop operations broken in v1.5.2 (sf#232). +- Changes from version 1.5.4: + + Fixed cycle SANE handle error when using frontend other than + libsane-perl. + + Fixed bug preventing # pages = all by default, even with ADF + (deb#840534). +- Changes from version 1.5.3: + + Added scroll bars to all tabs on scan dialog (sf#228). + + Fixed bug copy-pasting pages where subsequent operations on new + pages are carried out on old pages. + + Changed default compression for lineart PDFs to PNG. + + Fixed cycle SANE handle option to reset options after + reloading. + + Fixed Perl warnings if backend offers no "source" scan option. + + Updated translations. + +------------------------------------------------------------------- +Fri Sep 16 14:25:14 CEST 2016 - fcrozat@suse.com + +- Update to version 1.5.2: + + Fixed bug prepending or appending to a PDF with a space in the + path. + + Refactored code handling geometry options to reduce complexity + and duplication. + + Removed metadata variables %h, %i, %s, adding %H, %I, %S + (sf#226 Formatting timestamp for filename template broken). + + Encode document date in ASCII to workaround a bug in PDF::API2 + where UTF-8 encoding caused garbage in the metadata (sf#224 + CreationDate and ModDate fields are missing). + + If the output from user-defined tool is pnm, there is no way to + tell the resolution, so assume that it is the same as the input + (sf#227 Page size corruption in 1.5.1). + + Support hand-scanner option in test backend (sf#223 "Auto + length detection" option does not work with ScanSnap IX500). + + Filter out double memory address from unpaper warning + (deb#833521 unpaper AVStream codec deprecation warning). + +------------------------------------------------------------------- +Thu Aug 4 13:05:01 UTC 2016 - zaitor@opensuse.org + +- Update to version 1.5.1: + + Fix "Can't use string ("gimp %i") as an ARRAY ref". + + Store and apply backend (scanner-specific) and gscan2pdf + settings separately. + + Those frontend settings stored in profiles need not be stored + in general settings. + + When paper in use, hide other geometry widgets. + + When saving profile, if name already exists, add warning and + don't duplicate the combobox text. + +------------------------------------------------------------------- +Sat Jun 11 18:16:06 UTC 2016 - gankov@opensuse.org + +- Update to version 1.5.0: + + Also import text layer when importing PDF or DjVu. + + Option in Edit/Preference to allow/forbid batch scanning from a + flatbed + + Store date as string to avoid time zone problems. Closes Debian + bug #823626 (Date in file name off by one day when saving) + + Show warning when importing a PDF if number of images is not + equal to number of pages. + + Option not to close save dialog. + Closes feature request #91 (Keep save dialoque open) + + Update to Occitan (post 1500) translation (thanks to Cédric + VALMARY) + +------------------------------------------------------------------- +Wed Apr 20 12:24:17 UTC 2016 - zaitor@opensuse.org + +- Update to version 1.4.0: + + Fixed double file overwrite confirmation. + + Update paper size combobox after setting profile. + + Integrate user-defined tools into scan post-process dialog + window for user-defined tools. + + Fixed extended page numbering toggle. + + Fixed restoring crashed session. + + Fixed paper sizes after switching device. (Options for A4, US + Legal, and US Letter have disappeared in the Geometry options + for Scansnap IX500 in 1.3.9). + + Correct hiding/showing of widgets when saving JPEG. + + Save session after an action rather than before so as not to + lose the last action in the event of a crash. + + Updated translations. + +------------------------------------------------------------------- +Sat Mar 12 18:04:52 UTC 2016 - fcrozat@suse.com + +- Update to version 1.3.9: + + Fixed warning from Perl 5.10.1 about use of uninitialized value + in subroutine entry in Gscan2pdf/Dialog/Scan/CLI.pm. + + Store absolute date instead of offset. + + If get_message_area() not available (because gtk+ is too old), + use get_content_area() or vbox(). + + Differentiate between readonly file and directory in error + messages. + + Fixed bug opening session file. + + A deleted profile stays deleted across sessions. + + Fixed multiple reload callback, affecting setting profiles. + + If a profile affects geometry settings, update paper size + widget appropriately. +- Changes from version 1.3.8: + + Fixed bug saving TIFF, introduced in v1.3.6. + + Fixed bug running tesseract from OCR dialog, introduced in + v1.3.7. + + Fixed bug saving, retrieving and applying profiles + + Updated translations. +- Changes from version 1.3.7: + + Fixed check that pages have been saved. + + Fixed scan->rotate->unpaper->OCR chaining (again). + + Filter out memory address from unpaper warning. + + Ensure that process numbering is properly reinitialised when + queue is empty. + + Fixed error importing PDF with more than 999 pages. However, + this exposed the problem that each page is held as an open + temporary file and that the system can run out of file handles + somewhere after 1000. + +------------------------------------------------------------------- +Sun Jan 10 13:16:25 UTC 2016 - zaitor@opensuse.org + +- Update to version 1.3.6: + + Use simplified tesseract call for tesseract >= 3.02.02. + + Add completion for author, title, subject & keyword metadata. + + Store the list of pages to be saved on hitting the save button, + not waiting to choose the filename (deb#648627). + + Fixed progress text when importing files with multiple pages. + + Some scanners activate paper-width and paper-height only for + the ADF, and thus send "invalid argument" when setting the + paper size for the flatbed. Trap this by also testing whether + these options are active when setting the paper size. + + When scanning "all" pages, but only a finite number are + possible, report this in the progress bar. + + Update list of available paper sizes after every option reload, + as different sources (e.g. flatbed, ADF) support different + geometries. + + Update list of rpm dependencies in .spec files. + + Updated translations. + +------------------------------------------------------------------- +Tue Dec 1 10:36:16 UTC 2015 - tuukka.pasanen@ilmi.fi + +- Updated to version 1.3.5 + + Add prepend and append to PDF save options. + + Use new threading philosophy for scanning thread. + + Fix bug applying profiles with duplicated or invalid options. + + Selecting single-sided pages also selects facing page (sf#206) + + Fixed scan->unpaper->OCR chaining. + + Changed defaults so that unpaper does not run by default after + scanning. + + Enabled hours, minutes and seconds in filename template. + + Updated translations. +- Add perl(Filesys::Df) and perl(Data::UUID) Requires: New runtime + requirements. +- Add tesseract-ocr Recommends. + +------------------------------------------------------------------- +Tue Aug 11 12:20:14 UTC 2015 - zaitor@opensuse.org + +- Update to version 1.3.4: + + Fix startup crash due to incorrect MessageDialog type and + buttons. +- Changes from version 1.3.3: + + Suppress warnings when passed boolean as empty string + (lp#844582). + + Moved config file format to JSON. JSON::PP is a core module, so + this does not create a new dependency + option not to show + dialog messages. + + Trap errors from unpaper, rotate, crop, threshold, negate, + unsharp processing tools (sf#198). + + Removed dependency on liblinux-distribution-perl as not + available on FreeBSD. + + Also support gconftool-2 when checking for email client + (sf#200). + + Fixed program hang importing an empty file at the same time as + other files. + + Rewrite threading system to simplify it and remove many race + conditions. + + Fixed bug setting threshold-before-ocr check box. + + Updated translations. +- Changes from version 1.3.2: + + Fixed program hang displaying save dialog. +- Changes from version 1.3.1: + + Fixed bug saving PDF after thresholding. + + Warn if less free space in session directory than limit set in + preferences. + + Fix defaults for unpaper and output-pages<->layout + misalignment. + + Where available in the OCR output, use the full + page/column/para/line/word hiearchy in the djvu text layer + (sf#191). + + Remove corrupt element from session after importing (sf#195). + + Updated translations. +- Changes from version 1.3.0: + + Avoid leading & trailing spaces in filename expanded from + template (sf#172, sf#169, deb#774099). + + Various GUI improvements (deb#774093). + + Improvements to the display of OCR output (deb#774094). + + More improvements to date metadata widget (deb#774103). + + More improvements metadata for DjVu (deb#774097). + + Refactored logging of OCR dependencies (deb#710428). + + Catch many filesystem errors. + + Return in one of the entry widgets in the the save dialog hits + the save button. + +------------------------------------------------------------------- +Thu Jan 1 18:26:01 UTC 2015 - gankov@opensuse.org + +- Update to version 1.2.7: + + Use date from entry rather than calendar widget (sf#183). + + Use icons for 'email as PDF' and the hand tool (lp#1197264). + + Threshold as part of OCR process. + + Fix bug saving encoded characters in hOCR. + + Fix bug saving defaults that are not part of a profile. + + Add scrollbars to the 'Page Options' tab to make the scan + button visible on screens that are shorter than the scan + dialog (sf#188). + + Fix crash on start if tesseract is not installed. + + Fix button display in Tools > Unsharp Mask (deb#769823). + + Updated translations. +- Change package to be noarch. +- Add fdupes BuildRequires and call the macros. + +------------------------------------------------------------------- +Sun Sep 28 10:49:59 UTC 2014 - gankov@opensuse.org + +- Update to version 1.2.6: + + Fix support for tesseract 3.02, broken by commit ae76b3cf. + + Changed 'save text' to extract plain text from hOCR output + and 'save hOCR', to save hOCR output, where available. + + Fixed logic of automatic selection of blank or dark pages. + + If an error occurs whilst opening a device, remove it from the + device list and try the next, rather than giving up straight + away. + + Added text entry for date on save dialogs. Closes + feature-requests #81 (option to manualy keyin date (or at least + year). + + Added device blacklist. + + Fixed add paper button. Closes bug #178 (unable to add + geometries). + + Increase maximum page number to 9999. Feature request 82 + (Scanning documents that are 1000 pages or more). + +------------------------------------------------------------------- +Sun Jun 1 16:03:32 UTC 2014 - fcrozat@suse.com + +- Update to version 1.2.5: + + Fix today button on date dialog saving PDF + Closes bug #171 "Today" button in calendar jumps to + February 1th, 1970 + + Fix resolution when processing non-standard sized images with + unpaper + + Speed up downsample option by using imagemagick sample instead + of resize + + Remove unnecessary decode_utf8() call causing + 'Cannot decode string with wide characters' error in Perl 5.18. + + Add support for tesseract 3.03. + Closes bug #173 "v1.2.4 doesn't display any output" + + Fix bug writing images with quotes in filename + Closes bug #174 "Fail to save file when target folder has + quote in filename" + + Fix setting options which don't cause a reload. + + Closes bug #168 (Resolution Errors on Multiple Scanners) + + Closes bug #170 (Format A2 in PDF properties despite having + chosen A4 while scanning) + + Closes Debian bug #742233 (wrong resolution) + + Closes LP: #1304484 (resolution incorrect, saved pdf far too + large) +- Changes from version 1.2.4: + + Tie PageRange widgets together: Closes bug #165 i + "all or selected? a surprise that can bite like snake" again + + Fix parsing the units of the resolution of imported images. + + Fix infinite loop scanning page 1 when 5+ exist. + + Parse negative progress percentages from scanimage. + + Fix scan dialog if no devices found. +- Package appdata informations. + +------------------------------------------------------------------- +Sat Mar 22 15:43:17 UTC 2014 - gankov@opensuse.org + +- Update to version 1.2.3: + + Deal with crashed sessions with no session file. + + Fixed bug setting TMPDIR in preferences. + + Added menu item 'Open crashed session'. + + Don't process empty lists of pages. + Closes bug #165 "all or selected? a surprise that can bite like + snake". +- Changes from version 1.2.2: + + Fixed paper editor widget. + + Fixed position of paper size widget. + + Hide geometry widgets at startup if paper selected. +- Changes from version 1.2.1: + + Fixed opening saved sessions. + + Fixed storing resolution of scanned images. + Closes Debian bug #734854 (gscan2pdf wrong resolution). +- Changes from version 1.2.0: + + Don't lose extension if user-defined tool converts pnm to pbm, + ppm or pgm (lp#889549 again). + (gscan2pdf gimp integration creates page size error) + + Allow thread to import different number of pages than + requested (lp#1163739: Import of pdf no longer working). + + Take the resolution directly from the scanner when scanning + rather than assuming that the system value is up-to-date. + Closes bug 134 (reduces PDF to half size of scan). + + Fixed UTF8 handling with gocr. + + Fixed import of multipage TIFFs (lp#1181019: importing existing + multipage tif file loads only the first one). + + Actually change the device when the device combobox is changed. + (deb#729589: Can not scan using a Canon LiDE 210 with version + 1.1.3-1). + + Show/hide options in CLI frontends via Edit/Preferences. + + Fix Thunderbird detection from XFCE (deb#701581: Thunderbird + detection (for send email) does not work reliably on XFCE). + + Fixed bug opening a session file from multiple sessions + + option in Edit/Preferences to automatically open the scan + dialog in the background on program start. Closes debian bug + #717479 (Background-scanning for devices and options). + + Updated translations. +- Add perl(List::MoreUtils) requires. + +------------------------------------------------------------------- +Thu Oct 10 08:25:31 UTC 2013 - dimstar@opensuse.org + +- Fix dependencies, as identigied in bnc#844227: + + Add perl(Readonly) Requires. + + Replace perl(Gtk::ImageView) Requires with + perl(Gtk2::ImageView). + +------------------------------------------------------------------- +Wed Apr 17 18:20:48 UTC 2013 - dimstar@opensuse.org + +- Initial package, version 1.1.3. + diff --git a/gscan2pdf.spec b/gscan2pdf.spec new file mode 100644 index 0000000..e558bf1 --- /dev/null +++ b/gscan2pdf.spec @@ -0,0 +1,111 @@ +# +# 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