From 9042b6e26b5a6e1f64a0d10ebcd378d2008bb4ce Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Dec 27 2021 05:03:26 +0000 Subject: Switch to latest Python macros --- diff --git a/python-openpaperwork-core.spec b/python-openpaperwork-core.spec index 3a395bb..c19e1e1 100644 --- a/python-openpaperwork-core.spec +++ b/python-openpaperwork-core.spec @@ -12,7 +12,6 @@ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) %description Paperwork is a GUI to make papers searchable. @@ -31,24 +30,24 @@ This is the core part of Paperwork. It manages plugins. %prep %autosetup -n %{srcname}-%{version} -# Remove bundled egg-info -rm -rf %{srcname}.egg-info + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files openpaperwork_core %check PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{python3} -m unittest discover --verbose -s tests -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %license LICENSE -%{python3_sitelib}/openpaperwork_core/ -%{python3_sitelib}/openpaperwork_core-%{version}-py%{python3_version}.egg-info/ %changelog %autochangelog