unpaper/unpaper.spec

56 lines
1.4 KiB
RPMSpec
Raw Normal View History

2021-08-16 11:25:20 +02:00
Name: unpaper
Version: 6.1
2021-08-24 11:27:43 +02:00
Release: 1
2021-08-16 11:25:20 +02:00
Summary: A post-processing tool for scanned sheets of paper
License: GPLv2
URL: https://github.com/unpaper/unpaper
2021-08-23 18:47:09 +02:00
Source0: https://github.com/unpaper/unpaper/archive/refs/tags/%{name}-%{version}.tar.gz
2021-08-16 11:25:20 +02:00
2021-08-23 18:47:09 +02:00
BuildRequires: autoconf
2021-08-23 18:57:24 +02:00
BuildRequires: automake
2021-08-16 11:25:20 +02:00
BuildRequires: meson
BuildRequires: sphinx
2021-08-24 11:27:43 +02:00
BuildRequires: ffmpeg-devel
BuildRequires: libxslt
2021-08-16 11:25:20 +02:00
Requires: ffmpeg
%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).
%prep
2021-08-16 11:30:02 +02:00
%setup -q
2021-08-16 11:25:20 +02:00
%build
2021-08-23 18:52:57 +02:00
autoreconf -fis
2021-08-16 11:25:20 +02:00
%configure --prefix=%{_prefix}
%{__make}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=%{buildroot}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING NEWS README.md
2021-08-24 11:27:43 +02:00
%doc %{_docdir}/%{name}/img/*.png
%doc %{_docdir}/%{name}/img/documentation.odg
%doc %{_docdir}/%{name}/basic-concepts.md
%doc %{_docdir}/%{name}/image-processing.md
%doc %{_docdir}/%{name}/file-formats.md
%{_mandir}/man1/unpaper.1.gz
%attr(0755,root,root) %{_bindir}/unpaper
2021-08-16 11:25:20 +02:00
%changelog
2021-08-24 11:27:43 +02:00
* Tue Aug 24 2021 Daniel Berteaud <daniel@firewall-services.com>
2021-08-16 11:25:20 +02:00
- First package