- systemd is history
[packages/dlm.git] / dlm.spec
index 3676c0c2cb82088f5f2513d6267a3ea7007c8f79..6bbb10adc91d95a3903d2655c008b23712a1b0b6 100644 (file)
--- a/dlm.spec
+++ b/dlm.spec
@@ -5,7 +5,7 @@
 Summary:       General-purpose distributed lock manager
 Summary(pl.UTF-8):     Zarządca rozproszonych blokad ogólnego przeznaczenia
 Name:          dlm
-%define     _snap   4283123f0b13eafc46d825050c5142cf44be79c3
+%define                _snap   4283123f0b13eafc46d825050c5142cf44be79c3
 Version:       4.0.3
 Release:       1
 License:       LGPL v2.1+, GPL v2
@@ -14,20 +14,17 @@ Source0:    https://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{_snap}.tar
 # Source0-md5: 575174a0d7b0e1a6e45ec88f447c48cc
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
-Source3:       %{name}.tmpfiles
 Source4:       dlm.conf
-Patch0:                %{name}-systemd-configfs.patch
-Patch1:     old_udev_dir.patch
+Patch0:                no_systemd.patch
+Patch1:                old_udev_dir.patch
 URL:           http://sources.redhat.com/cluster/dlm/
 BuildRequires: corosync-devel >= 2.0
 %{?with_dlm_stonith:BuildRequires:     libxml2-devel >= 2.0}
 %{?with_dlm_stonith:BuildRequires:     pacemaker-devel >= 1.1}
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.644
-BuildRequires: systemd-devel
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      rc-scripts
-Requires:      systemd-units >= 208-8
 Requires(post,preun):  /sbin/chkconfig
 Obsoletes:     cluster-dlm
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -97,9 +94,9 @@ Pliki nagłówkowe i dokumentacja programisty dla DLM-a.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{systemdunitdir},/etc/{rc.d/init.d,sysconfig}} \
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
                $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
-               $RPM_BUILD_ROOT{/var/run/dlm,%{systemdtmpfilesdir}}
+               $RPM_BUILD_ROOT/var/run/dlm
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -121,29 +118,24 @@ install -d $RPM_BUILD_ROOT{%{systemdunitdir},/etc/{rc.d/init.d,sysconfig}} \
        HDRDIR=%{_includedir}
 %endif
 
-install init/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%systemd_post %{name}.service
 
 %preun
 /sbin/chkconfig --add %{name}
 %service %{name} restart
-%systemd_preun %{name}.service
 
 %postun
 if [ "$1" = "0" ]; then
        %service -q %{name} stop
        /sbin/chkconfig --del %{name}
 fi
-%systemd_reload
 
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
@@ -161,8 +153,6 @@ fi
 %verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/%{name}
 %{_mandir}/man8/dlm_*.8*
 %{_mandir}/man5/dlm.conf.5*
-%{systemdunitdir}/%{name}.service
-%{systemdtmpfilesdir}/%{name}.conf
 %dir /var/run/dlm
 
 %files libs