From 3f76b2be7f805d2b100bb9dfedf1cdf71686cafa Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Sep 13 2021 19:53:02 +0000 Subject: Reduce macro indirection in the spec file --- diff --git a/python-sure.spec b/python-sure.spec index 7b9646f..1755e94 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -1,16 +1,14 @@ -%global srcname sure - -Name: python-%{srcname} +Name: python-sure Version: 2.0.0 Release: %autorelease Summary: Idiomatic assertion toolkit with human-friendly failure messages License: GPLv3+ -URL: https://github.com/gabrielfalcao/%{srcname} -Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz +URL: https://github.com/gabrielfalcao/sure +Source0: %{url}/archive/%{version}/sure-%{version}.tar.gz # Trivial downstream man page for (nearly pointless) executable -Source1: %{srcname}.1 +Source1: sure.1 # Python 3.10 workaround # In test_context_is_not_optional(), only check the exception type @@ -52,10 +50,10 @@ after RSpec Expectations and should.js.} %description %{common_description} -%package -n python3-%{srcname} +%package -n python3-sure Summary: %{summary} -%description -n python3-%{srcname} %{common_description} +%description -n python3-sure %{common_description} %package doc @@ -67,7 +65,7 @@ Requires: python3-docs %prep -%autosetup -p1 -n %{srcname}-%{version} +%autosetup -p1 -n sure-%{version} # Use local inventories in intersphinx mappings. # @@ -94,18 +92,18 @@ rm -vf docs/_build/html/.buildinfo %install %pyproject_install -%pyproject_save_files %{srcname} +%pyproject_save_files sure -install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 %{srcname}.1 +install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 sure.1 %check %pytest -%files -n python3-%{srcname} -f %{pyproject_files} -%{_bindir}/%{srcname} -%{_mandir}/man1/%{srcname}.1* +%files -n python3-sure -f %{pyproject_files} +%{_bindir}/sure +%{_mandir}/man1/sure.1* %files doc