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