#1 Use make macros and %set_build_flags
Opened 2 years ago by tbaeder. Modified 2 years ago
rpms/ tbaeder/dlm rawhide  into  rawhide

file modified
+9 -6
@@ -1,6 +1,6 @@ 

  Name:           dlm

  Version:        4.1.0

- Release:        4%{?dist}

+ Release:        5%{?dist}

  License:        GPLv2 and GPLv2+ and LGPLv2+

  # For a breakdown of the licensing, see README.license

  Summary:        Kernel Distributed Lock Manager control daemon and tool
@@ -38,13 +38,13 @@ 

  

  %build

  # upstream does not require configure

- # upstream does not support _smp_mflags

- CFLAGS=$RPM_OPT_FLAGS make

- CFLAGS=$RPM_OPT_FLAGS make -C fence

+ # upstream does not support parallel builds

+ %set_build_flags

+ %make_build -j1

+ %make_build -j1 -C fence

  

  %install

- rm -rf $RPM_BUILD_ROOT

- make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT

+ %make_install LIBDIR=%{_libdir}

  make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT

  

  install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
@@ -99,6 +99,9 @@ 

  %{_libdir}/pkgconfig/*.pc

  

  %changelog

+ * Tue Sep 14 2021 Timm Bäder <tbaeder@redhat.com> - 4.1.0-5

+ - Use make macros and %%set_build_flags to propagate all build flags

+ 

  * Mon Aug 02 2021 David Teigland <teigland@redhat.com> - 4.1.0-4

  - fix pacemaker headers

  

no initial comment
Metadata