diff --git a/python-hidapi.spec b/python-hidapi.spec index 5e335b5..08a32c9 100644 --- a/python-hidapi.spec +++ b/python-hidapi.spec @@ -1,17 +1,11 @@ -%if 0%{?fedora} || 0%{?rhel} >= 8 -%bcond_without python3 %global py3_so_suffix cpython-%{python3_version_nodots}m-%{_arch}-%{_target_os}%{?_gnu} -%else # 0#{?fedora} || 0#{?rhel} >= 8 -%bcond_with python3 -%endif # 0#{?fedora} || 0#{?rhel} >= 8 - %global pypi_name hidapi %global py_setup_args --with-system-hidapi Name: python-%{pypi_name} Version: 0.7.99.post20 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Interface to the %{pypi_name} library License: GPLv3+ or BSD or Public Domain @@ -27,20 +21,6 @@ BuildRequires: libudev-devel %{summary}. -%package -n python2-%{pypi_name} -Summary: %{summary} - -BuildRequires: python2-Cython -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -%{summary}. - - -%if %{with python3} %package -n python3-%{pypi_name} Summary: %{summary} @@ -52,7 +32,6 @@ BuildRequires: python3-setuptools %description -n python3-%{pypi_name} %{summary}. -%endif # with python3 %prep @@ -63,49 +42,31 @@ BuildRequires: python3-setuptools %build -%py2_build -%if %{with python3} %py3_build -%endif # with python3 %install -%py2_install -%if %{with python3} %py3_install -%endif # with python3 %check -PYTHONPATH_TMP="${PYTHONPATH}" -export PYTHONPATH="%{buildroot}%{python2_sitearch}" -%{__python2} tests.py -%if %{with python3} export PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} tests.py -%endif # with python3 -export PYTHONPATH="${PYTHONPATH_TMP}" -unset PYTHONPATH_TMP - -%files -n python2-%{pypi_name} -%license LICENSE*.txt -%doc PKG-INFO README.rst try.py -%{python2_sitearch}/hid.so -%{python2_sitearch}/hidraw.so -%{python2_sitearch}/%{pypi_name}-%{version}-py%{python2_version}.egg-info -%if %{with python3} %files -n python3-%{pypi_name} %license LICENSE*.txt %doc PKG-INFO README.rst try.py %{python3_sitearch}/hid.%{py3_so_suffix}.so %{python3_sitearch}/hidraw.%{py3_so_suffix}.so %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info -%endif # with python3 %changelog +* Tue Jan 22 2019 Miro HronĨok - 0.7.99.post20-11 +- Subpackage python2-hidapi has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 0.7.99.post20-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild