Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
python-hwdata.4854
python-hwdata.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-hwdata.spec of Package python-hwdata.4854
# # spec file for package python-hwdata # # Copyright (c) 2017 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/ # %if ! (0%{?fedora} || 0%{?rhel} > 5 || 0%{?suse_version} >= 1210) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif #%global with_python2 1 %if (0%{?fedora} || 0%{?rhel} > 6) %global with_python3 0 %else %global with_python3 0 %endif Name: python-hwdata Version: 2.3.4 Release: 1%{?dist} Summary: Python bindings to hwdata package License: GPL-2.0 Group: Development/Libraries BuildArch: noarch Url: https://github.com/xsuchy/python-hwdata # git clone https://github.com/xsuchy/python-hwdata.git # cd python-hwdata # tito build --tgz Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel Requires: hwdata %description Provide python interface to database stored in hwdata package. It allows you to get human readable description of USB and PCI devices. %if 0%{?with_python3} %package -n python3-hwdata Summary: Python bindings to hwdata package Group: Development/Languages BuildRequires: python3-devel BuildRequires: python3-pylint Requires: hwdata %description -n python3-hwdata Provide python interface to database stored in hwdata package. It allows you to get human readable description of USB and PCI devices. This is the Python 3 build of the module. %endif %prep %setup -q %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif %build %{__python} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --prefix=%{_prefix} --root=%{buildroot} popd %endif %clean rm -rf $RPM_BUILD_ROOT %check %if 0%{?with_python3} python3-pylint hwdata.py example.py %endif %files %doc LICENSE %doc README.md example.py %doc html %{python_sitelib}/* %if 0%{?with_python3} %files -n python3-hwdata %doc LICENSE %doc README.md example.py %doc html %{python3_sitelib}/* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor