Use make macros and %set_build_flags
This commit is contained in:
parent
6d6dd3ab98
commit
cdbf467ed0
17
dlm.spec
17
dlm.spec
@ -1,6 +1,6 @@
|
|||||||
Name: dlm
|
Name: dlm
|
||||||
Version: 4.1.0
|
Version: 4.1.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
||||||
# For a breakdown of the licensing, see README.license
|
# For a breakdown of the licensing, see README.license
|
||||||
Summary: Kernel Distributed Lock Manager control daemon and tool
|
Summary: Kernel Distributed Lock Manager control daemon and tool
|
||||||
@ -22,7 +22,7 @@ ExclusiveArch: i686 x86_64
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: %{name}-lib = %{version}-%{release}
|
Requires: %{name}-lib = %{version}-%{release}
|
||||||
Requires: corosync >= 1.99.9
|
Requires: corosync >= 3.1.0
|
||||||
%{?fedora:Requires: kernel-modules-extra}
|
%{?fedora:Requires: kernel-modules-extra}
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
@ -38,13 +38,13 @@ The kernel dlm requires a user daemon to control membership.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# upstream does not require configure
|
# upstream does not require configure
|
||||||
# upstream does not support _smp_mflags
|
# upstream does not support parallel builds
|
||||||
CFLAGS=$RPM_OPT_FLAGS make
|
%set_build_flags
|
||||||
CFLAGS=$RPM_OPT_FLAGS make -C fence
|
%make_build -j1
|
||||||
|
%make_build -j1 -C fence
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install LIBDIR=%{_libdir}
|
||||||
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
|
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
|
||||||
@ -99,6 +99,9 @@ developing applications that use %{name}.
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 02 2021 David Teigland <teigland@redhat.com> - 4.1.0-4
|
||||||
- fix pacemaker headers
|
- fix pacemaker headers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user