Mailinglist Archive: opensuse-packaging (150 mails)

< Previous Next >
Re: [opensuse-packaging] Convert existing changelog from .spec file to .changes file
  • From: "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
  • Date: Sat, 24 Oct 2009 21:08:59 +0200
  • Message-id: <200910242108.59519@xxxxxxxxxxxxxxxxxxx>
Am Samstag 24 Oktober 2009 18:49:11 wrote Christian Boltz:
Hello,

on Freitag, 23. Oktober 2009, Cristian Morales Vega wrote:
Sometimes I find a package with a long changelog that has always
lived directly in the .spec file. I would like to continue the
changelog in a .changes file... but how should I convert all the
existing entries?

Use sed ;-)

LANG=C rpm -q --changelog aaa_base |head -n30 | \
sed '1,/^%changelog/ d ;
s§^* \(...\) \(...\) \([0-3][0-9]\) \([12][0-9][0-9][0-9]\)
\(.*\)§-------------------------------------------------------------
------\n\1 \2 \3 12:34:56 CET \4 - \5\n§'
Maybe we can make an Script for that and put it in an rpm-tools Package.

--
Sincerely yours

Sascha Manns
openSUSE Member
openSUSE Ambassador
openSUSE Marketing Team
openSUSE Build Service
Web: http://saschamanns.gulli.to
Blog: http://saigkill.wordpress.com
ClaimID: http://claimid.com/saigkill

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >