nmav pushed to openconnect (epel7). "Make it easier to build git snapshot packages (for testing)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Mar 31 11:54:23 UTC 2015


>From 1919dbe975583952bee598464facb862ab09537c Mon Sep 17 00:00:00 2001
From: David Woodhouse <David.Woodhouse at intel.com>
Date: Mon, 2 Mar 2015 16:10:30 +0000
Subject: Make it easier to build git snapshot packages (for testing)


diff --git a/openconnect.spec b/openconnect.spec
index 55d83b2..f0e3772 100644
--- a/openconnect.spec
+++ b/openconnect.spec
@@ -1,3 +1,11 @@
+#% define gitcount 211
+#% define gitrev 584c84f
+
+%if 0%{?gitcount} > 0
+%define gitsuffix -%{gitcount}-g%{gitrev}
+%define relsuffix .git%{gitcount}_%{gitrev}
+%endif
+
 # RHEL6 still has ancient GnuTLS
 %define use_gnutls 0%{?fedora} || 0%{?rhel} >= 7
 
@@ -13,13 +21,13 @@
 
 Name:		openconnect
 Version:	7.04
-Release:	1%{?dist}
+Release:	1%{?relsuffix}%{?dist}
 Summary:	Open client for Cisco AnyConnect VPN
 
 Group:		Applications/Internet
 License:	LGPLv2+
 URL:		http://www.infradead.org/openconnect.html
-Source0:	ftp://ftp.infradead.org/pub/openconnect/openconnect-%{version}.tar.gz
+Source0:	ftp://ftp.infradead.org/pub/openconnect/openconnect-7.04%{?gitsuffix}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	pkgconfig(openssl) pkgconfig(libxml-2.0)
@@ -60,7 +68,7 @@ the OpenConnect VPN client, to be used by GUI authentication dialogs
 for NetworkManager etc.
 
 %prep
-%setup -q
+%setup -q -n openconnect-7.04%{?gitsuffix}
 
 %build
 %configure	--with-vpnc-script=/etc/vpnc/vpnc-script \
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/openconnect.git/commit/?h=epel7&id=1919dbe975583952bee598464facb862ab09537c


More information about the scm-commits mailing list