SPECS: webscarab.spec - deps and proper building
glen
glen at pld-linux.org
Sun Nov 18 14:08:02 CET 2007
Author: glen Date: Sun Nov 18 13:08:02 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- deps and proper building
---- Files affected:
SPECS:
webscarab.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/webscarab.spec
diff -u SPECS/webscarab.spec:1.2 SPECS/webscarab.spec:1.3
--- SPECS/webscarab.spec:1.2 Fri Nov 16 18:51:22 2007
+++ SPECS/webscarab.spec Sun Nov 18 14:07:56 2007
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without javadoc # don't build javadoc
+#
%include /usr/lib/rpm/macros.java
%define _snap 20070504-1631
Summary: WebScarab - a Web Application Review tool for Java
@@ -11,11 +15,26 @@
Source0: http://dl.sourceforge.net/owasp/%{name}-src-%{_snap}.zip
# Source0-md5: b3ba39de51f3715aab4a7d75b7c8a4d5
BuildRequires: ant
+BuildRequires: bsf >= 2.3.0
+BuildRequires: bsh >= 2.0b1
+BuildRequires: chardet
+BuildRequires: jakarta-commons-logging >= 1.0.4
+BuildRequires: concurrent
+BuildRequires: htmlparser
+BuildRequires: jcommon >= 0.8.7
+BuildRequires: jfreechart >= 0.9.12
+BuildRequires: jhall >= 2.0_02
BuildRequires: jpackage-utils
+BuildRequires: openamf
BuildRequires: rpm-javaprov
BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: tagsoup >= 1.0rc2
+BuildRequires: wsdl4j
Requires: jpackage-utils
Requires: jre > 1.4
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
BuildArch: noarch
ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,9 +53,28 @@
%prep
%setup -q -n %{name}-%{_snap}
+cp ../webscarab-current/server.p12 .
%build
-%ant dist
+required_jars="
+bsf
+concurrent
+htmlparser
+bsf
+beanshell
+jfreechart
+jcommon
+jhelp
+chardet
+tagsoup
+wsdl
+openamf
+commons-logging
+"
+export CLASSPATH=$(build-classpath $required_jars)
+
+export LC_ALL=en_US # source code not US-ASCII
+%ant compile %{?with_javadoc:javadoc} proguard izpack
%install
rm -rf $RPM_BUILD_ROOT
@@ -58,9 +96,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007-11-18 13:07:56 glen
+- deps and proper building
+
Revision 1.2 2007-11-16 17:51:22 glen
- arrr
Revision 1.1 2007-11-16 14:39:51 glen
- started
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/webscarab.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list