]> git.pld-linux.org Git - packages/unpaper.git/blame - unpaper.spec
- up to 7.0.0
[packages/unpaper.git] / unpaper.spec
CommitLineData
d1e1ac05
JK
1Summary: Post-processing for scanned and photocopied book pages
2Name: unpaper
4ca6212a
JR
3Version: 7.0.0
4Release: 1
d1e1ac05
JK
5License: GPL v2
6Group: Applications
4ca6212a
JR
7Source0: https://www.flameeyes.com/files/%{name}-%{version}.tar.xz
8# Source0-md5: 24be66b049a27b6f841cc7444ceff9cc
32d5c178
AO
9URL: https://www.flameeyes.eu/projects/unpaper
10BuildRequires: ffmpeg-devel
4ca6212a
JR
11BuildRequires: meson >= 0.50.0
12BuildRequires: ninja >= 1.6
13BuildRequires: rpmbuild(macros) >= 1.736
d1e1ac05
JK
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
32d5c178
AO
17unpaper is a post-processing tool for scanned sheets of paper,
18especially for book pages that have been scanned from previously
19created photocopies. The main purpose is to make scanned book pages
20better readable on screen after conversion to PDF. Additionally,
21unpaper might be useful to enhance the quality of scanned pages before
22performing optical character recognition (OCR). unpaper tries to clean
23scanned images by removing dark edges that appeared through scanning
24or copying on areas outside the actual page content (e.g. dark areas
25between the left-hand-side and the right-hand-side of a double- sided
26book-page scan). The program also tries to detect disaligned centering
27and rotation of pages and will automatically straighten each page by
28rotating 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
39rm -rf $RPM_BUILD_ROOT
4ca6212a
JR
40
41%meson_install -C build
d1e1ac05
JK
42
43%clean
44rm -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*
This page took 0.131485 seconds and 4 git commands to generate.