Simplify the spec file by eliminating the %%pypi_name macro
This commit is contained in:
parent
a7c7b08ff0
commit
519f29049e
@ -1,13 +1,11 @@
|
||||
%global pypi_name boto3
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Name: python-boto3
|
||||
Version: 1.34.11
|
||||
Release: 2%{?dist}
|
||||
Summary: The AWS SDK for Python
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/boto/boto3
|
||||
Source: %{pypi_source %{pypi_name}}
|
||||
Source: %{pypi_source boto3}
|
||||
BuildArch: noarch
|
||||
|
||||
%global _description %{expand:
|
||||
@ -17,15 +15,15 @@ services like Amazon S3 and Amazon EC2.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
%package -n python3-boto3
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description -n python3-%{pypi_name} %{_description}
|
||||
%description -n python3-boto3 %{_description}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
%setup -q -n boto3-%{version}
|
||||
# Remove online tests
|
||||
rm -rf tests/integration
|
||||
|
||||
@ -35,11 +33,11 @@ rm -rf tests/integration
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%files -n python3-boto3
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/
|
||||
%{python3_sitelib}/boto3/
|
||||
%{python3_sitelib}/boto3-%{version}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Wed Jan 03 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.34.11-2
|
||||
@ -47,6 +45,7 @@ rm -rf tests/integration
|
||||
- Do not use the deprecated zero-argument form of %%pypi_source
|
||||
- Avoid repeating the description and summary in the spec file
|
||||
- Remove some obsolete spec-file boilerplate
|
||||
- Simplify the spec file by eliminating the %%pypi_name macro
|
||||
|
||||
* Tue Jan 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.34.11-1
|
||||
- 1.34.11
|
||||
|
Loading…
Reference in New Issue
Block a user