SPECS: python-M2Crypto.spec - Up to 0.18.1 - Demo files moved to e...
beorn
beorn at pld-linux.org
Wed Oct 10 18:30:19 CEST 2007
Author: beorn Date: Wed Oct 10 16:30:19 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Up to 0.18.1
- Demo files moved to examplesdir
- Group: fixed
- Switched to py_postclean macro
---- Files affected:
SPECS:
python-M2Crypto.spec (1.42 -> 1.43)
---- Diffs:
================================================================
Index: SPECS/python-M2Crypto.spec
diff -u SPECS/python-M2Crypto.spec:1.42 SPECS/python-M2Crypto.spec:1.43
--- SPECS/python-M2Crypto.spec:1.42 Tue Feb 13 09:06:42 2007
+++ SPECS/python-M2Crypto.spec Wed Oct 10 18:30:13 2007
@@ -2,17 +2,19 @@
Summary: Python interface to OpenSSL
Summary(pl.UTF-8): Interfejs Pythona do OpenSSL
Name: python-M2Crypto
-Version: 0.17
+Version: 0.18.1
Release: 1
License: BSD-like
-Group: Development/Languages/Python
+Group: Libraries/Python
Source0: http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/m2crypto-%{version}.tar.gz
-# Source0-md5: c67b45c752fd5e8115cd6b14831c5a38
+# Source0-md5: 84d8c7ad824bfac4b4f144d5790dfe02
Patch0: %{name}-swig_sources.patch
Patch1: %{name}-store2ssl.patch
+Patch2: %{name}-py_ssize_t.patch
URL: http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: python-devel >= 1:2.5
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: swig-python >= 1.3.24
BuildRequires: unzip
%pyrequires_eq python
@@ -37,6 +39,7 @@
%setup -q -n m2crypto-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
find demo -type d -name CVS | xargs rm -rf
@@ -45,22 +48,21 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitedir}
+install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
python setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
-# shutup check-files
-find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py \
- -exec rm {} \;
+%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 demo
+%doc CHANGES LICENCE README doc/*.html
%dir %{py_sitedir}/M2Crypto
%attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
%{py_sitedir}/M2Crypto/*.py[oc]
@@ -69,6 +71,8 @@
%dir %{py_sitedir}/M2Crypto/PGP
%{py_sitedir}/M2Crypto/PGP/*.py[oc]
%{py_sitedir}/M2Crypto-*.egg-info
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -76,6 +80,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.43 2007/10/10 16:30:13 beorn
+- Up to 0.18.1
+- Demo files moved to examplesdir
+- Group: fixed
+- Switched to py_postclean macro
+
Revision 1.42 2007/02/13 08:06:42 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python-M2Crypto.spec?r1=1.42&r2=1.43&f=u
More information about the pld-cvs-commit
mailing list