python-pyudev/python-pyudev.spec

75 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyudev
#
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-pyudev
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
Version: 0.20.0
Release: 0
Summary: Udev bindings for Python
License: LGPL-2.1+
Group: Development/Libraries/Python
Url: http://pyudev.readthedocs.org/
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
Source0: https://pypi.python.org/packages/78/6a/2fc9ed0ffbcdb480a026274ca221b959de6c549a67753ff4b3c790db0d8a/pyudev-%{version}.tar.gz
BuildRequires: libudev-devel
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
BuildRequires: libudev1
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-setuptools
# Testsuite BuildRequires:
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-py
BuildRequires: python-pytest
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
Requires: libudev1
# pyudev was last used in KDE:Unstable:Playground (pyudev-0.8)
Provides: pyudev = %{version}
Obsoletes: pyudev < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
A Python binding to libudev, the hardware management library and service found
in modern linux systems.
%prep
%setup -q -n pyudev-%{version}
# Disable intersphinx and issuetracker, we don't want to access the web during doc build:
sed -i -e "s|'sphinx.ext.intersphinx',\\?||" -e "s|'sphinxcontrib.issuetracker',\\?||" doc/conf.py
%build
python setup.py build
Accepting request 397540 from home:tbechtold:branches:devel:languages:python - update to 0.20.0: * Remove parsing code added in previous release. * No longer do CI for Python 2.6. * Eliminate all wildcard imports and __all__ statements. * No longer use deprecated Device.from_sys_path() method. * Minor pylint induced changes. * Documentation fixes. * Restore raising KeyError by Attributes.as* methods when attribute not found. * Explicitly require six module. * Never raise a DeviceNotFoundError when iterating over a device enumeration. * Device.subsystem() now returns None if device has no subsystem. * Add DeprecationWarnings to deprecated Device methods. * Replace "/" with "!" in Device.from_name() sys_name parameter. * Add some unstable classes for parsing some kinds of values. * Make version info more like Python's including micro numbers and levels. * Refactor some internal modules into subdirectories. * Work on tests and reproducers. * DeviceNotFoundError is no longer a subtype of LookupError * Added support for pyqt5 monitor observer * Added discover module, which looks up a device on limited information * Attributes class no longer extends Mapping, extends object instead * Attributes class no longer inherits [] operator, Mapping methods * Attributes class objects are no longer iterable * Attributes.available_attributes property added * Attributes.get() method, with usual semantics, defined * Device.from_* methods are deprecated, uses Devices.from_* methods instead * Device.from_device_file() now raises DeviceNotFoundByFileError * Device.from_device_number() now raises DeviceNotFoundByNumberError * Devices.from_interface_index() method added * Devices.from_kernel_device() method added OBS-URL: https://build.opensuse.org/request/show/397540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=21
2016-05-23 17:48:05 +02:00
PYTHONPATH=src/ python setup.py build_sphinx
rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#TODO: fix
#%%check
#nosetests
%files
%defattr(-,root,root,-)
%doc CHANGES.rst COPYING README.rst build/sphinx/html/
%{python_sitelib}/*
%changelog