]> git.pld-linux.org Git - packages/ekg2.git/blobdiff - ekg2.spec
- with svn: embed svn rev number into version string (thx, wiechu)
[packages/ekg2.git] / ekg2.spec
index 5c3ee809cc8b4627a9b125eacd858643ec647e17..f206a091f10a05864bae6e5939b9ec54efb19915 100644 (file)
--- a/ekg2.spec
+++ b/ekg2.spec
@@ -9,7 +9,7 @@
 %bcond_without feed                    # don't build feed plugin
 %bcond_without gadugadu                # don't build gg plugin
 %bcond_without gpg                     # don't build gpg plugin
-%bcond_without gtk                     # don't build gtk plugin
+%bcond_with    gtk                     # don't build gtk plugin
 %bcond_without jabber                  # don't build jabber plugin
 %bcond_without gnutls                  # build jabber plugin without libgnutls
 %bcond_without libgsm                  # don't build libgsm plugin
@@ -24,7 +24,7 @@
 %if %{with svn}
 %define                subver svn.%(date +%Y%m%d)
 %else
-%define                subver 20101007
+%define                subver 20101110
 %endif
 
 %define                rel 1
@@ -43,7 +43,7 @@ License:      GPL v2+
 Group:         Applications/Communications
 %if %{without svn}
 Source0:       http://pl.ekg2.org/%{name}-%{subver}.tar.bz2
-# Source0-md5: 207efbb3395d1a98cdc57083d1f641a0
+# Source0-md5: 908ae66c4ab677671423316ed8eb7793
 %endif
 Patch0:                %{name}-perl-install.patch
 Patch1:                %{name}-gtk.patch
@@ -338,8 +338,16 @@ Wtyczka xosd dla ekg2.
 %else
 %setup -qcT
 cd ..
-svn -q export --force http://toxygen.net/svn/ekg2/trunk %{name}-%{version}
+repo="http://toxygen.net/svn/ekg2/trunk"
+svn -q export --force $repo %{name}-%{version}
 cd -
+v=$(LANG=C svn info $repo/INSTALL 2>/dev/null|sed -n 's/^Revision: \([0-9]\+\)$/\1/p')
+if [ "$v" ]; then
+    echo SVN-rev.$v
+    v="SVN rev.$v"
+    sed -i "s/AM_INIT_AUTOMAKE(ekg2, CVS)/AM_INIT_AUTOMAKE(ekg2, \"$v\")/" configure.ac
+fi
+
 %endif
 
 %patch0 -p1
This page took 0.067444 seconds and 4 git commands to generate.