diff --git a/libfakekey.spec b/libfakekey.spec index e19812a..bfb46d5 100644 --- a/libfakekey.spec +++ b/libfakekey.spec @@ -41,7 +41,7 @@ applications that use libfakekey. %prep -%setup -q +%autosetup %build @@ -49,15 +49,15 @@ applications that use libfakekey. autoreconf -f -i -v %endif %configure --disable-static -make %{?_smp_mflags} AM_LDFLAGS=-lX11 +%make_build AM_LDFLAGS="$(pkgconf --libs x11)" %install -make install DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{_libdir}/libfakekey.la +%make_install +rm -vf '%{buildroot}%{_libdir}/libfakekey.la' -%ldconfig_scriptlets +%{?el7:%ldconfig_scriptlets} %files @@ -78,7 +78,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libfakekey.la - Add a build conditional for autoreconf - Use pkgconfig(…) dependencies where appropriate - Upgrade source hash from MD5 to SHA-512 -- Reduce spec file macro indirection +- Reduce spec file macro indirection and modernize macros * Thu Jul 22 2021 Fedora Release Engineering - 0.1-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild