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