[python-rpi-gpio] Initial import to Fedora.

Kushal Das kushal at fedoraproject.org
Wed Aug 29 09:15:49 UTC 2012


commit c5dc24aeac1ca8a2e2bda80478de922045446de3
Author: Kushal Das <kushal at fedoraproject.org>
Date:   Wed Aug 29 14:45:01 2012 +0530

    Initial import to Fedora.

 .gitignore           |    1 +
 python-rpi-gpio.spec |   45 +++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..128257e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/RPi.GPIO-0.3.1a.tar.gz
diff --git a/python-rpi-gpio.spec b/python-rpi-gpio.spec
new file mode 100644
index 0000000..af31fa6
--- /dev/null
+++ b/python-rpi-gpio.spec
@@ -0,0 +1,45 @@
+%{!?python_sitearch: %global 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.3.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.3.1a.tar.gz
+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
+* Mon Jul 30 2012 Kushal Das <kushal at fedoraproject.org> 0.3.1a-1
+- Intial package
diff --git a/sources b/sources
index e69de29..619e07d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1588ebc23872ce281b846a9f01d389af  RPi.GPIO-0.3.1a.tar.gz


More information about the scm-commits mailing list