%global srcname pyudev Name: python3-%{srcname} Version: 0.20.0 Release: 1%{?dist} Summary: A libudev binding License: LGPLv2+ URL: http://pypi.python.org/pypi/pyudev Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python34-devel BuildRequires: python34-setuptools # Needed for libudev, loaded through ctypes Requires: systemd-libs # Used for python2/3 compatibility Requires: python34-six %description -n python3-%{srcname} pyudev is a LGPL licensed, pure Python binding for libudev, the device and hardware management and information library for Linux. It supports almost all libudev functionality, you can enumerate devices, query device properties and attributes or monitor devices, including asynchronous monitoring with threads, or within the event loops of Qt, Glib or wxPython. The binding supports CPython 2 (2.6 or newer) and 3 (3.1 or newer), and PyPy 1.5 or newer. It is tested against udev 151 or newer, earlier versions of udev as found on dated Linux systems may work, but are not officially supported. %prep %autosetup -n %{srcname}-%{version} rm -rf pyudev.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %license COPYING %doc README.rst CHANGES.rst %{python3_sitelib}/pyudev %{python3_sitelib}/pyudev-%{version}-*.egg-info %exclude %{python3_sitelib}/pyudev/glib.py %exclude %{python3_sitelib}/pyudev/__pycache__/glib.* %exclude %{python3_sitelib}/pyudev/pyqt4.py %exclude %{python3_sitelib}/pyudev/__pycache__/pyqt4.* %exclude %{python3_sitelib}/pyudev/pyqt5.py %exclude %{python3_sitelib}/pyudev/__pycache__/pyqt5.* %exclude %{python3_sitelib}/pyudev/pyside.py %exclude %{python3_sitelib}/pyudev/__pycache__/pyside.* %exclude %{python3_sitelib}/pyudev/wx.py %exclude %{python3_sitelib}/pyudev/__pycache__/wx.* %changelog * Wed May 11 2016 mulhern - 0.20.0-1 - Initial package