From 3cc20b1a2581080e23f05685d03b61ca7294b960 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 1 Mar 2011 21:35:39 +0200 Subject: [PATCH] Automatically figure out ftp download dir --- libsigc++20.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsigc++20.spec b/libsigc++20.spec index 941c8a4..e437733 100644 --- a/libsigc++20.spec +++ b/libsigc++20.spec @@ -1,3 +1,6 @@ +# first two digits of version +%define release_version %(echo %{version} | awk -F. '{print $1"."$2}') + Name: libsigc++20 Version: 2.2.8 Release: 4%{?dist} @@ -6,7 +9,7 @@ Summary: Typesafe signal framework for C++ Group: System Environment/Libraries License: LGPLv2+ URL: http://libsigc.sourceforge.net/ -Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/libsigc++-%{version}.tar.bz2 +Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{release_version}/libsigc++-%{version}.tar.bz2 # fix compilation with GCC 4.6 (upstream ticket: GNOME BZ #641471) Patch0: %{name}-gcc46.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -96,6 +99,8 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Mar 01 2011 Kalev Lember - 2.2.8-4 - Spec cleanup +- Use macro for automatically calculating ftp directory name with + first two digits of tarball version. * Mon Feb 21 2011 Haïkel Guémar - 2.2.8-3 - fix documentation location (RHBZ #678981)