Use make_build macro

https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
This commit is contained in:
David King 2020-08-18 13:09:02 +01:00
parent c373399a50
commit 62f643aa2d

View File

@ -3,7 +3,7 @@
Name: yelp
Epoch: 2
Version: 3.37.90
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Help browser for the GNOME desktop
License: LGPLv2+ and ASL 2.0 and GPLv2+
@ -64,7 +64,7 @@ the libraries in the yelp-libs package.
# libtool doesn't make this easy, so we do it the hard way
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make %{?_smp_mflags} V=1
%make_build
%install
%make_install
@ -103,6 +103,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/yelp.desktop
%changelog
* Tue Aug 18 2020 David King <amigadave@amigadave.com> - 2:3.37.90-2
- Use make_build macro
* Mon Aug 17 2020 Kalev Lember <klember@redhat.com> - 2:3.37.90-1
- Update to 3.37.90