From f843bf828aa37707bf2d5faf2cae81bcc74abc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 11 Mar 2018 14:52:31 +0100 Subject: [PATCH 1/2] Drop Group tag and period from Summary --- redhat-rpm-config.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 4281954..6a6673f 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -10,7 +10,6 @@ Version: 106 Release: 1%{?dist} # No version specified. License: GPL+ -Group: Development/System URL: https://src.fedoraproject.org/rpms/redhat-rpm-config # Core rpm settings @@ -116,7 +115,7 @@ Provides: system-rpm-config = %{version}-%{release} Red Hat specific rpm configuration files. %package -n kernel-rpm-macros -Summary: Macros and scripts for building kernel module packages. +Summary: Macros and scripts for building kernel module packages Requires: redhat-rpm-config >= 13 %description -n kernel-rpm-macros From 8c5d5de24a177928e5177362532cc22aa604858d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 11 Mar 2018 15:15:30 +0100 Subject: [PATCH 2/2] Trim changelog entries older than two years Inspired by http://gitweb.mageia.org/software/rpm/rpm-setup/tree/macros.in#n22 but changed to two years (3+ releases of Fedora). --- macros | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macros b/macros index 87b6815..62f320a 100644 --- a/macros +++ b/macros @@ -214,6 +214,9 @@ %__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags} +# Automatically trim changelog entries after 2 years +%_changelog_trimtime %{lua:print(os.time() - 2 * 365 * 86400)} + #============================================================================== # ---- Generic auto req/prov filtering macros #