]> git.pld-linux.org Git - packages/unpaper.git/blob - unpaper.spec
- up to 7.0.0
[packages/unpaper.git] / unpaper.spec
1 Summary:        Post-processing for scanned and photocopied book pages
2 Name:           unpaper
3 Version:        7.0.0
4 Release:        1
5 License:        GPL v2
6 Group:          Applications
7 Source0:        https://www.flameeyes.com/files/%{name}-%{version}.tar.xz
8 # Source0-md5:  24be66b049a27b6f841cc7444ceff9cc
9 URL:            https://www.flameeyes.eu/projects/unpaper
10 BuildRequires:  ffmpeg-devel
11 BuildRequires:  meson >= 0.50.0
12 BuildRequires:  ninja >= 1.6
13 BuildRequires:  rpmbuild(macros) >= 1.736
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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".
29
30 %prep
31 %setup -q
32
33 %build
34 %meson build
35
36 %meson_build -C build
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %meson_install -C build
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README.md doc/*.md doc/img
49 %attr(755,root,root) %{_bindir}/%{name}
50 %{_mandir}/man1/unpaper.1*
This page took 0.070139 seconds and 3 git commands to generate.