forked from pool/rpm-config-SUSE
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
521f6e960f | ||
b5ed443eb9 |
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 8 04:09:24 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Use a deterministic binarychangelogtrim
|
||||
based on build times of BuildRequires (boo#1047218)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 14 16:22:28 UTC 2024 - valentin.lefebvre@suse.com
|
||||
|
||||
|
@ -54,10 +54,13 @@ sed -e 's/@suse_version@/%{?suse_version}%{!?suse_version:0}/' \
|
||||
< suse_macros.in > suse_macros
|
||||
|
||||
%if 0%{?is_opensuse}
|
||||
# use latest build date of BuildRequires as reference and go to January 1st three years back - the + 6 * 3600 is to match exactly the previous value of 2020-01-01 00:00 as leap-years cause some hours of offset
|
||||
trimdate=$(rpm -qa --qf %{BUILDTIME}\\n |sort -n|tail -1)
|
||||
trimdate=$(( (trimdate / 31557600 - 3) * 31557600 + 6 * 3600 ))
|
||||
cat <<EOF > macros.d/macros.opensuse
|
||||
# trim binary changelogs to include roughly 3 years
|
||||
# maxnum,cuttime,minnum
|
||||
%%_binarychangelogtrim 0,$(date -d "Jan 1 UTC 3 years ago" +%s),10
|
||||
%%_binarychangelogtrim 0,$trimdate,10
|
||||
EOF
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user