[gnome-python2-extras/f15] Fix upgrade paths

Kalev Lember kalev at fedoraproject.org
Fri Sep 9 16:22:09 UTC 2011


commit 364f7561c61cd9a32bdb3898c5799fd3e5f3dd62
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Fri Sep 9 19:21:46 2011 +0300

    Fix upgrade paths
    
    Defined %frozen_release in order to make sure the Release number
    doesn't grow past the one we have in F16. While at this, also fixed
    gnome-python2-gdl obsoletes when updating from F14.
    
    xulrunner maintainers regularly bump the dependant packages with
    rpmdev-bumpspec and we need some hacks in place to properly preserve
    upgrade paths between different distro versions.

 gnome-python2-extras.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gnome-python2-extras.spec b/gnome-python2-extras.spec
index 930abc5..75c260f 100644
--- a/gnome-python2-extras.spec
+++ b/gnome-python2-extras.spec
@@ -13,11 +13,17 @@
 %define enable_gda 1
 %define enable_gdl 0
 
+# Define the release here in order to preserve the upgrade path to F16.
+# xulrunner maintainers regularly rebuild dependant packages and use
+# rpmdev-bumpspec; the define here makes sure rpmdev-bumpspec won't touch the
+# leftmost digit.
+%define frozen_release 34%{?dist}
+
 ### Abstract ###
 
 Name: gnome-python2-extras
 Version: 2.25.3
-Release: 34%{?dist}
+Release: %{frozen_release}
 License: GPLv2+ and LGPLv2+
 Group: Development/Languages
 Summary: Additional PyGNOME Python extension modules
@@ -28,7 +34,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Obsoletes: gnome-python2-gda <= 2.14.3-1
 Obsoletes: gnome-python2-gda-devel <= 2.14.3-1
 
-Obsoletes: gnome-python2-gdl < 2.25.3-31
+Obsoletes: gnome-python2-gdl < 2.25.3-34
 
 ### Patches ###
 


More information about the scm-commits mailing list