source: TI12-security/branches/Dependencies/m2crypto/contrib/m2crypto.spec @ 2172

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/branches/Dependencies/m2crypto/contrib/m2crypto.spec@2237
Revision 2172, 1.4 KB checked in by pjkersha, 13 years ago (diff)
Line 
1%define name    m2crypto
2%define version 0.06
3%define snap    snap5
4%define release %{snap}.1
5%define prefix  %{_prefix}
6
7Summary:      Python crypto library
8Name:         %{name}
9Version:      %{version}
10Release:      %{release}
11Copyright:    tummy.com, ltd.
12Group:        Applications/Crypto
13Source:       %{name}-%{version}-%{snap}.zip
14Packager:     Sean Reifschneider <jafo-rpms@tummy.com>
15BuildRoot:    /var/tmp/%{name}-root
16Requires:     openssl >= 0.9.6a
17Patch0:       m2crypto-makefile.patch
18BuildPrereq:  openssl-devel >= 0.9.6a
19BuildPrereq:  swig >= 1.1p5
20
21%description
22M2Crypto makes available to the Python programmer the following:
23
24   RSA, DH, DSA, HMACs, message digests, symmetric ciphers.
25   SSL functionality to implement clients and servers.
26   HTTPS extensions to Python's httplib, urllib, and the eff-bot's xmlrpclib.
27   S/MIME v2.
28
29%prep
30%setup -n %{name}-%{version}-%{snap}
31%patch0 -p1
32%build
33( cd swig; make -f Makefile.py1 )
34
35%install
36[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
37mkdir -p "$RPM_BUILD_ROOT"/usr/lib/python1.5/site-packages
38cp -a M2Crypto "$RPM_BUILD_ROOT"/usr/lib/python1.5/site-packages
39
40%clean
41[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
42
43%files
44%defattr(755,root,root)
45%doc BUGS CHANGES INSTALL LICENCE README STORIES doc demo tests patches
46/usr/lib/python1.5/site-packages
Note: See TracBrowser for help on using the repository browser.