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

# 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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

    Jens Gulden <>

%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644

%setup -q

gcc $RPM_OPT_FLAGS -o unpaper src/unpaper.c -lm

%{INSTALL} unpaper $RPM_BUILD_ROOT%{_bindir}/unpaper
tr -d '\15' < LICENSE >tmp.txt
mv tmp.txt LICENSE

rm -rf %{buildroot}

%defattr(-, root, root)
%doc doc

* Tue Jun 16 2009
- Update to 0.3.
* Mon Jun 15 2009
- Fix link order
* Mon Jun 04 2007
- Fix eol markers of the license file.
* Tue Jan 16 2007
- Install the binary in /usr/bin; reported by John McManaman [# 234548].
* Mon May 29 2006
- Don't strip binaries.
* Tue May 23 2006
- Version 0.2: Post-Processing Tool for Scanned Text Pages.