orion pushed to python-gflags (f22). "Cleanup spec"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 6 18:50:27 UTC 2015


>From 43f7b2c2c0d69d10d1672b525c4bcb02fcbcbac0 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Mon, 6 Apr 2015 11:49:23 -0600
Subject: Cleanup spec


diff --git a/python-gflags.spec b/python-gflags.spec
index 2961213..759da71 100644
--- a/python-gflags.spec
+++ b/python-gflags.spec
@@ -1,5 +1,3 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
 %global upstream_name gflags
 
 Name:           python-%{upstream_name}
@@ -11,7 +9,6 @@ Group:          Development/Languages
 License:        BSD
 URL:            http://code.google.com/p/python-gflags/
 Source0:        http://python-gflags.googlecode.com/files/python-gflags-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
@@ -36,20 +33,16 @@ difference from OptParse.)
 sed -i '/^#!\/usr\/bin\/env python$/,+1 d' %{upstream_name}.py
 
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
 
 %install
-rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
 
 # Remove ext from name
 mv %{buildroot}%{_bindir}/gflags2man.py  %{buildroot}%{_bindir}/gflags2man
 
-%clean
-rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING README
 %{python_sitelib}/%{upstream_name}.py*
 %{python_sitelib}/%{upstream_name}_validators.py*
diff --git a/sources b/sources
index df9ada4..b84d85e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-f51da2027557c7247276de3f66dac12a  python-gflags-1.4.tar.gz
 467717cdcf65f11b3edd1cc99debb244  python-gflags-1.5.1.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-gflags.git/commit/?h=f22&id=43f7b2c2c0d69d10d1672b525c4bcb02fcbcbac0


More information about the scm-commits mailing list