diff --git a/python-boto3.spec b/python-boto3.spec index 1a9daca..1e1ddeb 100644 --- a/python-boto3.spec +++ b/python-boto3.spec @@ -16,6 +16,9 @@ BuildRequires: python3-devel # 185: # This feature requires awscrt>=0.19.18 BuildRequires: %{py3_dist awscrt} >= 0.19.18 +# Save space by hardlinking duplicate JSON resource files +BuildRequires: hardlink + %global _description %{expand: Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of @@ -41,6 +44,11 @@ rm -rf tests/integration %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 %check @@ -58,6 +66,7 @@ rm -rf tests/integration - Remove some obsolete spec-file boilerplate - Simplify the spec file by eliminating the %%pypi_name macro - Port to pyproject-rpm-macros +- Save space by hardlinking duplicate JSON resource files * Tue Jan 02 2024 Gwyn Ciesla - 1.34.11-1 - 1.34.11