SPECS: cryptlib.spec - Up to 3.3.1 - python-cryptlib package added...

beorn beorn at pld-linux.org
Fri Sep 28 15:03:15 CEST 2007


Author: beorn                        Date: Fri Sep 28 13:03:15 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Up to 3.3.1
- python-cryptlib package added
- Please, someone check that Provides: hack. I don't like it, but I don't know how to make it in a good way.

---- Files affected:
SPECS:
   cryptlib.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/cryptlib.spec
diff -u SPECS/cryptlib.spec:1.6 SPECS/cryptlib.spec:1.7
--- SPECS/cryptlib.spec:1.6	Mon Feb 12 22:23:51 2007
+++ SPECS/cryptlib.spec	Fri Sep 28 15:03:10 2007
@@ -1,17 +1,25 @@
 # $Revision$, $Date$
+#
+%define		libver	3.3.0
+#
 Summary:	Peter Gutmann's general purpose encryption library
 Summary(pl.UTF-8):	Biblioteka kryptograficzna ogólnego przeznaczenia Petera Gutmanna
 Name:		cryptlib
-Version:	3.2.2
-Release:	1
+Version:	3.3.1
+Release:	0.1
 License:	sleepycat
 Group:		Libraries
-Source0:	ftp://ftp.franken.de/pub/crypt/cryptlib/cl322.zip
-# Source0-md5:	0944963faae4566f54aeb45c6e803142
+Source0:	ftp://ftp.franken.de/pub/crypt/cryptlib/cl331.zip
+# Source0-md5:	3e93e5aa0b33fb1d5b05b099f01e0afe
 URL:		http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
 BuildRequires:	sed >= 4.0
 BuildRequires:	unzip
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildRequires:  rpm-pythonprov
+%pyrequires_eq  python-modules
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Provides:	libcl.so
 
 %description
 The cryptlib encryption library provides an easy-to-use interface
@@ -57,6 +65,18 @@
 %description static -l pl.UTF-8
 Statyczna biblioteka cryptlib.
 
+%package -n python-cryptlib
+Summary:	Python bindings for cryptlib
+Summary(pl.UTF-8):	Wiązania języka Python do biblioteki cryptlib
+Group:		Libraries/Python
+Requires:	python >= 1:2.4
+
+%description -n python-cryptlib
+Python bindings for cryptlib library.
+
+%description -n python-cryptlib -l pl.UTF-8
+Wiązania języka Python do biblioteki cryptlib.
+
 %prep
 %setup -q -T -c
 unzip -L -a %{SOURCE0}
@@ -70,14 +90,24 @@
 %{__make} shared \
 	CC="%{__cc}"
 
+ln -sf libcl.so.%{libver} libcl.so
+
+cd bindings
+python setup.py build
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{py_sitedir}}
 
 install cryptlib.h $RPM_BUILD_ROOT%{_includedir}
 install libcl.a $RPM_BUILD_ROOT%{_libdir}
-install libcl.so.3.2.2 $RPM_BUILD_ROOT%{_libdir}
-ln -sf libcl.so.3.2.2 $RPM_BUILD_ROOT%{_libdir}/libcl.so
+install libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}
+ln -s %{_libdir}/libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libcl.so
+
+cd bindings
+python setup.py install	\
+	--optimize=2	\
+	--root=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -87,23 +117,32 @@
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libcl.so.3.2.2
+%attr(755,root,root) %{_libdir}/libcl.so.%{libver}
+%{_libdir}/libcl.so
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libcl.so
 %{_includedir}/cryptlib.h
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcl.a
 
+%files -n python-cryptlib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/*.so
+
 %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.7  2007/09/28 13:03:10  beorn
+- Up to 3.3.1
+- python-cryptlib package added
+- Please, someone check that Provides: hack. I don't like it, but I don't know how to make it in a good way.
+
 Revision 1.6  2007/02/12 21:23:51  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/cryptlib.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list