From 6165d59b047443dad87100410c4055782a73a040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 22 Aug 2006 19:29:22 +0000 Subject: [PATCH] - Migrate rmdevelrpms config when upgrading from fedora-rpmdevtools. --- rpmdevtools.spec | 14 +++++++++++++- sources | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/rpmdevtools.spec b/rpmdevtools.spec index 3b3b8eb..910542a 100644 --- a/rpmdevtools.spec +++ b/rpmdevtools.spec @@ -4,7 +4,7 @@ Name: rpmdevtools Version: 5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: RPM Development Tools Group: Development/Tools @@ -84,6 +84,15 @@ make check rm -rf $RPM_BUILD_ROOT +%post +# Upgrade from fedora-rpmdevtools: +oldconf=%{_sysconfdir}/fedora/rmdevelrpms.conf +if [ $1 -eq 1 -a -f $oldconf ] ; then + echo "5615a64d80f6e6b4df77b3ab0ef1469c $oldconf" \ + | md5sum -c --status - >/dev/null 2>&1 || \ + cat $oldconf > %{_sysconfdir}/rpmdevtools/rmdevelrpms.conf || : +fi + %triggerin -- emacs-common [ -d %{emacs_sitestart_d} ] && \ ln -sf %{_datadir}/rpmdevtools/rpmdev-init.el %{emacs_sitestart_d} || : @@ -111,6 +120,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Aug 22 2006 Ville Skyttä - 5.0-2 +- Migrate rmdevelrpms config when upgrading from fedora-rpmdevtools. + * Sun Aug 20 2006 Ville Skyttä - 5.0-1 - Re-rename almost everything to rpmdev-*, with backwards compat symlinks. - Don't encourage %%ghost'ing *.pyo in Python spec template, add some comments. diff --git a/sources b/sources index d195332..79b2c79 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -d50bf6967feb6a36de156fcd2888a962 rpmdevtools-5.0.tar.bz2 e2b1668f39c085807cae5a770c252dd5 spectool-1.0.7.tar.bz2 +47ed57ac6ef734fa9d00eb5a2616191d rpmdevtools-5.0.tar.bz2