Blame SPECS/dlm.spec

ebdd34
Name:           dlm
ebdd34
Version:        4.0.2
ebdd34
Release:        2%{?dist}
ebdd34
License:        GPLv2 and GPLv2+ and LGPLv2+
ebdd34
# For a breakdown of the licensing, see README.license
ebdd34
Group:          System Environment/Kernel
ebdd34
Summary:        dlm control daemon and tool
ebdd34
URL:            https://fedorahosted.org/cluster
ebdd34
BuildRequires:  glibc-kernheaders
ebdd34
BuildRequires:  corosynclib-devel >= 1.99.9
ebdd34
BuildRequires:  pacemaker-libs-devel >= 1.1.7
ebdd34
BuildRequires:  libxml2-devel
ebdd34
BuildRequires:  systemd-units
ebdd34
BuildRequires:  systemd-devel
ebdd34
Source0:        http://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{version}.tar.gz
ebdd34
ebdd34
Patch0: 0001-dlm_stonith-add-man-page.patch
ebdd34
Patch1: 0002-dlm_stonith-install-man-page.patch
ebdd34
Patch2: 0003-libdlm-udev-dir-now-under-usr-lib.patch
ebdd34
ebdd34
%if 0%{?rhel}
ebdd34
ExclusiveArch: i686 x86_64
ebdd34
%endif
ebdd34
ebdd34
Requires:       %{name}-lib = %{version}-%{release}
ebdd34
Requires:       corosync >= 1.99.9
ebdd34
%{?fedora:Requires: kernel-modules-extra}
ebdd34
Requires(post): systemd-units
ebdd34
Requires(preun): systemd-units
ebdd34
Requires(postun): systemd-units
ebdd34
Conflicts: cman
ebdd34
ebdd34
%description
ebdd34
The kernel dlm requires a user daemon to control membership.
ebdd34
ebdd34
%prep
ebdd34
%setup -q
ebdd34
ebdd34
%patch0 -p1 -b .0001-dlm_stonith-add-man-page.patch
ebdd34
%patch1 -p1 -b .0002-dlm_stonith-install-man-page.patch
ebdd34
%patch2 -p1 -b .0003-libdlm-udev-dir-now-under-usr-lib.patch
ebdd34
ebdd34
%build
ebdd34
# upstream does not require configure
ebdd34
# upstream does not support _smp_mflags
ebdd34
CFLAGS=$RPM_OPT_FLAGS make
ebdd34
CFLAGS=$RPM_OPT_FLAGS make -C fence
ebdd34
ebdd34
%install
ebdd34
rm -rf $RPM_BUILD_ROOT
ebdd34
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
ebdd34
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
ebdd34
ebdd34
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
ebdd34
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
ebdd34
ebdd34
%post
ebdd34
%systemd_post dlm.service
ebdd34
ebdd34
%preun
ebdd34
%systemd_preun dlm.service
ebdd34
ebdd34
%postun
ebdd34
%systemd_postun_with_restart dlm.service
ebdd34
ebdd34
%files
ebdd34
%defattr(-,root,root,-)
ebdd34
%doc README.license
ebdd34
%{_unitdir}/dlm.service
ebdd34
%{_sbindir}/dlm_controld
ebdd34
%{_sbindir}/dlm_tool
ebdd34
%{_sbindir}/dlm_stonith
ebdd34
%{_mandir}/man8/dlm*
ebdd34
%{_mandir}/man5/dlm*
ebdd34
%{_mandir}/man3/*dlm*
ebdd34
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
ebdd34
ebdd34
%package        lib
ebdd34
Summary:        Library for %{name}
ebdd34
Group:          System Environment/Libraries
ebdd34
Conflicts:      clusterlib
ebdd34
ebdd34
%description    lib
ebdd34
The %{name}-lib package contains the libraries needed to use the dlm
ebdd34
from userland applications.
ebdd34
ebdd34
%post lib -p /sbin/ldconfig
ebdd34
ebdd34
%postun lib -p /sbin/ldconfig
ebdd34
ebdd34
%files          lib
ebdd34
%defattr(-,root,root,-)
ebdd34
/usr/lib/udev/rules.d/*-dlm.rules
ebdd34
%{_libdir}/libdlm*.so.*
ebdd34
ebdd34
%package        devel
ebdd34
Summary:        Development files for %{name}
ebdd34
Group:          Development/Libraries
ebdd34
Requires:       %{name}-lib = %{version}-%{release}
ebdd34
Conflicts:      clusterlib-devel
ebdd34
ebdd34
%description    devel
ebdd34
The %{name}-devel package contains libraries and header files for
ebdd34
developing applications that use %{name}.
ebdd34
ebdd34
%files          devel
ebdd34
%defattr(-,root,root,-)
ebdd34
%{_libdir}/libdlm*.so
ebdd34
%{_includedir}/libdlm*.h
ebdd34
%{_libdir}/pkgconfig/*.pc
ebdd34
ebdd34
%changelog
ebdd34
* Thu Aug 01 2013 David Teigland <teigland@redhat.com> - 4.0.2-2
ebdd34
- Add dlm_stonith man page, move udev file from /lib to /usr/lib
ebdd34
ebdd34
* Wed Jul 31 2013 David Teigland <teigland@redhat.com> - 4.0.2-1
ebdd34
- New upstream release
ebdd34