-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgscan2pdf.spec
334 lines (316 loc) · 14 KB
/
gscan2pdf.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
Name: gscan2pdf
Version: 1.8.3
Release: 1%{?dist}
Summary: A GUI to produce PDFs from scanned documents
Group: Applications/Publishing
License: GPL
URL: http://%{name}.sourceforge.net/
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
BuildRequires: gettext, desktop-file-utils
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Gtk3::ImageView), perl-Gtk2-Ex-Simple-List
Requires: perl-Sane, perl-Locale-gettext
Requires: sane-utils, libtiff-tools, perl(PDF::Builder)
Requires: perl(Config::General), ImageMagick-perl, ImageMagick
Requires: librsvg-2-2, perl(Set::Intspan), perl(List::MoreUtils)
Requires: perl-HTML-Parser, perl(Goo::Canvas), perl-Proc-ProcessTable
Requires: perl(Readonly), perl(Log::Log4perl), perl(Try::Tiny), perl-Filesys-Df
Requires: perl(OSSP::uuid), perl(Gtk3::Ex::PodViewer), sane-backends >= 1.0.17
Requires: xdg-utils, djvulibre
Requires: unpaper, sane-frontends
%description
Only two clicks are required to scan several pages and then save all or a
selection as a PDF file, including metadata if required.
gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
scanimage or scanadf, and can scan multiple pages at once. It presents a
thumbnail view of scanned pages, and permits simple operations such as rotating
and deleting pages.
PDF conversion is done by PDF::Builder.
The resulting document may be saved as a PDF or a multipage TIFF file.
%prep
%setup -q
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
chmod -R u+w $RPM_BUILD_ROOT/*
desktop-file-install --delete-original --vendor="" \
--dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
$RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%check
export DISPLAY=:0.0
#make test
%clean
rm -rf $RPM_BUILD_ROOT
%post
update-desktop-database &> /dev/null ||:
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
update-desktop-database &> /dev/null ||:
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc LICENCE
%{_bindir}/*
%{perl_vendorlib}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/*.1*
%changelog
* Sat Jul 01 2017 Jeffrey Ratcliffe <[email protected]>
- New upstream release
New Depends: libimage-sane-perl
- Reformatted extended description
- Bumped standards to 4.0.0 (no changes required)
- New upstream release
- New upstream release
Closes: #858767 (fixes & improvements to gscan2pdf)
- New upstream release
- New upstream release
Closes: #756897 (Specify ways to proof-read document post-save)
- New upstream release
- New upstream release
Closes: #852506 (Command-line option to import file)
- Closes: #854956 (fails to reload settings after scanning for devices)
- Closes: #854957 (rounding error from scanimage causes device to be rejected)
- + patch to fix bug attaching PDF to email
- + patch to fix bug saving TIFF with compression
- Fixed bug preventing append prepend PDF in combination with timestamp
Closes: #848318 (append and prepend to PDF no longer work)
- Catch error setting timestamp for dates prior to 1970
- New upstream release
Closes: #842239 (Arbitrary document metadata date chosen)
New Depends: libdate-calc-perl
- New upstream release
- New upstream release
Closes: #840534 (#Pages scan option always defaults to '1')
- New upstream release
- New upstream release
Closes: #833521 (unpaper AVStream codec deprecation warning)
- New upstream release
Closes: #831597 (Can't use string ("gimp %i") as an ARRAY ref)
- New upstream release
Closes: #823626 (Date in file name off by one day when saving)
- Bumped standards to 3.9.8 (no changes required)
- New upstream release
- New upstream release
Closes: #815552 (fails to set geometry when loading saved profile)
- Bumped standards to 3.9.7 (no changes required)
- New upstream release
Closes: #812684 (cannot save in .tif format)
- New upstream release
Closes: #807565 (Unpaper error dialog cannot be hidden permanently)
Closes: #810834 (Always Getting Some Pages Not Saved Warning)
- New upstream release
Closes: #648627
(post-dialog selection changes influence which pages are saved)
- New upstream release
- New upstream release
- Declared libossp-uuid-perl as an alternative to libdata-uuid-perl
- New upstream release
New Depends: libdata-uuid-perl
Removed depends: liblinux-distribution-perl
- Changed perlmagick dependency to libimage-magick-perl
Closes: #789229 (gscan2pdf depends on transition package perlmagick)
- New upstream release
- Changed source format from 1.0 to 3.0 (quilt)
- New upstream release
New Depends: liblinux-distribution-perl, libfilesys-df-perl
- New upstream release
Closes: #774099
(avoid leading and trailing blanks in expanded filename template)
Closes: #774103 (fixes for date offset calculation)
Closes: #710428
(Add "Found ocropus" to log information on application start)
Closes: #774093 (various consistency updates for dialogs)
Closes: #774094 (misc. improvements for OCR'ed texts)
Closes: #774097 (when saving as DjVU, use MetaData)
- New upstream release
Closes: #769823 (menu entry Tools > Unsharp Mask lacks OK & Cancel buttons)
- New upstream release
- Bumped standards to 3.9.6 (no changes required)
- New upstream release
Closes: #742233 (wrong resolution)
- New upstream release
- New upstream release
Closes: #734854 (gscan2pdf wrong resolution)
- Added depends: liblist-moreutils-perl
- New upstream release
Closes: #701581
(Thunderbird detection (for send email) does not work reliably on XFCE)
Closes: #729589
(Can not scan using a Canon LiDE 210 with version 1.1.3-1)
Closes: #717479
(Background-scanning for devices and options)
- New upstream release
Closes: #723784 (gscan2pdf: New upstream version available)
- Removed all patches
Removed Build-Depends: quilt
Updated rules not to use quilt
- Bumped standards to 3.9.4 (no changes required)
- Add support for unpaper > 0.3
Closes: #680158 (Incompatible with unpaper 0.4.2)
- Fix applying default settings with CLI frontends
Closes: #682818 (Presets aren't working)
- Recommend tesseract OR gocr OR cuneiform, rather than AND
Closes: #682100 gscan2pdf Recommends cuneiform which is in non-free
- Fix updating widgets in scanimage dialog
Closes: #678911
(Device-dependent options disappear after selecting Lineart mode)
- Fixed warning in lib/Gscan2pdf/Scanner/Options.pm
- Fix unpaper as part of scan process
Closes: #670640 (Can't call method get_cmdline)
- Deal with non-utf-8 characters in OCR output
Closes: #670831 (not resilient against non utf-8 from tesseract)
- Bumped standards to 3.9.3 (no changes required)
- New upstream release
- New upstream release
- Updated Depends on libsane-perl to 0.05
- New upstream release
Closes: #663584 (copy-paste of pages corrupts document)
Closes: #664635 (Fails to restore session, invalid pathname)
Closes: #665871 (no longer offers 'tesseract' OCR, persistently)
- New upstream release
Closes: #653918 (gscan2pdf doesn't save metadata anymore)
Closes: #646298 (pdf-exports of ocropus texts are slow, big)
Closes: #646246 (gscan2pdf ignores html-entities returned by ocropus
documents)
Closes: #651666 (ability to preview saved files)
Closes: #645322 (No lock after recovery can result in data loss)
Closes: #645323 (Imported pages have no thumbnails)
- Bumped standards to 3.9.2 (no changes required)
- New upstream release
Closes: #622616 (gscan2pdf: error message)
Closes: #622844 (gscan2pdf + libsane-perl frontend + Canon CanoScan LiDE25
results in "End of file reached")
Closes: #563461 (ability to remove unreferenced temporary files)
Closes: #577144 (gscan2pdf: lost option for editing/scanning simultaneously
in newer versions)
Closes: #602578 (Clearing the OCR text)
Closes: #617886 ("Open gscan2pdf session file" icon looks too much like
"Save" icon)
- New upstream release
Closes: #599181 (gscan2pdf: OCR doesn't support Umlauts/national characters)
Closes: #608226 (pressing space causes unexpected data loss)
New Depends: liblog-log4perl-perl
Removed Depends: libarchive-tar-perl, as now in perl
- Removed debian/patches/replace-forks-with-threads
Removed Build-Depends: quilt
Updated rules not to use quilt
- Replace forks with threads
Closes: #591404 (gscan2pdf: libforks-perl could be removed)
Removed Depends: libforks-perl
Added Build-Depends: quilt
Updated rules to use quilt
- Bumped standards to 3.9.1 (no changes required)
- New upstream release
Closes: #510309 (gscan2pdf: Ability to configure how GIMP is started)
Closes: #576193 (gscan2pdf: OCR does not works, due to Goo::Canvas::Text
programming error)
Closes: #584787 (gscan2pdf: Gscan2pdf quits without saving)
Closes: #585441 (gscan2pdf: "Useless use of sort in void context")
New Depends: libhtml-parser-perl, libreadonly-perl
Removed Depends: libxml-simple-perl
New Recommends: cuneiform
- Minor editing of description
- Patched the clean target to fix FTBFS
- Bumped standards to 3.9.0 (no changes required)
- New upstream release.
Closes: #461086 (embed OCR output at correct position)
Closes: #510314 (gscan2pdf: Mapping File_Scan to a shortcut key)
Closes: #557657 (gscan2pdf binarization option [wishlist])
New Depends: libxml-simple-perl, libgoo-canvas-perl,
libproc-processtable-perl
- Removed URL from description
Closes: #564325 (gscan2pdf: please remove homepage from description)
- Fixed VCS-URLs
- Bumped standards to 3.8.3 (no changes required)
- Switch to tiny dh7 rules
- Added ${misc:Depends}
- New upstream release.
Closes: #526845
(gscan2pdf: Renaming of frontends breaks current settings)
- New upstream release.
Closes: #506150
(gscan2pdf: pdf creation failes when using LZW compression)
Closes: #512758 (Error handling: 'Unknown message: "scanimage: sane_read:
Operation was cancelled"')
Closes: #512760 (Error reporting: empty document feeder not reported)
Closes: #515605 (gscan2pdf: repeating save-dialog when saving as pnm)
Closes: #517913 (gscan2pdf: Tools -> Gimp broken)
New Depends: libset-intspan-perl, libforks-perl
- New upstream release.
Closes: #500547 (fails to save PDF files)
Closes: #497629 (Rotation of pages does work on manual double sided
scanning)
Closes: #497630 (Selection of all odd pages or all even pages)
Closes: #504543 (gscan2pdf: Resolution strangeness)
Closes: #504546 (gscan2pdf: Resolution not sent to gimp)
Closes: #507032 (improper window split between page list and preview pane)
New Depends: libsane-perl
- New upstream release.
Closes: #490356 (gscan2pdf: It is impossible to save current session)
Closes: #486115 (PDF files from gscan2pdf are huge)
Closes: #493837 (gscan2pdf: should depend on sane-utils, not libsane)
Closes: #494074 (Select All Text; Save all OCRed text)
New Depends: libarchive-tar-perl
- New upstream release.
Now Depends: libconfig-general-perl (>= 2.40) to avoid heredoc bug
Closes: #480947 (gscan2pdf: Defaults for pages are weird now)
Closes: #486553 (gscan2pdf: unable to save as DjVu)
Closes: #486680 (gscan2pdf: bizarre DjVu text zones)
Closes: #485641 (gscan2pdf: No longer saves resolution in TIFF files)
Closes: #484641 (gscan2pdf: prefix option for scanimage command)
- Bumped Standards-Version
- New upstream release.
New Depends: libgtk2-imageview-perl
- Updated Homepage and Vcs* sections
- Bumped compat 4->5
- New upstream release.
Closes: #463708 (gscan2pdf: Error when saving as PNG)
Closes: #462171 (importing DjVu files fails, hogs memory)
- New upstream release.
Closes: #461859 (better selected/current/all heuristic)
Closes: #461076 (importing PDFs causes /tmp/ overflow)
- New upstream release.
Closes: #449421 (Recognise warm-up message from gt68xx driver)
Closes: #457377 (Can't save files with spaces in names)
Closes: #457376 (gscan2pdf: Some paper sizes not available)
Closes: #457249 (gscan2pdf: Tries to set threshold option for color scans)
Closes: #457375 (gscan2pdf: Nondeterministic duplex scanning)
Closes: #461058 (does not ask when quitting without saving the PDF)
- Updated rules to dh-make-perl 0.35
- Bumped Standards-Version
- + watch file
- New upstream release.
Closes: #440902 (window placement of scan dialog)
- New upstream release.
- New upstream release. Closes: #433497, #426525, #440204.
- Thanks to Jeffrey Ratcliffe for contributing to this Debian release.
- Added Jeffrey Ratcliffe to Uploaders.
- New upstream release.
- New upstream release.
- Initial upload to Debian. Closes: #420953.
- Added support for negative ranges on sliders. [516c47fb2f00]
- Added support for brightness slider. Needed for Visioneer Strobe XP
450 scanners. [516c47fb2f00]
- Added scanners/xp450 [b68d6a627700]
- Add .tif extension when saving TIFF and DjVu files, to match PDF
code. Fix up PDF saving extension regexp. [a0354eeeb4bf, 06425ce40520]