Modernize spec file
This commit is contained in:
parent
27f2065fe5
commit
41a99a490b
|
@ -0,0 +1,2 @@
|
|||
from Config import *
|
||||
addFilter("spelling-error .* deskewing");
|
34
unpaper.spec
34
unpaper.spec
|
@ -1,16 +1,16 @@
|
|||
Name: unpaper
|
||||
Version: 0.3
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
Summary: Post-processing of scanned and photocopied book pages
|
||||
|
||||
Group: Applications/Publishing
|
||||
# Licensed under any GPL version since none is specified
|
||||
License: GPL+
|
||||
URL: http://unpaper.berlios.de
|
||||
URL: http://unpaper.berlios.de/
|
||||
Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.gz
|
||||
Patch0: unpaper-0.3-format-security.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: sed
|
||||
|
||||
%description
|
||||
unpaper is a post-processing tool for scanned sheets of paper, especially for
|
||||
|
@ -21,37 +21,33 @@ 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
|
||||
book-page scan). The program also tries to detect misaligned 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
|
||||
%patch0 -p1
|
||||
|
||||
# fix eol encoding in LICENSE
|
||||
sed -i -e 's/\r//' LICENSE
|
||||
|
||||
%build
|
||||
(cd src && gcc $RPM_OPT_FLAGS -o unpaper unpaper.c -lm)
|
||||
|
||||
# fix eol encoding in LICENSE
|
||||
sed -i 's/\r//' LICENSE
|
||||
cd src
|
||||
gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS -o unpaper unpaper.c -lm
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -p -m 0755 src/unpaper $RPM_BUILD_ROOT/%{_bindir}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%license LICENSE
|
||||
%{_bindir}/*
|
||||
%doc doc CHANGELOG LICENSE README
|
||||
%doc doc CHANGELOG README
|
||||
|
||||
%changelog
|
||||
* Thu Jul 07 2016 Petr Pisar <ppisar@redhat.com> - 0.3-15
|
||||
- Modernize spec file
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue