From 7c1deb6a92a842604bcb7e65c279e75490bfdb32 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 21 Apr 2022 09:05:10 +0200 Subject: [PATCH] Adapt for meson build --- unpaper.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/unpaper.spec b/unpaper.spec index 2e605b2..9b0eeda 100644 --- a/unpaper.spec +++ b/unpaper.spec @@ -28,13 +28,12 @@ of scanned pages before performing optical character recognition %setup -q %build -autoreconf -fis -%configure --prefix=%{_prefix} -%{__make} +CFLAGS="-march=native" meson --buildtype=debugoptimized builddir +meson compile -C builddir %install %{__rm} -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=%{buildroot} +DESTDIR=%{buildroot} meson install %clean %{__rm} -rf $RPM_BUILD_ROOT