From a19a60300f40789acd2d1345ec7190ebc449f406 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jan 15 2024 16:43:52 +0000 Subject: Reduce macro indirection (stop using forge macros, etc.) [skip changelog] --- diff --git a/python-google-crc32c.spec b/python-google-crc32c.spec index f34cb2d..e23607c 100644 --- a/python-google-crc32c.spec +++ b/python-google-crc32c.spec @@ -1,20 +1,14 @@ # tests are enabled by default %bcond_without tests -# The main source is the python wrapper. -%global srcname google-crc32c -%global reponame python-crc32c -%global forgeurl https://github.com/googleapis/%{reponame} +Name: python-google-crc32c Version: 1.1.2 -%forgemeta -a - -Name: python-%{srcname} Release: %autorelease Summary: Python wrapper for CRC32C hashing algorithm License: Apache-2.0 -URL: %forgeurl0 -Source0: %forgesource +URL: https://github.com/googleapis/python-crc32c +Source0: %{url}/archive/v%{version}/python-crc32c-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: google-crc32c @@ -38,16 +32,16 @@ you will need to compile crc32c using a C toolchain.} %description %{_description} -%package -n python3-%{srcname} +%package -n python3-google-crc32c Summary: %{summary} Obsoletes: python3-azure-sdk < 5.0.1 -%description -n python3-%{srcname} %{_description} +%description -n python3-google-crc32c %{_description} -%pyproject_extras_subpkg -n python3-%{srcname} testing +%pyproject_extras_subpkg -n python3-google-crc32c testing %prep -%forgesetup +%autosetup -n python-crc32c-%{version} %generate_buildrequires @@ -69,7 +63,7 @@ Obsoletes: python3-azure-sdk < 5.0.1 %endif -%files -n python3-%{srcname} -f %{pyproject_files} +%files -n python3-google-crc32c -f %{pyproject_files} %doc README.md CHANGELOG.md