[mate-icon-theme] add latest git snapshot to spec file and improve git snapshot usage

Wolfgang Ulbrich raveit65 at fedoraproject.org
Sat Jan 4 12:00:43 UTC 2014


commit 3a469d977c057ab61f4bf7ed46d695c17d8a9ada
Author: raveit65 <chat-to-me at raveit.de>
Date:   Sat Jan 4 13:00:40 2014 +0100

    add latest git snapshot to spec file and improve git snapshot usage

 mate-icon-theme.spec |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)
---
diff --git a/mate-icon-theme.spec b/mate-icon-theme.spec
index 4dd51c6..8da1916 100644
--- a/mate-icon-theme.spec
+++ b/mate-icon-theme.spec
@@ -1,17 +1,29 @@
-%global _internal_version  48f9063
+# Conditional for release and snapshot builds. Uncomment for release-builds.
+# %%global rel_build 1
+
+# This is needed, because src-url contains branched part of versioning-scheme.
+%global branch 1.7
+
+# Settings used for build from snapshots.
+%{!?rel_build:%global commit 19719ce9f4910e678062dccf90affb61cf03eb0e}
+%{!?rel_build:%global commit_date 20140101}
+%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
+%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}}
+%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}}
+%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz}
 
 Name:           mate-icon-theme
-Version:        1.6.3
-Release:        0.2.git%{_internal_version}%{?dist}
+Version:        %{branch}.1
+Release:        0.1%{?git_rel}%{?dist}
 Summary:        Icon theme for MATE Desktop
 License:        GPLv2+ and LGPLv2+
 URL:            http://mate-desktop.org
 
-# To generate tarball
-# wget http://git.mate-desktop.org/%%{name}/snapshot/%%{name}-%%{_internal_version}.tar.xz -O %%{name}-%%{version}.git%%{_internal_version}.tar.xz
-Source0:       http://raveit65.fedorapeople.org/Mate/git-uptream/%{name}-%{version}.git%{_internal_version}.tar.xz
-
-#Source0:        http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
+# for downloading the tarball use 'spectool -g -R mate-icon-theme.spec'
+# Source for release-builds.
+%{?rel_build:Source0:     http://pub.mate-desktop.org/releases/%{branch}/%%{name}-%%{version}.tar.xz}
+# Source for snapshot-builds.
+%{!?rel_build:Source0:    http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}
 
 BuildArch:      noarch
 
@@ -29,7 +41,7 @@ Icon theme for MATE Desktop
 
 
 %prep
-%setup -q -n %{name}-%{_internal_version}
+%setup -q%{!?rel_build:n %{name}-%{commit}}
 NOCONFIGURE=1 ./autogen.sh
 
 %build
@@ -67,6 +79,10 @@ fi
 
 
 %changelog
+* Sat Jan 4 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.7.1-0.1.git20140101.19719ce
+- update to latest git snapshot
+- make Maintainers life easier and use better git snapshot usage
+
 * Thu Oct 24 2013 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.3-0.2.git48f9063
 - update to latest git version
 - symbolic icons are removed from menta. already in mate icon-theme


More information about the scm-commits mailing list