--- rpms/python-versiontools/contribs9/python-versiontools.spec 2018/03/25 03:05:44 1.1 +++ rpms/python-versiontools/contribs9/python-versiontools.spec 2018/03/25 04:20:33 1.3 @@ -1,19 +1,38 @@ +%global scl python27 +%scl_package %scl +# Defaults for the values for the python27 Software Collection. These +# will be used when python27-scldevel is not in the buildroot +%{!?scl_python:%global scl_python python27} +%{!?scl_prefix_python:%global scl_prefix_python %{scl_python}-} + +%{?scl:%scl_package python-versiontools} +%{!?scl:%global pkg_name %{name}} + %global pypi_name versiontools -Name: python-versiontools -Version: 1.9.1 -Release: 3%{?dist} +%define version 1.9.1 +%define release 5 +Name: %{?scl_prefix}python-versiontools +Version: %{version} +Release: %{release}%{?dist} Summary: Smart replacement for plain tuple used in __version__ License: LGPLv3 URL: https://launchpad.net/versiontools Source0: http://pypi.python.org/packages/source/v/versiontools/versiontools-1.9.1.tar.gz -BuildArch: noarch -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildArch: x86_64 +#SCL +BuildRequires: scl-utils-build +BuildRequires: %{scl_prefix}scldevel +BuildRequires: %{scl_prefix}build +BuildRequires: %{scl_prefix}python-devel +BuildRequires: %{scl_prefix}python-setuptools BuildRequires: python-sphinx -BuildRequires: python-nose +BuildRequires: %{scl_prefix}python-nose +%{?scl:BuildRequires: %{scl}-build %{scl}-runtime} +%{?scl:Requires: %{scl}-runtime} + %description Smart replacement for plain tuple used in __version__ @@ -29,16 +48,31 @@ rm -rf html/.{doctrees,buildinfo} %build +%{?scl:scl enable %{scl} - << \EOF} +export PYTHON='/opt/rh/python27/root/usr/bin/python' + %{__python} setup.py build +%{?scl:EOF} %install +%scl_install +%{?scl:scl enable %{scl} - << \EOF} +export PYTHON='/opt/rh/python27/root/usr/bin/python' %{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{?scl:EOF} +find %{buildroot} -name '*.la' -exec rm -f {} ';' +rm -rf %{buildroot}/etc/rpm/macros.python27-config +rm -rf %{buildroot}/etc/scl/prefixes/python27 +rm -rf %{buildroot}/opt/rh/python27/root/usr/tmp +rm -rf %{buildroot}/opt/rh/python27/root/var/mail %check +%{?scl:scl enable %{scl} - << \EOF} +export PYTHON='/opt/rh/python27/root/usr/bin/python' %{__python} setup.py nosetests - +%{?scl:EOF} %files %doc html @@ -47,6 +81,9 @@ rm -rf html/.{doctrees,buildinfo} %changelog +* Sat Mar 24 2018 Jean-Philipe Pialasse - 1.9.1-5.sme +- x64 for python27 scl + * Sat Jul 21 2012 Fedora Release Engineering - 1.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild