Trimming (or obsoleting) %changelog?

Richard W.M. Jones rjones at redhat.com
Fri Apr 19 16:25:52 UTC 2013


On Fri, Apr 19, 2013 at 11:17:09AM -0400, Tom Callaway wrote:
> On 04/18/2013 11:34 AM, Richard W.M. Jones wrote:
> > %global _changelog_trimtime %(date +%s -d "1 year ago")
> 
> If that actually works, we could make fedpkg set it.

I have just tested this by adding it to a random package that I
maintain, and it appears to work.

The changelog in the RPM I just built is trimmed to 1 year, even
though the spec file contains a much longer changelog.

One possible problem -- maybe it's not -- is that the generated
.src.rpm changelog also gets truncated, but the spec file inside is
intact.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


More information about the devel mailing list