commit cd44c3cd4aed7622d092690c667a292b57873fe1 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:15:26 2019 -0400 Package init diff --git a/python-pyudev.spec b/python-pyudev.spec new file mode 100644 index 0000000..f02f530 --- /dev/null +++ b/python-pyudev.spec @@ -0,0 +1,73 @@ +%global srcname pyudev +Name: python-%{srcname} +Version: 0.21.0 +Release: 10 +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 + +%global _description\ +This package supports almost all libudev functionality.The lisence\ +is LGPL.It is a python 2/3 binding to libudev which is a linux\ +library supporting device management.The usage of pyudev is simple\ +and you can use it after a quick learning. + +%description %_description + +%package -n python2-%{srcname} +Summary: %summary +BuildRequires: python2-devel python2-setuptools +Requires: glibc systemd python2-six +Provides: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx +Obsoletes: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx +%description -n python2-%{srcname} %_description +%{?python_provide:%python_provide python2-%{srcname}} + +%package -n python3-%{srcname} +Summary: A libudev binding +BuildRequires: python3-devel python3-setuptools +Requires: systemd python3-six +Provides: python3-%{srcname}-qt4 python3-%{srcname}-qt5 +Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5 +%description -n python3-%{srcname} %_description +%{?python_provide:%python_provide python3-%{srcname}} + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf pyudev.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-%{srcname} +%license COPYING +%doc README.rst CHANGES.rst +%{python2_sitelib}/pyudev/ +%{python2_sitelib}/pyudev-%{version}-*.egg-info + +%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/pyside.py +%exclude %{python3_sitelib}/pyudev/__pycache__/pyside.* +%exclude %{python3_sitelib}/pyudev/wx.py +%exclude %{python3_sitelib}/pyudev/__pycache__/wx.* + + +%changelog +* Fri Sep 27 2019 openEuler Buildteam - 0.21.0-10 +- modify requires + +* Sat Sep 21 2019 yangfeiyu - 0.21.0-9 +- spec init diff --git a/pyudev-0.21.0.tar.gz b/pyudev-0.21.0.tar.gz new file mode 100644 index 0000000..f2fb01a Binary files /dev/null and b/pyudev-0.21.0.tar.gz differ