[python26-m2crypto/el5/master: 17/78] - Update to m2crypto-0.15 - Drop bundled swig

gholms gholms at fedoraproject.org
Wed Feb 23 00:26:40 UTC 2011


commit bb7c1fb4a3c830f6aeb3d389b8967c3030bc18ef
Author: Miloslav Trmac <mitr at fedoraproject.org>
Date:   Mon Aug 29 00:57:58 2005 +0000

    - Update to m2crypto-0.15
    - Drop bundled swig

 .cvsignore    |    3 +--
 m2crypto.spec |   54 +++++++++++++++---------------------------------------
 sources       |    3 +--
 3 files changed, 17 insertions(+), 43 deletions(-)
---
diff --git a/.cvsignore b/.cvsignore
index a01065e..d6d4995 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1 @@
-m2crypto-0.13.zip
-swig-1.3.23.tar.gz
+m2crypto-0.15.tar.bz2
diff --git a/m2crypto.spec b/m2crypto.spec
index 40576f0..b919d3b 100644
--- a/m2crypto.spec
+++ b/m2crypto.spec
@@ -1,37 +1,27 @@
 %{expand: %%define pythonver %(python -c 'import sys;print(sys.version[0:3])')}
-%define pymainver %{nil}
-%define swigver 1.3.23
 
 Summary: Support for using OpenSSL in python scripts.
 Name: m2crypto
-Version: 0.13
-Release: 5
-Source0: http://sandbox.rulemaker.net/ngps/Dist/m2crypto-%{version}.zip
-Source1: http://unc.dl.sourceforge.net/sourceforge/swig/swig-%{swigver}.tar.gz
-Patch0: http://sandbox.rulemaker.net/ngps/Dist/0.13p1.patch
-Patch1: m2crypto-0.13-python24.patch
-Patch2: m2crypto-0.13-SSLServer.patch
+Version: 0.15
+Release: 1
+# http://svn.osafoundation.org/m2crypto/tags/0.15
+Source0: m2crypto-%{version}.tar.bz2
+Patch0: m2crypto-0.13-SSLServer.patch
 License: BSDish
 Group: System Environment/Libraries
 URL: http://sandbox.rulemaker.net/ngps/m2
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildPreReq: openssl-devel, python%{pymainver}-devel >= %{pythonver}
-BuildPreReq: perl, pkgconfig, unzip
-Requires: python%{pymainver}
+BuildRequires: openssl-devel, python-devel >= %{pythonver}
+BuildRequires: perl, pkgconfig, unzip
+Requires: python
 Obsoletes: openssl-python
 
 %description
 This package allows you to call OpenSSL functions from python scripts.
 
 %prep
-%setup -q -a 1
-
-# Create a directory to hold the local SWIG binary.
-mkdir swigroot
-
-%patch0 -p0 -b .pl1
-%patch1 -p1 -b .py24
-%patch2 -p0 -b .SSLServer
+%setup -q 
+%patch0 -p0 -b .SSLServer
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
@@ -40,24 +30,6 @@ if pkg-config openssl ; then
 	LDFLAGS="$LDFLAGS`pkg-config --libs-only-L openssl`" ; export LDFLAGS
 fi
 
-swigroot=`pwd`/swigroot
-pushd SWIG-%{swigver}
-./configure \
-	--prefix=${swigroot} \
-	--disable-shared \
-	--enable-static \
-	--without-guile \
-	--without-java \
-	--without-ocaml \
-	--without-perl5 \
-	--without-php4 \
-	--without-pike \
-	--without-tcl
-make
-make install
-popd
-
-PATH=${swigroot}/bin${PATH:+:${PATH}} ; export PATH
 python%{pythonver} setup.py build
 
 %install
@@ -76,10 +48,14 @@ python%{pythonver} setup.py install --root=$RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%doc BUGS CHANGES LIC* README README.Developers demo tests
+%doc BUGS CHANGES LIC* README README.Developers demo demo2004 tests
 %{_libdir}/python%{pythonver}/site-packages/M2Crypto
 
 %changelog
+* Mon Aug 29 2005 Miloslav Trmac <mitr at redhat.com> - 0.15-1
+- Update to m2crypto-0.15
+- Drop bundled swig
+
 * Tue Jun 14 2005 Miloslav Trmac <mitr at redhat.com> - 0.13-5
 - Better fix for #159898, by Dan Williams
 
diff --git a/sources b/sources
index 2b8a64d..7312f16 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-be2790a34349ab452dddbcfe4c95606a  m2crypto-0.13.zip
-3f12460b7d0cbb96ea7bf66f86fcea5b  swig-1.3.23.tar.gz
+befaf54d86eaf13f7591d630f28a10ee  m2crypto-0.15.tar.bz2


More information about the scm-commits mailing list