- Fixed init script packaging
OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=11
This commit is contained in:
parent
8876b30f89
commit
fcbad5080b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 11:03:43 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- Fixed init script packaging
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 23 11:20:40 MST 2012 - jfehlig@suse.com
|
Mon Jan 23 11:20:40 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
28
sanlock.spec
28
sanlock.spec
@ -35,6 +35,7 @@ BuildRequires: libblkid-devel libaio-devel python python-devel
|
|||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
|
Requires(pre): %insserv_prereq %fillup_prereq
|
||||||
Requires: %{name}-lib = %{version}-%{release}
|
Requires: %{name}-lib = %{version}-%{release}
|
||||||
# Latest version available at
|
# Latest version available at
|
||||||
# https://fedorahosted.org/releases/s/a/sanlock/
|
# https://fedorahosted.org/releases/s/a/sanlock/
|
||||||
@ -102,34 +103,23 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%post
|
%post
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_add_post wdmd.service sanlock.service
|
%service_add_post wdmd.service sanlock.service
|
||||||
%else
|
|
||||||
%{fillup_only -n sanlock}
|
|
||||||
%endif
|
%endif
|
||||||
|
%fillup_only -n sanlock
|
||||||
|
%restart_on_update wdmd
|
||||||
|
%restart_on_update sanlock
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_del_preun wdmd.service sanlock.service
|
%service_del_preun wdmd.service sanlock.service
|
||||||
%else
|
|
||||||
%{stop_on_removal wdmd}
|
|
||||||
%{stop_on_removal sanlock}
|
|
||||||
%endif
|
%endif
|
||||||
##if [ $1 = 0 ]; then
|
%stop_on_removal wdmd
|
||||||
## /sbin/service sanlock stop > /dev/null 2>&1
|
%stop_on_removal sanlock
|
||||||
## /sbin/service wdmd stop > /dev/null 2>&1
|
|
||||||
## /sbin/chkconfig --del sanlock
|
|
||||||
## /sbin/chkconfig --del wdmd
|
|
||||||
##fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_del_postun wdmd.service sanlock.service
|
%service_del_postun wdmd.service sanlock.service
|
||||||
%else
|
|
||||||
%restart_on_update wdmd
|
|
||||||
%restart_on_update sanlock
|
|
||||||
%endif
|
%endif
|
||||||
%{insserv_cleanup}
|
%insserv_cleanup
|
||||||
#/sbin/service sanlock condrestart >/dev/null 2>&1 || :
|
|
||||||
#/sbin/service wdmd condrestart >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -172,7 +162,7 @@ access to the shared disks.
|
|||||||
Provides: sanlock-python
|
Provides: sanlock-python
|
||||||
Summary: Python bindings for the sanlock library
|
Summary: Python bindings for the sanlock library
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: %{name}-lib = %{version}-%{release}
|
Requires: libsanlock1 = %{version}-%{release}
|
||||||
|
|
||||||
%description -n python-%name
|
%description -n python-%name
|
||||||
The %{name}-python package contains a module that permits applications
|
The %{name}-python package contains a module that permits applications
|
||||||
@ -187,7 +177,7 @@ supplied by the sanlock library.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-lib = %{version}-%{release}
|
Requires: libsanlock1 = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
Loading…
Reference in New Issue
Block a user