/[smecontribs]/rpms/python-versiontools/contribs9/python-versiontools.spec
ViewVC logotype

Diff of /rpms/python-versiontools/contribs9/python-versiontools.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Sun Mar 25 03:05:44 2018 UTC Revision 1.2 by jpp, Sun Mar 25 04:01:58 2018 UTC
# Line 1  Line 1 
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__
# Line 29  rm -rf html/.{doctrees,buildinfo} Line 48  rm -rf html/.{doctrees,buildinfo}
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
# Line 47  rm -rf html/.{doctrees,buildinfo} Line 81  rm -rf html/.{doctrees,buildinfo}
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    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed