[python-pyasn1] Check in pyasn1 version 0.1.2, including the modules from pyasn1's upstream (version 0.0.2)

Jeroen van Meeuwen kanarip at fedoraproject.org
Fri Jan 6 14:46:54 UTC 2012


commit 634d7bb9ee5aeca3303552ab1c97d18ac2454cad
Author: Jeroen van Meeuwen (Ergo Project) <jeroen.van.meeuwen at ergo-project.org>
Date:   Fri Jan 6 15:46:16 2012 +0100

    Check in pyasn1 version 0.1.2, including the modules from pyasn1's upstream (version 0.0.2)

 .gitignore         |    2 +
 pyasn1-any.patch   |  109 ----------------------------------------------------
 python-pyasn1.spec |   37 ++++++++++++++----
 sources            |    3 +-
 4 files changed, 33 insertions(+), 118 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 864e99c..476bcf1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 pyasn1-0.0.9a.tar.gz
 /pyasn1-0.0.12a.tar.gz
+/pyasn1-0.1.2.tar.gz
+/pyasn1-modules-0.0.2.tar.gz
diff --git a/python-pyasn1.spec b/python-pyasn1.spec
index aadb7b9..b031cd2 100644
--- a/python-pyasn1.spec
+++ b/python-pyasn1.spec
@@ -1,38 +1,50 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
-%define module pyasn1
+%global module pyasn1
+%global modules_version 0.0.2
 
 Name:           python-pyasn1
-Version:        0.0.12a
-Release:        2%{?dist}
+Version:        0.1.2
+Release:        1%{?dist}
 Summary:        ASN.1 tools for Python
 License:        BSD
 Group:          System Environment/Libraries
 Source0:        http://downloads.sourceforge.net/pyasn1/pyasn1-%{version}.tar.gz
+Source1:        http://downloads.sourceforge.net/pyasn1/pyasn1-modules-%{modules_version}.tar.gz
 URL:            http://pyasn1.sourceforge.net/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  python-devel python-setuptools
-Patch1:         pyasn1-any.patch
 
 %description
 This project is dedicated to implementation of ASN.1 types (concrete syntax)
 and codecs (transfer syntaxes) for Python programming environment. ASN.1
 compiler is planned for implementation in the future.
 
+%package modules
+Summary:    Modules for pyasn1
+
+
+%description modules
+ASN.1 types modules.
 
 %prep
-%setup -n %{module}-%{version} -q
-%patch1 -p1
+%setup -n %{module}-%{version} -q -b1
 
 
 %build
 %{__python} setup.py build
+pushd ../pyasn1-modules-%{modules_version}
+%{__python} setup.py build
+popd
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+pushd ../pyasn1-modules-%{modules_version}
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+popd
 
 
 %clean
@@ -41,11 +53,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc README LICENSE doc/notes.html examples/*
-%{python_sitelib}/*
+%doc README LICENSE doc/*.html
+%{python_sitelib}/%{module}
+%{python_sitelib}/%{module}-%{version}-*.egg-info/
+
+%files modules
+%defattr(-,root,root,-)
+%{python_sitelib}/%{module}_modules/
+%{python_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/
 
 
 %changelog
+* Mon Jan 02 2012 Jeroen van Meeuwen <vanmeeuwen at kolabsys.com> - 0.1.2-1
+- New upstream version
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.12a-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/sources b/sources
index a503a46..3aee379 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-ab73da1ea0acf4a510b3f67f2d5a2b6f  pyasn1-0.0.12a.tar.gz
+a7c67f5880a16a347a4d3ce445862a47  pyasn1-0.1.2.tar.gz
+adc49aee6603a162f9d4a6830c8dc470  pyasn1-modules-0.0.2.tar.gz


More information about the scm-commits mailing list