diff --git a/python-PyGithub.spec b/python-PyGithub.spec index 13c72f1..8378af4 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -2,14 +2,12 @@ %global srcname PyGithub # what it's imported as %global libname github -# name of egg info directory -%global eggname %{srcname} # package name fragment %global pkgname pygithub Name: python-%{srcname} Version: 1.53 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python library to work with the Github API License: LGPLv3+ URL: https://github.com/PyGithub/PyGithub @@ -24,9 +22,8 @@ A Python library implementing the full Github API v3. %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} +BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros -# Tests -BuildRequires: python%{python3_pkgversion}-tox-current-env Provides: python%{python3_pkgversion}-github = %{version}-%{release} Obsoletes: python%{python3_pkgversion}-github < 1.25.2-2 @@ -38,29 +35,30 @@ Obsoletes: python%{python3_pkgversion}-PyGithub < 1.29-8 %prep %autosetup -p 1 -n %{srcname}-%{version} -rm -rf %{eggname}.egg-info # https://src.fedoraproject.org/rpms/pyproject-rpm-macros %generate_buildrequires %pyproject_buildrequires -t %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{libname} %check %tox -%files -n python%{python3_pkgversion}-%{pkgname} +%files -n python%{python3_pkgversion}-%{pkgname} -f %{pyproject_files} %license COPYING COPYING.LESSER %doc README.md -%{python3_sitelib}/%{libname} %exclude %{python3_sitelib}/%{libname}/tests -%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info %changelog +* Mon Aug 24 2020 Miro HronĨok - 1.53-2 +- Convert completely to pyproject-rpm-macros + * Tue Aug 18 2020 Jiri Popelka - 1.53-1 - 1.53