Blame SPECS/dlm.spec

24166f
Name:           dlm
24166f
Version:        4.0.7
24166f
Release:        1%{?dist}
24166f
License:        GPLv2 and GPLv2+ and LGPLv2+
24166f
# For a breakdown of the licensing, see README.license
24166f
Group:          System Environment/Kernel
24166f
Summary:        dlm control daemon and tool
24166f
URL:            https://fedorahosted.org/cluster
24166f
BuildRequires:  glibc-kernheaders
24166f
BuildRequires:  corosynclib-devel >= 1.99.9
24166f
BuildRequires:  pacemaker-libs-devel >= 1.1.7
24166f
BuildRequires:  libxml2-devel
24166f
BuildRequires:  systemd-units
24166f
BuildRequires:  systemd-devel
24166f
Source0:        http://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{version}.tar.gz
24166f
24166f
# Patch0: 0001-foo.patch
24166f
24166f
%if 0%{?rhel}
24166f
ExclusiveArch: i686 x86_64 s390x ppc64le
24166f
%endif
24166f
24166f
Requires:       %{name}-lib = %{version}-%{release}
24166f
Requires:       corosync >= 1.99.9
24166f
%{?fedora:Requires: kernel-modules-extra}
24166f
Requires(post): systemd-units
24166f
Requires(preun): systemd-units
24166f
Requires(postun): systemd-units
24166f
Conflicts: cman
24166f
24166f
%description
24166f
The kernel dlm requires a user daemon to control membership.
24166f
24166f
%prep
24166f
%setup -q
24166f
24166f
# %patch0 -p1 -b .0001-foo.patch
24166f
24166f
%build
24166f
# upstream does not require configure
24166f
# upstream does not support _smp_mflags
24166f
CFLAGS=$RPM_OPT_FLAGS make
24166f
CFLAGS=$RPM_OPT_FLAGS make -C fence
24166f
24166f
%install
24166f
rm -rf $RPM_BUILD_ROOT
24166f
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
24166f
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
24166f
24166f
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
24166f
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
24166f
24166f
%post
24166f
%systemd_post dlm.service
24166f
24166f
%preun
24166f
%systemd_preun dlm.service
24166f
24166f
%postun
24166f
%systemd_postun_with_restart dlm.service
24166f
24166f
%files
24166f
%defattr(-,root,root,-)
24166f
%doc README.license
24166f
%{_unitdir}/dlm.service
24166f
%{_sbindir}/dlm_controld
24166f
%{_sbindir}/dlm_tool
24166f
%{_sbindir}/dlm_stonith
24166f
%{_mandir}/man8/dlm*
24166f
%{_mandir}/man5/dlm*
24166f
%{_mandir}/man3/*dlm*
24166f
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
24166f
24166f
%package        lib
24166f
Summary:        Library for %{name}
24166f
Group:          System Environment/Libraries
24166f
Conflicts:      clusterlib
24166f
24166f
%description    lib
24166f
The %{name}-lib package contains the libraries needed to use the dlm
24166f
from userland applications.
24166f
24166f
%post lib -p /sbin/ldconfig
24166f
24166f
%postun lib -p /sbin/ldconfig
24166f
24166f
%files          lib
24166f
%defattr(-,root,root,-)
24166f
/usr/lib/udev/rules.d/*-dlm.rules
24166f
%{_libdir}/libdlm*.so.*
24166f
24166f
%package        devel
24166f
Summary:        Development files for %{name}
24166f
Group:          Development/Libraries
24166f
Requires:       %{name}-lib = %{version}-%{release}
24166f
Conflicts:      clusterlib-devel
24166f
24166f
%description    devel
24166f
The %{name}-devel package contains libraries and header files for
24166f
developing applications that use %{name}.
24166f
24166f
%files          devel
24166f
%defattr(-,root,root,-)
24166f
%{_libdir}/libdlm*.so
24166f
%{_includedir}/libdlm*.h
24166f
%{_libdir}/pkgconfig/*.pc
24166f
24166f
%changelog
24166f
* Tue Apr 04 2017 David Teigland <teigland@redhat.com> - 4.0.7-1
24166f
- New upstream release
24166f
24166f
* Thu Mar 23 2017 Alasdair Kergon <agk@redhat.com> - 4.0.6-2
24166f
- Add ppc64le to build.
24166f
24166f
* Fri Jun 10 2016 David Teigland <teigland@redhat.com> - 4.0.6-1
24166f
- New upstream release
24166f
24166f
* Tue Apr 26 2016 David Teigland <teigland@redhat.com> - 4.0.5-1
24166f
- New upstream release
24166f
24166f
* Mon Feb 29 2016 David Teigland <teigland@redhat.com> - 4.0.4-1
24166f
- New upstream release
24166f
24166f
* Mon Jul 06 2015 David Teigland <teigland@redhat.com> - 4.0.2-6
24166f
- dlm_controld: don't log error from cpg_dispatch
24166f
24166f
* Mon Nov 17 2014 David Teigland <teigland@redhat.com> - 4.0.2-5
24166f
- dlm_tool: fix status printing in libdlmcontrol 
24166f
24166f
* Fri Sep 12 2014 David Teigland <teigland@redhat.com> - 4.0.2-4
24166f
- Enable s390x, fix non-zeroed addrs
24166f
24166f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.0.2-3
24166f
- Mass rebuild 2013-12-27
24166f
24166f
* Thu Aug 01 2013 David Teigland <teigland@redhat.com> - 4.0.2-2
24166f
- Add dlm_stonith man page, move udev file from /lib to /usr/lib
24166f
24166f
* Wed Jul 31 2013 David Teigland <teigland@redhat.com> - 4.0.2-1
24166f
- New upstream release
24166f