File unpaper.spec of Package unpaper
#
# spec file for package unpaper (Version 0.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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: GPL-2.0+
Group: Productivity/Graphics/Other
AutoReqProv: on
Summary: Post-Processing Tool for Scanned Text Pages
Version: 0.3
Release: 1
Source: http://download.berlios.de/unpaper/unpaper-0.3.tar.bz2
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 with 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 -q
%build
gcc $RPM_OPT_FLAGS -o unpaper src/unpaper.c -lm
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_bindir}
%{INSTALL} unpaper $RPM_BUILD_ROOT%{_bindir}/unpaper
tr -d '\15' < LICENSE >tmp.txt
mv tmp.txt LICENSE
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc doc
%doc README LICENSE
%{_bindir}/*
%changelog
* Tue Jun 16 2009 ke@suse.de
- Update to 0.3.
* Mon Jun 15 2009 kukuk@suse.de
- Fix link order
* 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.