]> git.pld-linux.org Git - packages/unpaper.git/blob - unpaper.spec
- release 2 (by relup.sh)
[packages/unpaper.git] / unpaper.spec
1 Summary:        Post-processing for scanned and photocopied book pages
2 Name:           unpaper
3 Version:        6.1
4 Release:        2
5 License:        GPL v2
6 Group:          Applications
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
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
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".
26
27 %prep
28 %setup -q -n %{name}-%{name}-%{version}
29
30 %build
31 %{__libtoolize}
32 %{__aclocal}
33 %{__autoconf}
34 %{__automake}
35 %configure
36
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %{__make} install DESTDIR=$RPM_BUILD_ROOT
42 %{__mv} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %{_defaultdocdir}/%{name}-%{version}
50 %attr(755,root,root) %{_bindir}/%{name}
51 %{_mandir}/man1/unpaper.1*
This page took 0.078923 seconds and 3 git commands to generate.