[pystatgrab] * Mon Sep 16 2013 Fabian Affolter <mail at fabian-affolter.ch> - 0.5-13 - Spec file update - Rebuild ag

Fabian Affolter fab at fedoraproject.org
Mon Sep 16 21:39:27 UTC 2013


commit e87440f72a7664d87f089a38255cdb5f03ad3e3e
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date:   Mon Sep 16 23:39:12 2013 +0200

    * Mon Sep 16 2013 Fabian Affolter <mail at fabian-affolter.ch> - 0.5-13
    - Spec file update
    - Rebuild against libstatgrab 0.90

 pystatgrab.spec |   47 +++++++++++++++++++----------------------------
 1 files changed, 19 insertions(+), 28 deletions(-)
---
diff --git a/pystatgrab.spec b/pystatgrab.spec
index c9f459f..e0d3466 100644
--- a/pystatgrab.spec
+++ b/pystatgrab.spec
@@ -1,46 +1,38 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Name:		    pystatgrab
+Version:	    0.5
+Release:	    13%{?dist}
+Summary:	    Python bindings for libstatgrab
 
-Summary:	Python bindings for libstatgrab
-Name:		pystatgrab
-Version:	0.5
-Release:	12%{?dist}
-License:	GPLv2+
-Group:		Development/Libraries
-URL:		http://www.i-scream.org/pystatgrab/
-Source0:	ftp://ftp.i-scream.org/pub/i-scream/pystatgrab/%{name}-%{version}.tar.gz
+License:	    GPLv2+
+URL:		    http://www.i-scream.org/pystatgrab/
+Source0:	    ftp://ftp.i-scream.org/pub/i-scream/pystatgrab/%{name}-%{version}.tar.gz
 
-BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-BuildRequires:	python-devel, libstatgrab-devel
-
-Requires:	python
+BuildRequires:	python2-devel
+BuildRequires:  libstatgrab-devel
 
 %description
 Pystatgrab contains Python bindings for libstatgrab.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-%{__python} setup.py install --prefix %{_prefix} -O1 --skip-build \
-  --root $RPM_BUILD_ROOT
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README
-%{python_sitearch}/pystatgrab-0.5-py?.?.egg-info
-%{python_sitearch}/statgrab.py*
-%{python_sitearch}/_statgrab.so
+%{python2_sitearch}/pystatgrab-0.5-py?.?.egg-info
+%{python2_sitearch}/statgrab.py*
+%{python2_sitearch}/_statgrab.so
 
 %changelog
+* Mon Sep 16 2013 Fabian Affolter <mail at fabian-affolter.ch> - 0.5-13
+- Spec file update
+- Rebuild against libstatgrab 0.90
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -71,7 +63,6 @@ rm -rf $RPM_BUILD_ROOT
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.5-3
 - Rebuild for Python 2.6
 
-
 * Sun Sep 28 2008 Soumya Chakraborty <soumya at fedoraproject.org> 0.5-2
 - Changed from the noarch package to sitearch package and changed the name from python-statgrab to pystatgrab.
 


More information about the scm-commits mailing list