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-%{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
|
||||
|
Loading…
Reference in New Issue
Block a user