From 4ca6212abaaf841ea654df3b77e524b1f76eada9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 21 Oct 2023 22:29:09 +0200 Subject: [PATCH] - up to 7.0.0 --- unpaper.spec | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/unpaper.spec b/unpaper.spec index 8192002..defc86a 100644 --- a/unpaper.spec +++ b/unpaper.spec @@ -1,13 +1,16 @@ Summary: Post-processing for scanned and photocopied book pages Name: unpaper -Version: 6.1 -Release: 4 +Version: 7.0.0 +Release: 1 License: GPL v2 Group: Applications -Source0: https://github.com/Flameeyes/%{name}/archive/%{name}-%{version}.tar.gz -# Source0-md5: ec5e54d6189773959d509b7c3f3d5c31 +Source0: https://www.flameeyes.com/files/%{name}-%{version}.tar.xz +# Source0-md5: 24be66b049a27b6f841cc7444ceff9cc URL: https://www.flameeyes.eu/projects/unpaper BuildRequires: ffmpeg-devel +BuildRequires: meson >= 0.50.0 +BuildRequires: ninja >= 1.6 +BuildRequires: rpmbuild(macros) >= 1.736 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -25,27 +28,23 @@ 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 -n %{name}-%{name}-%{version} +%setup -q %build -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__automake} -%configure +%meson build -%{__make} +%meson_build -C build %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT -%{__mv} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version} + +%meson_install -C build %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%{_defaultdocdir}/%{name}-%{version} +%doc README.md doc/*.md doc/img %attr(755,root,root) %{_bindir}/%{name} %{_mandir}/man1/unpaper.1* -- 2.44.0