%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global module pyasn1 %global modules_version 0.0.2 Name: python-pyasn1 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 %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 -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 rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %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 - 0.1.2-1 - New upstream version * Tue Feb 08 2011 Fedora Release Engineering - 0.0.12a-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Rob Crittenden - 0.0.12a-1 - Update to upstream version 0.0.12a * Thu Jul 22 2010 David Malcolm - 0.0.9a-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Nov 16 2009 Rob Crittenden - 0.0.9a-1 - Update to upstream version 0.0.9a - Include patch that adds parsing for the Any type * Wed Sep 2 2009 Rob Crittenden - 0.0.8a-5 - Include doc/notes.html in the package * Sun Jul 26 2009 Fedora Release Engineering - 0.0.8a-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.0.8a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.0.8a-2 - Rebuild for Python 2.6 * Tue Sep 9 2008 Paul P. Komkoff Jr - 0.0.8a-1 - Update to upstream version 0.0.8a * Wed Jan 16 2008 Rob Crittenden - 0.0.7a-4 - Use setuptools to install the package - simplify the files included in the rpm so it includes the .egg-info * Mon Jan 14 2008 Rob Crittenden - 0.0.7a-3 - Rename to python-pyasn1 - Spec file cleanups * Mon Nov 19 2007 Karl MacMillan - 0.0.7a-2 - Update rpm to be more fedora friendly * Thu Nov 8 2007 Simo Sorce 0.0.7a-1 - New release * Mon May 28 2007 Andreas Hasenack 0.0.6a-1mdv2008.0 + Revision: 31989 - fixed (build)requires - Import pyasn1