1 |
|
%global scl python27 |
2 |
|
%scl_package %scl |
3 |
|
# Defaults for the values for the python27 Software Collection. These |
4 |
|
# will be used when python27-scldevel is not in the buildroot |
5 |
|
%{!?scl_python:%global scl_python python27} |
6 |
|
%{!?scl_prefix_python:%global scl_prefix_python %{scl_python}-} |
7 |
|
|
8 |
|
%{?scl:%scl_package python-versiontools} |
9 |
|
%{!?scl:%global pkg_name %{name}} |
10 |
|
|
11 |
%global pypi_name versiontools |
%global pypi_name versiontools |
12 |
|
|
13 |
Name: python-versiontools |
%define version 1.9.1 |
14 |
Version: 1.9.1 |
%define release 4 |
15 |
Release: 3%{?dist} |
Name: %{?scl_prefix}python-versiontools |
16 |
|
Version: %{version} |
17 |
|
Release: %{release}%{?dist} |
18 |
Summary: Smart replacement for plain tuple used in __version__ |
Summary: Smart replacement for plain tuple used in __version__ |
19 |
|
|
20 |
License: LGPLv3 |
License: LGPLv3 |
21 |
URL: https://launchpad.net/versiontools |
URL: https://launchpad.net/versiontools |
22 |
Source0: http://pypi.python.org/packages/source/v/versiontools/versiontools-1.9.1.tar.gz |
Source0: http://pypi.python.org/packages/source/v/versiontools/versiontools-1.9.1.tar.gz |
23 |
|
|
24 |
BuildArch: noarch |
BuildArch: x86_64 |
25 |
BuildRequires: python-devel |
#SCL |
26 |
BuildRequires: python-setuptools |
BuildRequires: scl-utils-build |
27 |
|
BuildRequires: %{scl_prefix}scldevel |
28 |
|
BuildRequires: %{scl_prefix}build |
29 |
|
BuildRequires: %{scl_prefix}python-devel |
30 |
|
BuildRequires: %{scl_prefix}python-setuptools |
31 |
BuildRequires: python-sphinx |
BuildRequires: python-sphinx |
32 |
BuildRequires: python-nose |
BuildRequires: %{scl_prefix}python-nose |
33 |
|
%{?scl:BuildRequires: %{scl}-build %{scl}-runtime} |
34 |
|
%{?scl:Requires: %{scl}-runtime} |
35 |
|
|
36 |
|
|
37 |
%description |
%description |
38 |
Smart replacement for plain tuple used in __version__ |
Smart replacement for plain tuple used in __version__ |
48 |
|
|
49 |
|
|
50 |
%build |
%build |
51 |
|
%{?scl:scl enable %{scl} - << \EOF} |
52 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
53 |
|
|
54 |
%{__python} setup.py build |
%{__python} setup.py build |
55 |
|
%{?scl:EOF} |
56 |
|
|
57 |
|
|
58 |
%install |
%install |
59 |
|
%scl_install |
60 |
|
%{?scl:scl enable %{scl} - << \EOF} |
61 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
62 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
63 |
|
%{?scl:EOF} |
64 |
|
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
65 |
|
rm -rf %{buildroot}/etc/rpm/macros.python27-config |
66 |
|
rm -rf %{buildroot}/etc/scl/prefixes/python27 |
67 |
|
rm -rf %{buildroot}/opt/rh/python27/root/usr/tmp |
68 |
|
rm -rf %{buildroot}/opt/rh/python27/root/var/mail |
69 |
|
|
70 |
|
|
71 |
%check |
%check |
72 |
|
%{?scl:scl enable %{scl} - << \EOF} |
73 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
74 |
%{__python} setup.py nosetests |
%{__python} setup.py nosetests |
75 |
|
%{?scl:EOF} |
76 |
|
|
77 |
%files |
%files |
78 |
%doc html |
%doc html |
81 |
|
|
82 |
|
|
83 |
%changelog |
%changelog |
84 |
|
* Sat Mar 24 2018 Jean-Philipe Pialasse <tests@pialasse.com> - 1.9.1-4.sme |
85 |
|
- x64 for python27 scl |
86 |
|
|
87 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-3 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-3 |
88 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
89 |
|
|