packages: cryptsetup-luks/cryptsetup-luks.spec - package python binding (as...
qboosh
qboosh at pld-linux.org
Sat Nov 12 21:37:05 CET 2011
Author: qboosh Date: Sat Nov 12 20:37:05 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- package python binding (as python-pycryptsetup)
---- Files affected:
packages/cryptsetup-luks:
cryptsetup-luks.spec (1.57 -> 1.58)
---- Diffs:
================================================================
Index: packages/cryptsetup-luks/cryptsetup-luks.spec
diff -u packages/cryptsetup-luks/cryptsetup-luks.spec:1.57 packages/cryptsetup-luks/cryptsetup-luks.spec:1.58
--- packages/cryptsetup-luks/cryptsetup-luks.spec:1.57 Sat Nov 12 08:38:53 2011
+++ packages/cryptsetup-luks/cryptsetup-luks.spec Sat Nov 12 21:37:00 2011
@@ -3,7 +3,8 @@
# Conditonal build:
%bcond_without initrd # don't build initrd version
%bcond_without dietlibc # build initrd version with static glibc instead of dietlibc
-
+%bcond_without python # Python binding
+#
%define realname cryptsetup
Summary: LUKS for dm-crypt implemented in cryptsetup
Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup
@@ -33,6 +34,10 @@
BuildRequires: libtool >= 2:2.0
BuildRequires: libuuid-devel
BuildRequires: popt-devel >= 1.7
+%if %{with python}
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: rpm-pythonprov
+%endif
%if %{with initrd}
BuildRequires: libgpg-error-static
%if %{with dietlibc}
@@ -110,6 +115,19 @@
%description static -l pl.UTF-8
Statyczna wersja biblioteki cryptsetup.
+%package -n python-pycryptsetup
+Summary: Python binding for cryptsetup library
+Summary(pl.UTF-8): Wiązanie Pythona do biblioteki cryptsetup
+Group: Libraries/Python
+Requires: %{name}-libs = %{version}-%{release}
+%pyrequires_eq python-libs
+
+%description -n python-pycryptsetup
+Python binding for cryptsetup library.
+
+%description -n python-pycryptsetup -l pl.UTF-8
+Wiązanie Pythona do biblioteki cryptsetup.
+
%package initrd
Summary: LUKS for dm-crypt implemented in cryptsetup - initrd version
Summary(pl.UTF-8): LUKS dla dm-crypta zaimplementowany w cryptsetup - wersja initrd
@@ -196,7 +214,8 @@
%configure \
--enable-udev \
- --enable-static
+ --enable-static \
+ %{?with_python:--enable-python}
%{__make}
%install
@@ -221,6 +240,8 @@
install -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/scripts/local-top/cryptroot
install -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/cryptpassdev
+%{?with_python:%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pycryptsetup.{la,a}}
+
%find_lang %{realname}
%clean
@@ -248,6 +269,12 @@
%defattr(644,root,root,755)
%{_libdir}/libcryptsetup.a
+%if %{with python}
+%files -n python-pycryptsetup
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/pycryptsetup.so
+%endif
+
%if %{with initrd}
%files initrd
%defattr(644,root,root,755)
@@ -268,6 +295,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.58 2011/11/12 20:37:00 qboosh
+- package python binding (as python-pycryptsetup)
+
Revision 1.57 2011/11/12 07:38:53 arekm
- up to 1.4.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cryptsetup-luks/cryptsetup-luks.spec?r1=1.57&r2=1.58&f=u
More information about the pld-cvs-commit
mailing list