X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=python-M2Crypto.spec;h=557e5532d33db4290baefe1d86731d377d34ae57;hb=cabacf04172dc39c244d0fe22b97ff3941798c60;hp=cce4b65a9f64d20604325c262bebcfaf86598dde;hpb=cc56e89f1d124d1a17f84ab084c92f413372bd1b;p=packages%2Fpython-M2Crypto.git diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index cce4b65..557e553 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -1,20 +1,21 @@ Summary: Python interface to OpenSSL Summary(pl.UTF-8): Interfejs Pythona do OpenSSL Name: python-M2Crypto -Version: 0.18.2 -Release: 1 +Version: 0.22.3 +Release: 2 License: BSD-like Group: Libraries/Python -Source0: http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/m2crypto-%{version}.tar.gz -# Source0-md5: 445dce53fcfc7ec8f6fd31f54da8a067 -Patch0: %{name}-swig_sources.patch -Patch1: %{name}-store2ssl.patch -Patch2: %{name}-swig.patch -URL: http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto -BuildRequires: openssl-devel >= 0.9.7d -BuildRequires: python-devel >= 1:2.5 +Source0: https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz +# Source0-md5: 573f21aaac7d5c9549798e72ffcefedd +Patch0: %{name}-store2ssl.patch +Patch1: %{name}-swig.patch +URL: http://chandlerproject.org/bin/view/Projects/MeTooCrypto +BuildRequires: openssl-devel >= 0.9.8 +BuildRequires: python-devel >= 1:2.6 +BuildRequires: python-modules +BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 -BuildRequires: swig-python >= 1.3.24 +BuildRequires: swig-python >= 2.0 BuildRequires: unzip %pyrequires_eq python BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -35,40 +36,32 @@ M2Crypto udostępnia z poziomu Pythona następujące funkcje: - S/MIME v2. %prep -%setup -q -n m2crypto-%{version} +%setup -q -n M2Crypto-%{version} %patch0 -p1 %patch1 -p1 -%patch2 -p1 - -find demo -type d -name CVS | xargs rm -rf %build -python setup.py build +%{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}} -python setup.py install \ +%{__python} setup.py install \ --root=$RPM_BUILD_ROOT \ --optimize=2 %py_postclean -cp -r demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc CHANGES LICENCE README doc/*.html +%doc README %dir %{py_sitedir}/M2Crypto %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so -%{py_sitedir}/M2Crypto/*.py[oc] +%{py_sitedir}/M2Crypto/*.py[co] %dir %{py_sitedir}/M2Crypto/SSL -%{py_sitedir}/M2Crypto/SSL/*.py[oc] -%dir %{py_sitedir}/M2Crypto/PGP -%{py_sitedir}/M2Crypto/PGP/*.py[oc] +%{py_sitedir}/M2Crypto/SSL/*.py[co] %{py_sitedir}/M2Crypto-*.egg-info -%dir %{_examplesdir}/%{name}-%{version} -%{_examplesdir}/%{name}-%{version}/*