Reduce macro indirection in the spec file
This commit is contained in:
parent
000eb4134e
commit
3f76b2be7f
@ -1,16 +1,14 @@
|
|||||||
%global srcname sure
|
Name: python-sure
|
||||||
|
|
||||||
Name: python-%{srcname}
|
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Idiomatic assertion toolkit with human-friendly failure messages
|
Summary: Idiomatic assertion toolkit with human-friendly failure messages
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/gabrielfalcao/%{srcname}
|
URL: https://github.com/gabrielfalcao/sure
|
||||||
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/sure-%{version}.tar.gz
|
||||||
|
|
||||||
# Trivial downstream man page for (nearly pointless) executable
|
# Trivial downstream man page for (nearly pointless) executable
|
||||||
Source1: %{srcname}.1
|
Source1: sure.1
|
||||||
|
|
||||||
# Python 3.10 workaround
|
# Python 3.10 workaround
|
||||||
# In test_context_is_not_optional(), only check the exception type
|
# In test_context_is_not_optional(), only check the exception type
|
||||||
@ -52,10 +50,10 @@ after RSpec Expectations and should.js.}
|
|||||||
%description %{common_description}
|
%description %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-sure
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python3-%{srcname} %{common_description}
|
%description -n python3-sure %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
@ -67,7 +65,7 @@ Requires: python3-docs
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{srcname}-%{version}
|
%autosetup -p1 -n sure-%{version}
|
||||||
|
|
||||||
# Use local inventories in intersphinx mappings.
|
# Use local inventories in intersphinx mappings.
|
||||||
#
|
#
|
||||||
@ -94,18 +92,18 @@ rm -vf docs/_build/html/.buildinfo
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_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
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
%files -n python3-sure -f %{pyproject_files}
|
||||||
%{_bindir}/%{srcname}
|
%{_bindir}/sure
|
||||||
%{_mandir}/man1/%{srcname}.1*
|
%{_mandir}/man1/sure.1*
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
|
Loading…
Reference in New Issue
Block a user