SPECS: cryptlib.spec - added rdtsc, soname patches, builds now prop...

qboosh qboosh at pld-linux.org
Tue Jan 8 20:33:39 CET 2008


Author: qboosh                       Date: Tue Jan  8 19:33:39 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added rdtsc,soname patches, builds now properly; reverted .so hacks

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

---- Diffs:

================================================================
Index: SPECS/cryptlib.spec
diff -u SPECS/cryptlib.spec:1.7 SPECS/cryptlib.spec:1.8
--- SPECS/cryptlib.spec:1.7	Fri Sep 28 15:03:10 2007
+++ SPECS/cryptlib.spec	Tue Jan  8 20:33:34 2008
@@ -11,15 +11,16 @@
 Group:		Libraries
 Source0:	ftp://ftp.franken.de/pub/crypt/cryptlib/cl331.zip
 # Source0-md5:	3e93e5aa0b33fb1d5b05b099f01e0afe
+Patch0:		%{name}-rdtsc.patch
+Patch1:		%{name}-soname.patch
 URL:		http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
 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
@@ -79,7 +80,9 @@
 
 %prep
 %setup -q -T -c
-unzip -L -a %{SOURCE0}
+unzip -q -L -a %{SOURCE0}
+%patch0 -p1
+%patch1 -p1
 
 sed -i -e 's/ -O3 / %{rpmcflags} /' makefile
 
@@ -102,7 +105,8 @@
 install cryptlib.h $RPM_BUILD_ROOT%{_includedir}
 install libcl.a $RPM_BUILD_ROOT%{_libdir}
 install libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}
-ln -s %{_libdir}/libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libcl.so
+ln -s libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libcl.so.3
+ln -s libcl.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libcl.so
 
 cd bindings
 python setup.py install	\
@@ -118,10 +122,11 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libcl.so.%{libver}
-%{_libdir}/libcl.so
+%attr(755,root,root) %ghost %{_libdir}/libcl.so.3
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcl.so
 %{_includedir}/cryptlib.h
 
 %files static
@@ -130,7 +135,8 @@
 
 %files -n python-cryptlib
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/*.so
+%attr(755,root,root) %{py_sitedir}/cryptlib_py.so
+%{py_sitedir}/cryptlib_py-*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -138,6 +144,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2008-01-08 19:33:34  qboosh
+- added rdtsc,soname patches, builds now properly; reverted .so hacks
+
 Revision 1.7  2007-09-28 13:03:10  beorn
 - Up to 3.3.1
 - python-cryptlib package added
================================================================

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



More information about the pld-cvs-commit mailing list