]>
Commit | Line | Data |
---|---|---|
d1e1ac05 JK |
1 | Summary: Post-processing for scanned and photocopied book pages |
2 | Name: unpaper | |
32d5c178 | 3 | Version: 6.1 |
d6f92324 | 4 | Release: 3 |
d1e1ac05 JK |
5 | License: GPL v2 |
6 | Group: Applications | |
32d5c178 AO |
7 | Source0: https://github.com/Flameeyes/%{name}/archive/%{name}-%{version}.tar.gz |
8 | # Source0-md5: ec5e54d6189773959d509b7c3f3d5c31 | |
9 | URL: https://www.flameeyes.eu/projects/unpaper | |
10 | BuildRequires: ffmpeg-devel | |
d1e1ac05 JK |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
32d5c178 AO |
14 | unpaper is a post-processing tool for scanned sheets of paper, |
15 | especially for book pages that have been scanned from previously | |
16 | created photocopies. The main purpose is to make scanned book pages | |
17 | better readable on screen after conversion to PDF. Additionally, | |
18 | unpaper might be useful to enhance the quality of scanned pages before | |
19 | performing optical character recognition (OCR). unpaper tries to clean | |
20 | scanned images by removing dark edges that appeared through scanning | |
21 | or copying on areas outside the actual page content (e.g. dark areas | |
22 | between the left-hand-side and the right-hand-side of a double- sided | |
23 | book-page scan). The program also tries to detect disaligned centering | |
24 | and rotation of pages and will automatically straighten each page by | |
25 | rotating it to the correct angle. This process is called "deskewing". | |
d1e1ac05 JK |
26 | |
27 | %prep | |
32d5c178 | 28 | %setup -q -n %{name}-%{name}-%{version} |
d1e1ac05 JK |
29 | |
30 | %build | |
32d5c178 AO |
31 | %{__libtoolize} |
32 | %{__aclocal} | |
33 | %{__autoconf} | |
34 | %{__automake} | |
35 | %configure | |
36 | ||
37 | %{__make} | |
d1e1ac05 JK |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
32d5c178 AO |
41 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
42 | %{__mv} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version} | |
d1e1ac05 JK |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
32d5c178 AO |
49 | %{_defaultdocdir}/%{name}-%{version} |
50 | %attr(755,root,root) %{_bindir}/%{name} | |
51 | %{_mandir}/man1/unpaper.1* |