From f61ea261d038461f6324b329ef493b419086a0c2 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Sep 08 2021 16:07:18 +0000 Subject: Reduce spec file macro indirection --- diff --git a/python-absl-py.spec b/python-absl-py.spec index bb3402d..4e33928 100644 --- a/python-absl-py.spec +++ b/python-absl-py.spec @@ -1,9 +1,4 @@ -%global modname absl -%global srcname %{modname}-py -%global reponame abseil-py -%global egginfo_name %(echo %{srcname} | tr - _) - -Name: python-%{srcname} +Name: python-absl-py Version: 0.13.0 Release: %autorelease Summary: Abseil Python Common Libraries @@ -11,8 +6,8 @@ Summary: Abseil Python Common Libraries # Overall license is ASL 2.0. Contents of absl/third_party/unittest3_backport/ # are under the Python license (derived from the Python 3 standard library). License: ASL 2.0 and Python -URL: https://github.com/abseil/%{reponame}/ -Source0: %{url}/archive/pypi-v%{version}/%{reponame}-pypi-v%{version}.tar.gz +URL: https://github.com/abseil/abseil-py/ +Source0: %{url}/archive/pypi-v%{version}/abseil-py-pypi-v%{version}.tar.gz BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros @@ -34,14 +29,14 @@ Features: %description %{common_description} -%package -n python3-%{srcname} +%package -n python3-absl-py Summary: %{summary} -%description -n python3-%{srcname} %{common_description} +%description -n python3-absl-py %{common_description} %prep -%autosetup -n %{reponame}-pypi-v%{version} -p1 +%autosetup -n abseil-py-pypi-v%{version} -p1 cp -p absl/third_party/unittest3_backport/LICENSE LICENSE-PYTHON # Despite the third_party/ prefix, absl/third_party/unittest3_backport/ is not @@ -64,7 +59,7 @@ cp -p absl/third_party/unittest3_backport/LICENSE LICENSE-PYTHON %install %pyproject_install -%pyproject_save_files %{modname} +%pyproject_save_files absl %check @@ -82,7 +77,7 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib}; export PYTHONPATH # environment, so it is useless to do so. -%files -n python3-%{srcname} -f %{pyproject_files} +%files -n python3-absl-py -f %{pyproject_files} %license LICENSE %license LICENSE-PYTHON %doc AUTHORS