| |
@@ -10,7 +10,6 @@
|
| |
BuildRequires: gcc
|
| |
BuildRequires: kernel-headers
|
| |
BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
|
| |
|
| |
%global _description \
|
| |
@@ -33,7 +32,6 @@
|
| |
|
| |
%package -n python3-evdev
|
| |
Summary: %{summary}
|
| |
- %{?python_provide:%python_provide python3-evdev}
|
| |
%description -n python3-evdev %{_description}
|
| |
|
| |
|
| |
@@ -42,19 +40,23 @@
|
| |
%autosetup
|
| |
|
| |
#------------------------------------------------------------------------------
|
| |
+
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires
|
| |
+
|
| |
+ #------------------------------------------------------------------------------
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
|
| |
#------------------------------------------------------------------------------
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files evdev
|
| |
|
| |
#------------------------------------------------------------------------------
|
| |
- %files -n python3-evdev
|
| |
+ %files -n python3-evdev -f %{pyproject_files}
|
| |
%license LICENSE
|
| |
%doc README.rst
|
| |
- %{python3_sitearch}/evdev/
|
| |
- %{python3_sitearch}/evdev-%{version}-py%{python3_version}.egg-info/
|
| |
|
| |
|
| |
#------------------------------------------------------------------------------
|
| |
Just bringing python-evdev up to speed with Fedora's newest python packaging practices. I tested and it builds just fine.
The "provide" line was unnecessary as, in the end, the build process does pick it up.