forked from pool/sanlock
- Don't use __DATE__ and __TIME__ macros when printing version
- Don't add user 'sanlock' for now OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=7
This commit is contained in:
parent
d73f369410
commit
57fd50a370
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 20 15:37:56 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- Don't use __DATE__ and __TIME__ macros when printing version
|
||||||
|
- Don't add user 'sanlock' for now
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 19 18:04:13 MST 2012 - jfehlig@suse.com
|
Thu Jan 19 18:04:13 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ Summary: A shared disk lock manager
|
|||||||
Group: System/Base
|
Group: System/Base
|
||||||
License: GPLv2, GPLv2+, LGPLv2+
|
License: GPLv2, GPLv2+, LGPLv2+
|
||||||
URL: https://fedorahosted.org/sanlock/
|
URL: https://fedorahosted.org/sanlock/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: libblkid-devel libaio-devel python python-devel
|
BuildRequires: libblkid-devel libaio-devel python python-devel
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
@ -44,6 +44,7 @@ Patch0: sanlock-SCHED_RESET_ON_FORK-undefined.patch
|
|||||||
Patch1: sanlock-python-prefix.patch
|
Patch1: sanlock-python-prefix.patch
|
||||||
Patch2: sanlock-old_blkid.patch
|
Patch2: sanlock-old_blkid.patch
|
||||||
Patch3: suse-systemd.patch
|
Patch3: suse-systemd.patch
|
||||||
|
Patch4: suse-no-date-time.patch
|
||||||
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ access to the shared disks.
|
|||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# upstream does not require configure
|
# upstream does not require configure
|
||||||
@ -90,8 +92,6 @@ install -D -m 755 init.d/wdmd.service $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/useradd -u 179 -g 179 -c "sanlock" -s /sbin/nologin -r \
|
|
||||||
-d /var/run/sanlock sanlock 2> /dev/null || :
|
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_add_pre wdmd.service
|
%service_add_pre wdmd.service
|
||||||
%service_add_pre sanlock.service
|
%service_add_pre sanlock.service
|
||||||
|
14
suse-no-date-time.patch
Normal file
14
suse-no-date-time.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: sanlock-1.9/src/main.c
|
||||||
|
===================================================================
|
||||||
|
--- sanlock-1.9.orig/src/main.c
|
||||||
|
+++ sanlock-1.9/src/main.c
|
||||||
|
@@ -1430,8 +1430,7 @@ static int read_command_line(int argc, c
|
||||||
|
|
||||||
|
if (!strcmp(arg1, "version") || !strcmp(arg1, "--version") ||
|
||||||
|
!strcmp(arg1, "-V")) {
|
||||||
|
- printf("%s %s (built %s %s)\n",
|
||||||
|
- argv[0], RELEASE_VERSION, __DATE__, __TIME__);
|
||||||
|
+ printf("%s %s\n", argv[0], RELEASE_VERSION);
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user