Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
armv6l
>
python-M2Crypto
> _service:tar_git:python-M2Crypto.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:python-M2Crypto.spec of Package python-M2Crypto
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.25 # Name: python-M2Crypto # >> macros # << macros %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: Crypto and SSL toolkit for Python Version: 0.21.1 Release: 1 Group: Development/Languages/Python License: X11/MIT, ZPLv2, BSD3c URL: http://chandlerproject.org/bin/view/Projects/MeTooCrypto Source0: M2Crypto-%{version}.tar.gz Source100: python-M2Crypto.yaml BuildRequires: pkgconfig(openssl) BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: swig BuildRequires: openssl BuildRequires: fdupes Provides: python-m2crypto = %{version} Provides: m2crypto = %{version} Obsoletes: python-m2crypto <= %{version} Obsoletes: m2crypto <= %{version} %description M2Crypto is a crypto and SSL toolkit for Python featuring the following: RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES). SSL functionality to implement clients and servers. HTTPS extensions to Python's httplib, urllib, and xmlrpclib. Unforgeable HMAC'ing AuthCookies for web session management. FTP/TLS client and server. S/MIME. ZServerSSL: A HTTPS server for Zope. ZSmime: An S/MIME messenger for Zope. It currently lives at http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto. The original M2Crypto homepage is at http://sandbox.rulemaker.net/ngps/m2/. %prep %setup -q -n M2Crypto-%{version} # >> setup # << setup %build # >> build pre # -cpperraswarn is necessary for including opensslconf-${basearch} directly SWIG_FEATURES=-cpperraswarn python setup.py build # << build pre CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build # >> build post # << build post %install rm -rf %{buildroot} # >> install pre sed -i 's|\r||g' tests/thawte.pem # Fix wrong EOL # Fix executable bit for documentation: chmod 0644 demo/{https.howto/get_https,ssl/twistedsslclient,ssl/twistedsslserver,tinderbox/slave,x509/certdata2pem}.py tests/test_bn.py demo/Zope/starts.bat # << install pre %{__python} setup.py install --root=%{buildroot} -O1 # >> install post # << install post %files %defattr(-,root,root,-) # >> files %doc CHANGES LICENCE README demo tests %{python_sitearch}/* # << files