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
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*