File unpaper.spec of Package unpaper
#
# spec file for package unpaper (Version 0.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: unpaper
# BuildRequires: ImageMagick-Magick++-devel gcc-c++ ghostscript-fonts-std ghostscript-x11 joe libexif xfig pkgconfig
License: GNU General Public License (GPL)
Group: Productivity/Graphics/Other
Autoreqprov: on
Summary: Post-Processing Tool for Scanned Text Pages
Version: 0.2
Release: 43
Source: http://download.berlios.de/unpaper/unpaper-0_2.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://developer.berlios.de/projects/unpaper/
%description
The unpaper command line tool helps with post-processing scanned text
pages, especially for book pages scanned from photocopies. unpaper
tries to remove dark edges, corrects the rotation ("deskewing"), and
aligns the centering of pages.
Authors:
--------
Jens Gulden <unpaper@jensgulden.de>
%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%prep
%setup -c -q
%build
gcc $RPM_OPT_FLAGS -lm -funroll-all-loops -fomit-frame-pointer \
-ftree-vectorize -o unpaper src/unpaper.c
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_bindir}
%{INSTALL} unpaper $RPM_BUILD_ROOT%{_bindir}/unpaper
tr -d '\15' < license.txt >tmp.txt
mv tmp.txt license.txt
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc doc unpaper.html
%doc readme.txt license.txt
%{_bindir}/*
%changelog
* Mon Jun 04 2007 - ke@suse.de
- Fix eol markers of the license file.
* Tue Jan 16 2007 - ke@suse.de
- Install the binary in /usr/bin; reported by John McManaman [# 234548].
* Mon May 29 2006 - schwab@suse.de
- Don't strip binaries.
* Tue May 23 2006 - ke@suse.de
- Version 0.2: Post-Processing Tool for Scanned Text Pages.