Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
python-hwdata.378
python-hwdata.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-hwdata.spec of Package python-hwdata.378
# # spec file for package python-hwdata # # Copyright (c) 2015 SUSE LINUX Products 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) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif %if (0%{?fedora} || 0%{?rhel} > 7 || 0%{?suse_version} >= 1210) %global with_python3 1 %{!?py3dir: %global py3dir %{_builddir}/py3dir} %{!?__python3: %global __python3 python3} %else %global with_python3 0 %endif Name: python-hwdata Version: 2.1.0.5 Release: 0 Summary: Python bindings to hwdata package License: GPL-2.0 Group: Development/Libraries %if ((!0%{?suse_version}) || (0%{?suse_version} >= 1120)) BuildArch: noarch %endif Url: https://fedorahosted.org/spacewalk/wiki/Projects/python-hwdata Source0: python-hwdata-git-0.fad363b.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel Requires: hwdata %if 0%{?with_python3} BuildRequires: python3-devel %endif %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 %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 -n python-hwdata-git-0.fad363b %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 %files %defattr(-,root,root,-) %doc LICENSE example.py %doc html %{python_sitelib}/* %if 0%{?with_python3} %files -n python3-hwdata %defattr(-,root,root,-) %doc LICENSE 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