[packages/unpaper] - up to 6.1

adwol adwol at pld-linux.org
Fri Sep 11 16:00:19 CEST 2015


commit 32d5c1788ab0c858c2e3110c2374ce1712191c81
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Fri Sep 11 16:00:06 2015 +0200

    - up to 6.1

 unpaper.spec | 52 ++++++++++++++++++++++++++++++----------------------
 1 file changed, 30 insertions(+), 22 deletions(-)
---
diff --git a/unpaper.spec b/unpaper.spec
index 4b2eb0e..d330494 100644
--- a/unpaper.spec
+++ b/unpaper.spec
@@ -1,43 +1,51 @@
-#
 Summary:	Post-processing for scanned and photocopied book pages
 Name:		unpaper
-Version:	0.3
+Version:	6.1
 Release:	1
 License:	GPL v2
 Group:		Applications
-Source0:	http://download.berlios.de/unpaper/%{name}-%{version}.tar.gz
-# Source0-md5:	be41eaf8556e7df39ab53939c99c4f7b
-URL:		http://unpaper.berlios.de/
+Source0:	https://github.com/Flameeyes/%{name}/archive/%{name}-%{version}.tar.gz
+# Source0-md5:	ec5e54d6189773959d509b7c3f3d5c31
+URL:		https://www.flameeyes.eu/projects/unpaper
+BuildRequires:	ffmpeg-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-unpaper is a post-processing tool for scanned sheets of paper, especially for
-book pages that have been scanned from previously created photocopies. The main
-purpose is to make scanned book pages better readable on screen after
-conversion to PDF. Additionally, unpaper might be useful to enhance the quality
-of scanned pages before performing optical character recognition (OCR). unpaper
-tries to clean scanned images by removing dark edges that appeared through
-scanning or copying on areas outside the actual page content (e.g. dark areas
-between the left-hand-side and the right-hand-side of a double- sided book-page
-scan). The program also tries to detect disaligned centering and rotation of
-pages and will automatically straighten each page by rotating it to the correct
-angle. This process is called "deskewing".
+unpaper is a post-processing tool for scanned sheets of paper,
+especially for book pages that have been scanned from previously
+created photocopies. The main purpose is to make scanned book pages
+better readable on screen after conversion to PDF. Additionally,
+unpaper might be useful to enhance the quality of scanned pages before
+performing optical character recognition (OCR). unpaper tries to clean
+scanned images by removing dark edges that appeared through scanning
+or copying on areas outside the actual page content (e.g. dark areas
+between the left-hand-side and the right-hand-side of a double- sided
+book-page scan). The program also tries to detect disaligned centering
+and rotation of pages and will automatically straighten each page by
+rotating it to the correct angle. This process is called "deskewing".
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{name}-%{version}
 
 %build
-%{__cc} %{rpmcflags} %{rpmldflags} -o unpaper src/unpaper.c -lm
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install unpaper $RPM_BUILD_ROOT%{_bindir}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__mv} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG LICENSE doc/*
-%attr(755,root,root) %{_bindir}/*
+%{_defaultdocdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/unpaper.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unpaper.git/commitdiff/32d5c1788ab0c858c2e3110c2374ce1712191c81



More information about the pld-cvs-commit mailing list