[mate-control-center/f20] add 1.8.2 release to spec file

Wolfgang Ulbrich raveit65 at fedoraproject.org
Mon Jul 28 16:54:23 UTC 2014


commit 2375d16067f7feda51da343fecab777b9651875f
Author: raveit65 <chat-to-me at raveit.de>
Date:   Mon Jul 28 18:54:15 2014 +0200

    add 1.8.2 release to spec file

 mate-control-center.spec |   45 +++++++++++++++++++++++++++++++++++++--------
 1 files changed, 37 insertions(+), 8 deletions(-)
---
diff --git a/mate-control-center.spec b/mate-control-center.spec
index ed06e0d..3f56a26 100644
--- a/mate-control-center.spec
+++ b/mate-control-center.spec
@@ -1,10 +1,30 @@
-Name:           mate-control-center
-Version:        1.6.2
-Release:        3%{?dist}
-Summary:        MATE Desktop control-center
-License:        LGPLv2+ and GPLv2+
-URL:            http://mate-desktop.org
-Source0:        http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
+# 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.8
+
+# Settings used for build from snapshots.
+%{!?rel_build:%global commit 922d0e0219b1bedcece8624e4b5fd7e15e7a9bd5}
+%{!?rel_build:%global commit_date 20131113}
+%{!?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-control-center
+Version:       %{branch}.2
+Release:       1%{?dist}
+#Release:       0.6%{?git_rel}%{?dist}
+Summary:       MATE Desktop control-center
+License:       LGPLv2+ and GPLv2+
+URL:           http://mate-desktop.org
+
+# for downloading the tarball use 'spectool -g -R mate-control-center.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}}
 
 # upstream patch
 # swithch to gnome-keyring > f19
@@ -74,7 +94,13 @@ Development files for mate-control-center
 
 
 %prep
-%setup -q
+%setup -q%{!?rel_build:n %{name}-%{commit}}
+
+# To work around rpath
+autoreconf -fi
+
+# needed for git snapshots
+#NOCONFIGURE=1 ./autogen.sh
 
 %if 0%{?fedora} > 19
 %patch0 -p1 -b .gnome-keyring
@@ -177,6 +203,9 @@ fi
 
 
 %changelog
+* Mon Jul 28 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.8.0-3
+- update to 1.8.2 release
+
 * Thu Jun 26 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.2-3
 - fix broken links in mate-appearance-properties, rhbz (#1113024)
 - add support for metacity-2 themes


More information about the scm-commits mailing list