[glibmm24] Use macro for automatically calculating ftp directory name with first two digits of tarball version.

Kalev Lember kalev at fedoraproject.org
Tue Nov 2 17:17:43 UTC 2010


commit 9b37729bf3db88099c1c5542bb4f22ff6bc95db3
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Tue Nov 2 19:16:20 2010 +0200

    Use macro for automatically calculating ftp directory name with first two digits of tarball version.

 glibmm24.spec |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/glibmm24.spec b/glibmm24.spec
index 532e460..68ea083 100644
--- a/glibmm24.spec
+++ b/glibmm24.spec
@@ -1,3 +1,6 @@
+# first two digits of version
+%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
+
 Name:           glibmm24
 Version:        2.27.2
 Release:        1%{?dist}
@@ -6,7 +9,7 @@ Summary:        C++ interface for the GLib library
 Group:          System Environment/Libraries
 License:        LGPLv2+
 URL:            http://www.gtkmm.org/
-Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.27/glibmm-%{version}.tar.bz2
+Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/%{release_version}/glibmm-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libsigc++20-devel >= 2.0.0
@@ -110,6 +113,8 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Tue Nov 02 2010 Kalev Lember <kalev at smartlink.ee> - 2.27.2-1
 - Update to 2.27.2
+- Use macro for automatically calculating ftp directory name with
+  first two digits of tarball version.
 
 * Mon Nov 01 2010 Kalev Lember <kalev at smartlink.ee> - 2.27.1-1
 - Update to 2.27.1


More information about the scm-commits mailing list