hguemar pushed to python-migrate (master). "Cleanup spec file"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Mar 31 16:45:30 UTC 2015


>From b2d0dd94269e5ff3582c04a7f89721f2bc68a60c Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar at fedoraproject.org>
Date: Tue, 31 Mar 2015 18:19:52 +0200
Subject: Cleanup spec file


diff --git a/python-migrate.spec b/python-migrate.spec
index acd3999..bf43b55 100644
--- a/python-migrate.spec
+++ b/python-migrate.spec
@@ -1,7 +1,3 @@
-%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 sqlalchemy-migrate
 
 Name: python-migrate
@@ -68,14 +64,10 @@ sed -i "s/import unittest2/import unittest as unittest2/g" \
 %endif
 
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
 
 %install
-%{__rm} -rf %{buildroot}
-%{__python} setup.py install --skip-build --root %{buildroot}
-
-%clean
-%{__rm} -rf %{buildroot}
+%{__python2} setup.py install --skip-build --root %{buildroot}
 
 %check
 # Need to set PATH for two reasons:
@@ -92,10 +84,9 @@ echo 'sqlite:///__tmp__' > test_db.cfg
 #nosetests
 
 %files
-%defattr(-,root,root,-)
 %doc README.rst doc/
 %{_bindir}/*
-%{python_sitelib}/*
+%{python2_sitelib}/*
 
 %changelog
 * Tue Mar 31 2015 Pádraig Brady <pbrady at redhat.com> - 0.9.5-1
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-migrate.git/commit/?h=master&id=b2d0dd94269e5ff3582c04a7f89721f2bc68a60c


More information about the scm-commits mailing list