Blob Blame Raw
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Summary:	Python bindings for libstatgrab
Name:		pystatgrab
Version:	0.5
Release:	8%{?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

BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:	python-devel, libstatgrab-devel

Requires:	python

%description
Pystatgrab contains Python bindings for libstatgrab.

%prep
%setup -q -n %{name}-%{version}

%build
%{__python} 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

%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

%changelog
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-4
- Fix locations for Python 2.6

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-3
- Rebuild for Python 2.6


* Sun Sep 28 2008 Soumya Chakraborty <soumya@fedoraproject.org> 0.5-2
- Changed from the noarch package to sitearch package and changed the name from python-statgrab to pystatgrab.

* Tue Aug 13 2008 Soumya Chakraborty <soumya@fedoraproject.org> 0.5-1
- Initial Package Release