]> git.pld-linux.org Git - packages/python-M2Crypto.git/commitdiff
- new from scratch
authormis <mis@pld-linux.org>
Wed, 5 Sep 2001 14:20:04 +0000 (14:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-M2Crypto.spec -> 1.1

python-M2Crypto.spec [new file with mode: 0644]

diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec
new file mode 100644 (file)
index 0000000..3628146
--- /dev/null
@@ -0,0 +1,56 @@
+Summary:       A SOAP library for Python
+Name:          python-M2Crypto
+Version:       0.06
+Release:       1
+License:       BSD-style
+Source0:       http://www.pobox.org.sg/home/ngps/m2/m2crypto-%{version}.zip
+URL:           http://www.pobox.org.sg/home/ngps/m2/
+Group:         Development/Languages/Python
+Group(de):     Entwicklung/Sprachen/Python
+Group(pl):     Programowanie/Jêzyki/Python
+Requires:      python >= 1.5.2
+BuildRequires: python-devel >= 1.5.2
+BuildRequires: swig 
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define python_prefix      %(echo `python -c "import sys; print sys.prefix"`)
+%define python_version     %(echo `python -c "import sys; print sys.version[:3]"`)
+%define python_includedir  %{_includedir}/python%{python_version}
+%define python_libdir      %{python_prefix}/lib/python%{python_version}
+%define python_sitedir     %{python_libdir}/site-packages
+%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
+%define python_compile     python -c "import compileall; compileall.compile_dir('.')"
+
+%description
+M2Crypto makes accessible to the Python programmer the following:
+- DH, RSA, DSA, symmetric ciphers, message digests, HMACs.
+- SSL functionality to implement clients and servers.
+- S/MIME v2.
+
+M2Crypto is released under a very liberal BSD-style licence. See 
+LICENCE for details.
+
+%prep
+%setup -q -n m2crypto-%{version}
+
+%build
+make -C swig INCLUDE="-I. -I%{python_includedir}"
+cd M2Crypto
+%{python_compile}
+%{python_compile_opt}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{python_sitedir}
+find M2Crypto -name \*.py | xargs -r rm -f
+cp -a M2Crypto $RPM_BUILD_ROOT%{python_sitedir}
+
+gzip -9nf BUGS CHANGES INSTALL LICENCE README STORIES
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.gz doc/*.html demo 
+%{python_sitedir}/M2Crypto
This page took 0.04567 seconds and 4 git commands to generate.