From e7486a00d780325e9eabf9940b620c4c80ef97c3 Mon Sep 17 00:00:00 2001 From: Thomas Sailer Date: Wed, 12 Jan 2011 21:57:59 +0100 Subject: [PATCH] from gtkmm30.spec, via Kalev Lember, automatically adjust release version --- mingw32-glib2.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw32-glib2.spec b/mingw32-glib2.spec index b13416d..65bfd97 100644 --- a/mingw32-glib2.spec +++ b/mingw32-glib2.spec @@ -13,7 +13,9 @@ Summary: MinGW Windows GLib2 library License: LGPLv2+ Group: Development/Libraries URL: http://www.gtk.org -Source0: http://download.gnome.org/sources/glib/2.27/glib-%{version}.tar.bz2 +# first two digits of version +%define release_version %(echo %{version} | awk -F. '{print $1"."$2}') +Source0: http://download.gnome.org/sources/glib/%{release_version}/glib-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch