packages: sanlock/sanlock.spec (NEW) - new

qboosh qboosh at pld-linux.org
Fri Oct 21 18:08:24 CEST 2011


Author: qboosh                       Date: Fri Oct 21 16:08:24 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/sanlock:
   sanlock.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/sanlock/sanlock.spec
diff -u /dev/null packages/sanlock/sanlock.spec:1.1
--- /dev/null	Fri Oct 21 18:08:24 2011
+++ packages/sanlock/sanlock.spec	Fri Oct 21 18:08:19 2011
@@ -0,0 +1,148 @@
+# $Revision$, $Date$
+# TODO: fix & PLDify init scripts (currently bash scripts with /bin/sh shebang)
+Summary:	Shared storage lock manager
+Summary(pl.UTF-8):	Zarządca blokad dla współdzielonego składowania danych
+Name:		sanlock
+Version:	1.8
+Release:	0.1
+License:	LGPL v2+ (libsanlock_client, libwdmd), GPL v2 (libsanlock, utilities)
+Group:		Networking
+Source0:	https://fedorahosted.org/releases/s/a/sanlock/%{name}-%{version}.tar.gz
+# Source0-md5:	8d79874226981c43b658bd1e893aa87e
+URL:		https://fedorahosted.org/sanlock/
+BuildRequires:	gcc >= 5:3.4
+BuildRequires:	libaio-devel
+BuildRequires:	libblkid-devel
+BuildRequires:	libuuid-devel
+BuildRequires:	python-devel
+Requires:	%{name}-libs = %{version}-%{release}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Shared storage lock manager.
+
+%description -l pl.UTF-8
+Zarządca blokad dla współdzielonego składowania danych.
+
+%package libs
+Summary:	Sanlock libraries
+Summary(pl.UTF-8):	Biblioteki sanlock
+Group:		Libraries
+
+%description libs
+Sanlock libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki sanlock.
+
+%package devel
+Summary:	Header files for sanlock libraries
+Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek sanlock
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for sanlock libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek sanlock.
+
+%package -n python-sanlock
+Summary:	Python binding for sanlock library
+Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki sanlock
+Group:		Libraries/Python
+Requires:	%{name}-libs = %{version}-%{release}
+
+%description -n python-sanlock
+Python binding for sanlock library.
+
+%description -n python-sanlock -l pl.UTF-8
+Wiązanie Pythona do biblioteki sanlock.
+
+%prep
+%setup -q
+
+%build
+export CFLAGS="%{rpmcflags}"
+
+CMD_LDFLAGS="%{rpmldflags}" \
+LIB_LDFLAGS="%{rpmldflags}" \
+%{__make} -C wdmd \
+	CC="%{__cc}"
+
+CMD_LDFLAGS="%{rpmldflags}" \
+LIB_CLIENT_LDFLAGS="%{rpmldflags}" \
+LIB_ENTIRE_LDFLAGS="%{rpmldflags}" \
+%{__make} -C src \
+	CC="%{__cc}"
+
+%{__make} -C python
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C wdmd install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	LIBDIR=%{_libdir}
+
+%{__make} -C src install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	LIBDIR=%{_libdir}
+
+%{__make} -C python install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
+
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/run/{sanlock,wdmd}}
+install init.d/sanlock $RPM_BUILD_ROOT/etc/rc.d/init.d
+install init.d/wdmd $RPM_BUILD_ROOT/etc/rc.d/init.d
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.license
+%attr(755,root,root) %{_sbindir}/sanlock
+%attr(755,root,root) %{_sbindir}/wdmd
+%attr(754,root,root) /etc/rc.d/init.d/sanlock
+%attr(754,root,root) /etc/rc.d/init.d/wdmd
+%dir /var/run/sanlock
+%dir /var/run/wdmd
+%{_mandir}/man8/sanlock.8*
+%{_mandir}/man8/wdmd.8*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsanlock.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsanlock.so.1
+%attr(755,root,root) %{_libdir}/libsanlock_client.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsanlock_client.so.1
+%attr(755,root,root) %{_libdir}/libwdmd.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwdmd.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsanlock.so
+%attr(755,root,root) %{_libdir}/libsanlock_client.so
+%attr(755,root,root) %{_libdir}/libwdmd.so
+%{_includedir}/sanlock*.h
+%{_includedir}/wdmd.h
+
+%files -n python-sanlock
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/sanlock.so
+%{py_sitedir}/Sanlock-1.0-py*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/10/21 16:08:19  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list