From c55efa48d2df3970617bc6c5017de14c5ab31daa Mon Sep 17 00:00:00 2001 From: Carl George Date: Feb 10 2022 02:00:18 +0000 Subject: Convert to pyproject macros --- diff --git a/python-gitdb.spec b/python-gitdb.spec index 5379c4b..5841a56 100644 --- a/python-gitdb.spec +++ b/python-gitdb.spec @@ -1,59 +1,57 @@ -%global modname gitdb +%global srcname gitdb -Name: python-%{modname} +Name: python-%{srcname} Version: 4.0.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Git Object Database License: BSD URL: https://github.com/gitpython-developers/gitdb -Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz +Source0: %pypi_source BuildArch: noarch BuildRequires: git-core -%global _description \ -GitDB allows you to access bare git repositories for reading and writing.\ -It aims at allowing full access to loose objects as well as packs with\ -performance and scalability in mind. It operates exclusively on streams,\ -allowing to handle large objects with a small memory footprint. +%global _description %{expand: +GitDB allows you to access bare git repositories for reading and writing. +It aims at allowing full access to loose objects as well as packs with +performance and scalability in mind. It operates exclusively on streams, +allowing to handle large objects with a small memory footprint.} %description %{_description} -%package -n python3-%{modname} +%package -n python3-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pytest -BuildRequires: python3-smmap >= 3.0.1 -Requires: python3-smmap >= 3.0.1 +BuildRequires: %{py3_dist pytest} -%description -n python3-%{modname} %{_description} - -Python 3 version. +%description -n python3-%{srcname} %{_description} %prep -%autosetup -n %{modname}-%{version} -Sgit +%autosetup -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{srcname} %check # Skipped "test_pack_writing": https://github.com/gitpython-developers/smmap/issues/34 %{__python3} -m pytest -v --exclude=test_pack_writing -%files -n python3-%{modname} -%license LICENSE +%files -n python3-%{srcname} -f %{pyproject_files} %doc AUTHORS -%{python3_sitelib}/%{modname}-*.egg-info/ -%{python3_sitelib}/%{modname}/ %changelog +* Thu Feb 10 2022 Carl George - 4.0.9-2 +- Convert to pyproject macros + * Wed Feb 09 2022 Joel Capitao - 4.0.9-1 - New upstream release 4.0.9 (#1943332) diff --git a/sources b/sources index 29f762f..537a4b1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gitdb-4.0.9.tar.gz) = 372b2d090c7f6660dff3ebed8d802404b6de38bb0935e7eebeed7754223ede94e5b907ad0d2f51d6c7aea2b0feb0011f3fa812daca6910d7b384b50a9741c835 +SHA512 (gitdb-4.0.9.tar.gz) = 174b90e09b65ba38d3404fd79a8963987ab49a5e2b96ce82057b519861e8312342c425ff10849c865f66e6e88c27d651d8902a6f8abea88f9f33161f44974109