packages: ekg2/ekg2.spec - added --with svn bcond for ekg2 developers conve...

pawelz pawelz at pld-linux.org
Tue Jun 15 19:10:42 CEST 2010


Author: pawelz                       Date: Tue Jun 15 17:10:42 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added --with svn bcond for ekg2 developers convenience

---- Files affected:
packages/ekg2:
   ekg2.spec (1.114 -> 1.115) 

---- Diffs:

================================================================
Index: packages/ekg2/ekg2.spec
diff -u packages/ekg2/ekg2.spec:1.114 packages/ekg2/ekg2.spec:1.115
--- packages/ekg2/ekg2.spec:1.114	Mon Jun  7 15:37:09 2010
+++ packages/ekg2/ekg2.spec	Tue Jun 15 19:10:37 2010
@@ -20,8 +20,13 @@
 %bcond_with	sqlite			# build logsqlite plugin based on sqlite (conflicts with sqlite3)
 %bcond_without	sqlite3			# don't build logsqlite plugin based on sqlite3
 %bcond_without	xosd			# don't build xosd plugin
+%bcond_with	svn			# checkout svn trunk instead of Source0 - requested by ekg2 developer
 
 %define		_snap 20100606
+%if %{with svn}
+%define		_snap svn.%(date +%Y%m%d)
+%endif
+
 %define		rel 3
 
 %if %{without jabber}
@@ -40,7 +45,9 @@
 Epoch:		2
 License:	GPL v2+
 Group:		Applications/Communications
+%if %{without svn}
 Source0:	http://pl.ekg2.org/%{name}-%{_snap}.tar.bz2
+%endif
 # Source0-md5:	0d8348be0559c478835a767dda4d58c2
 Patch0:		%{name}-perl-install.patch
 Patch1:		%{name}-gtk.patch
@@ -70,6 +77,7 @@
 %{?with_readline:BuildRequires:	readline-devel}
 %{?with_python:BuildRequires:	rpm-pythonprov}
 BuildRequires:	sed >= 4.0
+%{?with_svn:BuildRequires:	subversion}
 %{?with_sqlite:BuildRequires:	sqlite-devel}
 %{?with_sqlite3:BuildRequires:	sqlite3-devel}
 %{?with_xosd:BuildRequires:	xosd-devel}
@@ -329,7 +337,15 @@
 Wtyczka xosd dla ekg2.
 
 %prep
+%if %{without svn}
 %setup -q -n %{name}-%{_snap}
+%else
+%setup -q -T -c
+svn co http://toxygen.net/svn/ekg2/trunk/
+mv trunk/* .
+rm -rf trunk
+%endif
+
 %patch0 -p1
 %patch1 -p1
 
@@ -535,6 +551,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.115  2010/06/15 17:10:37  pawelz
+- added --with svn bcond for ekg2 developers convenience
+
 Revision 1.114  2010/06/07 13:37:09  pawelz
 - rel 3
 - use %rel macro
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ekg2/ekg2.spec?r1=1.114&r2=1.115&f=u



More information about the pld-cvs-commit mailing list