[python-unittest2/el6] Clean up spec. Drop definition of buildroot, python_sitelib Drop defattr, clean stage

Rahul Sundaram sundaram at fedoraproject.org
Wed Jul 13 06:18:36 UTC 2011


commit 55e6e12e1b04da939c3f508d30ee401906401834
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Wed Jul 13 11:44:47 2011 +0530

    Clean up spec. Drop definition of buildroot, python_sitelib
    Drop defattr, clean stage

 python-unittest2.spec |   23 +++++------------------
 1 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/python-unittest2.spec b/python-unittest2.spec
index 7321956..9b5f928 100644
--- a/python-unittest2.spec
+++ b/python-unittest2.spec
@@ -1,26 +1,20 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%endif
-
 %global srcname unittest2
 
 Name:           python-%{srcname}
 Version:        0.5.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Backport of new unittest features for Python 2.7 to Python 2.4+
 
 Group:          Development/Languages
 License:        BSD
 URL:            http://pypi.python.org/pypi/unittest2
 Source0:        http://pypi.python.org/packages/source/u/%{srcname}/%{srcname}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-nose
 
-
 %description
 unittest2 is a backport of the new features added to the unittest
 testing framework in Python 2.7. It is tested to run on Python 2.4 - 
@@ -38,24 +32,15 @@ standard unittest test running infrastructure. Not all of the new
 features in unittest2 will work with the standard unittest test loaders
 and runners however.
 
-
 %prep
 %setup -q -n %{srcname}-%{version}
 
-
 %build
 %{__python} setup.py build
 
-
 %install
-rm -rf %{buildroot}
 %{__python} setup.py install --skip-build --root %{buildroot}
 
-
-%clean
-rm -rf %{buildroot}
-
-
 %check
 #Failing test deactivated
 cd unittest2/test
@@ -63,9 +48,7 @@ nosetests test_new_tests.py
 #nosetests test_unittest2.py
 nosetests test_unittest2_with.py
 
-
 %files
-%defattr(-,root,root,-)
 %doc README.txt
 %{_bindir}/unit2*
 %{python_sitelib}/%{srcname}/
@@ -73,6 +56,10 @@ nosetests test_unittest2_with.py
 
 
 %changelog
+* Wed Jul 13 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 0.5.1-3
+- Clean up spec. Drop definition of buildroot, python_sitelib
+- Drop defattr, clean stage
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list