File python-RPi.GPIO.spec of Package python-RPi.GPIO

# spec file for package python-pyRFC3339
# Copyright (c) 2016 Malcolm J Lewis <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%{?!python_module:%define python_module() python-%1 python3-%1}
%define         orig_name RPi.GPIO

Name:           python-RPi.GPIO
Version:        0.7.0
Release:        0
Summary:        A module to control Raspberry Pi GPIO channels
License:        MIT
Group:          Development/Languages/Python
Source0:        %{orig_name}-%{version}.tar.gz
Patch0:         python-RPI.GPIO-message.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


This package provides a class to control the GPIO on a Raspberry Pi.

NOTE: This module is unsuitable for real-time or timing critical applications.

%setup -q -n %{orig_name}-%{version}
%patch0 -p1


%python_install -O1 --skip-build

%files %{python_files}