%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{?filter_setup: %filter_provides_in %{python_sitearch}.*\.so$ %filter_setup } Name: python-rpi-gpio Version: 0.4.1a Release: 1%{?dist} Summary: Class to control the GPIO on a Raspberry Pi Group: Development/Libraries License: MIT URL: http://code.google.com/p/raspberry-gpio-python/ Source0: http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.4.1a.tar.gz #Updated address, patch sent to the upstream on 15/05/2012 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel python-setuptools %description Python library for GPIO access on a Raspberry Pi %prep %setup -q -n RPi.GPIO-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENCE.txt README.txt %{python_sitearch}/RPi* %changelog * Sun Oct 21 2012 Onuralp SEZER 0.4.1a-1 - Intial package