Save space by hardlinking duplicate JSON resource files

This commit is contained in:
Benjamin A. Beasley 2023-12-24 10:23:09 -05:00
parent 1635dc8e2c
commit 476530e2a8

View File

@ -16,6 +16,9 @@ BuildRequires: python3-devel
# 185: # This feature requires awscrt>=0.19.18 # 185: # This feature requires awscrt>=0.19.18
BuildRequires: %{py3_dist awscrt} >= 0.19.18 BuildRequires: %{py3_dist awscrt} >= 0.19.18
# Save space by hardlinking duplicate JSON resource files
BuildRequires: hardlink
%global _description %{expand: %global _description %{expand:
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
Python, which allows Python developers to write software that makes use of Python, which allows Python developers to write software that makes use of
@ -41,6 +44,11 @@ rm -rf tests/integration
%install %install
%pyproject_install %pyproject_install
# This saves, as of this writing, roughly 300kB in duplicate JSON resource
# files. Note that rpmlint will complain about cross-directory hardlinks, but
# that these are not a problem because the contents of a directory owned by
# this package are guaranteed to be on a single filesystem.
hardlink -c '%{buildroot}%{python3_sitelib}/boto3'
%pyproject_save_files boto3 %pyproject_save_files boto3
%check %check
@ -58,6 +66,7 @@ rm -rf tests/integration
- Remove some obsolete spec-file boilerplate - Remove some obsolete spec-file boilerplate
- Simplify the spec file by eliminating the %%pypi_name macro - Simplify the spec file by eliminating the %%pypi_name macro
- Port to pyproject-rpm-macros - Port to pyproject-rpm-macros
- Save space by hardlinking duplicate JSON resource files
* Tue Jan 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.34.11-1 * Tue Jan 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.34.11-1
- 1.34.11 - 1.34.11