from gtkmm30.spec, via Kalev Lember, automatically adjust release version

This commit is contained in:
Thomas Sailer 2011-01-12 21:57:59 +01:00 committed by Thomas Sailer
parent 14877c8031
commit e7486a00d7

View File

@ -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