packages: java-cactus/java-cactus.spec - 1.8.1 version - builds something w...
glen
glen at pld-linux.org
Tue May 19 03:28:18 CEST 2009
Author: glen Date: Tue May 19 01:28:18 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- 1.8.1 version
- builds something with maven
---- Files affected:
packages/java-cactus:
java-cactus.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/java-cactus/java-cactus.spec
diff -u packages/java-cactus/java-cactus.spec:1.5 packages/java-cactus/java-cactus.spec:1.6
--- packages/java-cactus/java-cactus.spec:1.5 Tue May 19 02:23:29 2009
+++ packages/java-cactus/java-cactus.spec Tue May 19 03:28:12 2009
@@ -1,27 +1,23 @@
# $Revision$, $Date$
+# TODO
+# - use system jars, not download with maven
+# - http://jakarta.apache.org/cactus/participating/howto_build.html
%define base_name cactus
%include /usr/lib/rpm/macros.java
Summary: Cactus unit test framework for server-side Java code
Summary(pl.UTF-8): Cactus - szkielet testów jednostkowych dla kodu w Javie po stronie serwera
Name: java-%{base_name}
-Version: 1.7.2
+Version: 1.8.1
Release: 0.1
Epoch: 0
License: Apache
Group: Development/Libraries
Obsoletes: jakarta-cactus
-Source0: http://www.apache.org/dist/jakarta/cactus/source/jakarta-cactus-src-%{version}.zip
-# Source0-md5: 251c65b55e42b723d7b99c87a4b204d2
-#Source1: cactus-missing-testinput.tar.gz
-#Patch0: cactus-checkstyle.patch
-#Patch1: cactus-noeclipse-build_xml.patch
+Source0: http://www.apache.org/dist/jakarta/cactus/sources/cactus-%{version}-src.tar.bz2
+# Source0-md5: 60c020a348100610a0d565c374146c2a
URL: http://jakarta.apache.org/cactus/
-BuildRequires: ant >= 0:1.6
-BuildRequires: ant-junit >= 0:1.6
-BuildRequires: ant-nodeps >= 0:1.6
-BuildRequires: ant-trax >= 0:1.6
BuildRequires: antlr
-#BuildRequires: aspectj
+BuildRequires: aspectj
#BuildRequires: checkstyle
BuildRequires: httpunit
BuildRequires: j2sdk >= 1.3
@@ -29,7 +25,6 @@
BuildRequires: jakarta-commons-collections
BuildRequires: jakarta-commons-logging
#BuildRequires: jakarta-taglibs-standard
-#BuildRequires: jasper4
BuildRequires: java-commons-httpclient
BuildRequires: java-log4j
BuildRequires: java-servletapi5
@@ -38,12 +33,14 @@
#BuildRequires: jetty4
BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: junit
+BuildRequires: maven >= 2.0
#BuildRequires: mockobjects
#BuildRequires: nekohtml
#BuildRequires: regexp
BuildRequires: rpmbuild(macros) >= 1.300
BuildRequires: sed >= 4.0
#BuildRequires: servletapi3
+BuildRequires: tomcat-jasper
BuildRequires: xml-commons-apis
Requires: antlr
Requires: aspectj
@@ -106,46 +103,23 @@
Dokumentacja do pakietu %{name}.
%prep
-%setup -q -n jakarta-cactus-src-%{version}
-#gzip -dc %{SOURCE1} | tar -xf -
-%{__sed} -i -e '/clover\.enable/d' build.xml
+%setup -q -n cactus-%{version}-src
+#%{__sed} -i -e '/clover\.enable/d' build.xml
%build
-cat >> build.properties <<EOF
-aspectjrt.jar=$(build-classpath aspectjrt)
-aspectj-tools.jar=$(build-classpath aspectjtools)
-commons.httpclient.jar=$(build-classpath commons-httpclient)
-commons.logging.jar=$(build-classpath commons-logging)
-httpunit.jar=$(build-classpath httpunit)
-j2ee.12.jar=$(build-classpath j2ee-1.2)
-j2ee.13.jar=$(build-classpath j2ee-1.3)
-junit.jar=$(build-classpath junit)
-mockobjects.jar=$(build-classpath mockobjects-core)
-log4j.jar=$(build-classpath log4j)
-xmlapis.jar=$(build-classpath xml-commons-apis)
-servlet.22.jar=$(build-classpath servletapi3)
-servlet.23.jar=$(build-classpath servletapi4)
-nekohtml.jar=$(build-classpath nekohtml)
-jstl.jar=$(build-classpath taglibs-core)
-standard.jar=$(build-classpath jakarta-taglibs-standard)
-xerces.jar=$(build-classpath xerces-j2)
-jetty.jar=$(build-classpath jetty4)
-jasper-compiler.jar=$(build-classpath jasper4-compiler)
-jasper-runtime.jar=$(build-classpath jasper4-runtime)
-cactus.port=9992
-EOF
-
-if grep '=$' build.properties; then
- : Some .jar could not be found
- exit 1
-fi
-
-export OPT_JAR_LIST="ant/ant-nodeps ant/ant-junit junit ant/ant-trax jaxp_transform_impl aspectjtools"
-%ant -Dbuild.sysclasspath=first
+mvn assembly:assembly -N
+# TODO: figure out how to skip tarball build
+rm -rf cactus-%{version}-bin
+tar jxf target/cactus-%{version}-bin.tar.bz2
+mv cactus-%{version}-bin dist
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}/cactus
+
+cp -a dist/lib/*.jar $RPM_BUILD_ROOT%{_javadir}/cactus
+%if 0
# jars
install -d $RPM_BUILD_ROOT%{_javadir}/cactus-12
cp -p framework/dist-12/lib/cactus-%{version}.jar \
@@ -176,6 +150,7 @@
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp LICENSE.cactus $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr documentation/dist/doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -185,10 +160,10 @@
%files
%defattr(644,root,root,755)
-%{_docdir}/%{name}-%{version}/LICENSE.cactus
-%{_datadir}/%{name}-%{version}
-%{_javadir}/*
+%dir %{_javadir}/cactus
+%{_javadir}/cactus/*.jar
+%if 0
%files javadoc
%defattr(644,root,root,755)
%doc %{_javadocdir}/%{name}-%{version}
@@ -197,6 +172,7 @@
%files manual
%defattr(644,root,root,755)
%{_docdir}/%{name}-%{version}
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -204,6 +180,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2009/05/19 01:28:12 glen
+- 1.8.1 version
+- builds something with maven
+
Revision 1.5 2009/05/19 00:23:29 glen
- update java deps
- rename to java-cactus
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/java-cactus/java-cactus.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list