diff --git a/python-limnoria.changes b/python-limnoria.changes index f95b9a0..80b0960 100644 --- a/python-limnoria.changes +++ b/python-limnoria.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jan 2 15:40:59 UTC 2025 - Atri Bhattacharya + +- Fix dist-info versioning by exporting the correct + SOURCE_DATE_EPOCH before building. +- Revert changes from previous commit in lieu of current, better + fix. + ------------------------------------------------------------------- Thu Jan 2 13:25:56 UTC 2025 - Atri Bhattacharya diff --git a/python-limnoria.spec b/python-limnoria.spec index 836bcf8..94b33ca 100644 --- a/python-limnoria.spec +++ b/python-limnoria.spec @@ -1,7 +1,7 @@ # # spec file for package python-limnoria # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -# dist-info version is different from tarball version (often for this package) -%define distinfo_version 2024.12.10 Name: python-limnoria Version: 2024.10.19 Release: 0 @@ -77,6 +75,8 @@ sed -i "1,4{/\/usr\/bin\/env/d}" plugins/SedRegex/constants.py sed -Ei "1{\@^#!/usr/bin/env python3@d}" src/scripts/limnoria_*.py %build +# Get SOURCE_DATE_EPOCH corresponding to pyproject.toml in sources +export SOURCE_DATE_EPOCH=`date -r pyproject.toml +"%s"` %pyproject_wheel %install @@ -161,6 +161,6 @@ export PYTHONPATH=%{buildroot}%{$python_sitelib}/ %python_alternative %{_mandir}/man1/supybot-test.1 %python_alternative %{_mandir}/man1/supybot-wizard.1 %{python_sitelib}/supybot/ -%{python_sitelib}/limnoria-%{distinfo_version}.dist-info +%{python_sitelib}/limnoria-%{version}*.*-info %changelog