From 7e5999d5d3c212e5fe4e2358d50e0c2f22c86efa Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 16 Aug 2021 11:25:20 +0200 Subject: [PATCH] Add spec file --- unpaper.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 unpaper.spec diff --git a/unpaper.spec b/unpaper.spec new file mode 100644 index 0000000..89b06ff --- /dev/null +++ b/unpaper.spec @@ -0,0 +1,47 @@ +Name: unpaper +Version: 6.1 +Release: 0.beta1 +Summary: A post-processing tool for scanned sheets of paper + +License: GPLv2 +URL: https://github.com/unpaper/unpaper +Source0: %{name}-%{version}.tar.gz + +BuildRequires: meson +BuildRequires: sphinx +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 +%setup -n + +%build +aclocal +automake --add-missing +autoconf +%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 +%{_mandir}/man1/unpaper.1 + +%changelog +* Fri Aug 06 2021 Daniel Berteaud +- First package