From 9b116a8c67293d419cbbc408e6360036df719fac Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Oct 03 2014 08:44:26 +0000 Subject: * Fri Oct 03 2014 Fabian Affolter - 1.2-6 - Update to match guidelines --- diff --git a/python-apipkg.spec b/python-apipkg.spec index 4f41e5f..4078458 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -9,9 +9,8 @@ Name: python-%{srcname} Version: 1.2 Release: 5%{?dist} -Summary: Python namespace control and lazy-import mechanism +Summary: A Python namespace control and lazy-import mechanism -Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/apipkg Source0: http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.zip @@ -34,8 +33,7 @@ custom importers (PEP302) and common command line completion tools. %if 0%{?with_python3} %package -n python3-%{srcname} -Summary: Python namespace control and lazy-import mechanism -Group: Development/Languages +Summary: A Python namespace control and lazy-import mechanism %description -n python3-%{srcname} With apipkg you can control the exported namespace of a python package and @@ -45,10 +43,10 @@ Python3.1, Jython and PyPy. It co-operates well with Python's help() system, custom importers (PEP302) and common command line completion tools. %endif - %prep %setup -q -n %{srcname}-%{version} rm -rf %{srcname}.egg-info +find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|' %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} @@ -56,24 +54,24 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %endif %build +%{__python2} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif -%{__python} setup.py build %install -%{__python} setup.py install --skip-build --root %{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} popd %endif +%{__python2} setup.py install --skip-build --root %{buildroot} %files %doc CHANGELOG README.txt -%{python_sitelib}/* +%{python2_sitelib}/* %if 0%{?with_python3} %files -n python3-%{srcname} @@ -82,6 +80,9 @@ popd %endif %changelog +* Fri Oct 03 2014 Fabian Affolter - 1.2-6 +- Update to match guidelines + * Sat Jun 07 2014 Fedora Release Engineering - 1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild @@ -95,9 +96,9 @@ popd - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Nov 10 2012 Fabian Affolter - 1.2-1 -- Updated to match new guidlines +- Update to match new guidelines - Python3 -- Updated to new upstream version 1.2 +- Update to new upstream version 1.2 * Sat Jul 21 2012 Fedora Release Engineering - 1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild