File orangepi_PC_gpio_pyH3.spec of Package orangepi_PC_gpio_pyH3

Name:           orangepi_PC_gpio_pyH3
Summary:        Python control orangepi_PC ext GPIO ALLwinner H3
Version:        0.0
Release:        0
License:        GPL-2.0+
Group:          System/Hardware
Source:         orangepi_PC_gpio_pyH3-%{version}.tar.bz2
Patch1:         warning.patch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description

%prep
%setup -q
%patch1

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%clean
%__rm -rf "%{buildroot}"

%files 
%defattr(-,root,root,-)
%doc CHANGES.txt README.md README.txt
%{python_sitearch}/*