packages: java-tigase-utils/java-tigase-utils.spec, java-tigase-utils/java-...
jajcus
jajcus at pld-linux.org
Mon May 9 12:33:22 CEST 2011
Author: jajcus Date: Mon May 9 10:33:22 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- do not use 'svnversion' to get the build id
---- Files affected:
packages/java-tigase-utils:
java-tigase-utils.spec (1.1 -> 1.2) , java-tigase-utils-no_svnversion.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/java-tigase-utils/java-tigase-utils.spec
diff -u packages/java-tigase-utils/java-tigase-utils.spec:1.1 packages/java-tigase-utils/java-tigase-utils.spec:1.2
--- packages/java-tigase-utils/java-tigase-utils.spec:1.1 Mon May 9 10:50:25 2011
+++ packages/java-tigase-utils/java-tigase-utils.spec Mon May 9 12:33:17 2011
@@ -17,6 +17,7 @@
Group: Libraries/Java
Source0: https://projects.tigase.org/attachments/download/18/%{srcname}-%{version}-b%{build_id}.src.tar.gz
# Source0-md5: 157a60680810282a5829b51626371bdb
+Patch0: %{name}-no_svnversion.patch
URL: https://projects.tigase.org/projects/tigase-utils/
%{?with_tests:BuildRequires: ant-junit}
BuildRequires: java-tigase-xmltools
@@ -61,6 +62,10 @@
%prep
%setup -q -n %{srcname}-%{version}-b%{build_id}.src
+%patch0 -p1
+
+echo "build-no=%{build_id}" >> build.properties
+
%build
export JAVA_HOME="%{java_home}"
@@ -135,6 +140,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2011/05/09 10:33:17 jajcus
+- do not use 'svnversion' to get the build id
+
Revision 1.1 2011/05/09 08:50:25 jajcus
- new spec
================================================================
Index: packages/java-tigase-utils/java-tigase-utils-no_svnversion.patch
diff -u /dev/null packages/java-tigase-utils/java-tigase-utils-no_svnversion.patch:1.1
--- /dev/null Mon May 9 12:33:22 2011
+++ packages/java-tigase-utils/java-tigase-utils-no_svnversion.patch Mon May 9 12:33:17 2011
@@ -0,0 +1,19 @@
+--- tigase-xmltools-3.3.1-b484.src/build.xml.orig 2008-12-15 23:55:31.000000000 +0100
++++ tigase-xmltools-3.3.1-b484.src/build.xml 2011-05-09 12:29:03.000000000 +0200
+@@ -16,16 +16,6 @@
+
+ <target name="prepare-dist" description="Calculate build version">
+ <!-- Get revision number -->
+- <exec executable="svnversion">
+- <redirector outputproperty="build-no" errorproperty="error-property">
+- <outputfilterchain>
+- <tokenfilter>
+- <containsregex
+- pattern="[^0-9]*([0-9]+).*" replace="\1"/>
+- </tokenfilter>
+- </outputfilterchain>
+- </redirector>
+- </exec>
+ <property name="version" value="${ver}-b${build-no}"/>
+ <property name="dist" value="dist/${projectname}-${jarfile}-${version}"/>
+ </target>
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/java-tigase-utils/java-tigase-utils.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list