[libsigc++20/f15/master] Automatically figure out ftp download dir
Kalev Lember
kalev at fedoraproject.org
Tue Mar 1 20:08:59 UTC 2011
commit 07af71f5b7f6cf9460f4a2a8ae56e06056c5e8b5
Author: Kalev Lember <kalev at smartlink.ee>
Date: Tue Mar 1 21:35:39 2011 +0200
Automatically figure out ftp download dir
libsigc++20.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
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 <kalev at smartlink.ee> - 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 <hguemar at fedoraproject.org> - 2.2.8-3
- fix documentation location (RHBZ #678981)
More information about the scm-commits
mailing list