SPECS: java-httpunit.spec - jdk bconds - java- prefix for name - G: Librari...
pawelz
pawelz at pld-linux.org
Fri Apr 3 17:49:00 CEST 2009
Author: pawelz Date: Fri Apr 3 15:49:00 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- jdk bconds
- java- prefix for name
- G: Libraries/Java
- not tested after spec rename
---- Files affected:
SPECS:
java-httpunit.spec (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SPECS/java-httpunit.spec
diff -u SPECS/java-httpunit.spec:1.13 SPECS/java-httpunit.spec:1.14
--- SPECS/java-httpunit.spec:1.13 Fri Feb 27 19:29:13 2009
+++ SPECS/java-httpunit.spec Fri Apr 3 17:48:55 2009
@@ -7,22 +7,31 @@
# Conditional build:
%bcond_with jtidy # jtidy vs nekohtml
%bcond_with tests # perform tests (seems to be broken)
+%bcond_without javadoc # perform tests (seems to be broken)
+#
+%if "%{pld_release}" == "ti"
+%bcond_without java_sun # build with gcj
+%else
+%bcond_with java_sun # build with java-sun
+%endif
#
%include /usr/lib/rpm/macros.java
+#
+%define srcname httpunit
Summary: Automated web site testing toolkit
Summary(pl.UTF-8): Zestaw narzędzi do automatycznego testowania serwisów WWW
-Name: httpunit
+Name: java-httpunit
Version: 1.6
Release: 1
Epoch: 0
License: MIT
-Group: Development
-Source0: http://dl.sourceforge.net/httpunit/%{name}-%{version}.zip
+Group: Libraries/Java
+Source0: http://dl.sourceforge.net/httpunit/%{srcname}-%{version}.zip
# Source0-md5: e94b53b9f4d7bdb706e4baac95b6e424
-Patch0: %{name}.build.patch
-Patch1: %{name}-JavaScript-NotAFunctionException.patch
-Patch2: %{name}-servlettest.patch
-Patch3: %{name}-java15.patch
+Patch0: %{srcname}.build.patch
+Patch1: %{srcname}-JavaScript-NotAFunctionException.patch
+Patch2: %{srcname}-servlettest.patch
+Patch3: %{srcname}-java15.patch
URL: http://httpunit.sourceforge.net/
BuildRequires: ant
BuildRequires: jaf >= 1.0.1
@@ -35,9 +44,9 @@
BuildRequires: rhino >= 1.5R4.1
# BuildRequires: servlet >= 2.3
BuildRequires: unzip
+Requires: java-junit >= 0:3.8
Requires: java-xerces >= 2.5
%{?with_jtidy:Requires: jtidy >= 1.0-0.20000804r7dev}
-Requires: junit >= 0:3.8
%{?without_jtidy:Requires: nekohtml >= 0.9.1}
Requires: rhino >= 1.5R4.1
# Requires: servlet >= 2.3
@@ -96,7 +105,7 @@
Pliki demonstracyjne i przykłady dla pakietu %{name}.
%prep
-%setup -q
+%setup -q -n %{srcname}-%{version}
%patch0 -p0
%patch1
%patch2
@@ -116,15 +125,13 @@
ln -s $(find-jar js) jars/js.jar
%ant \
- -Dbuild.compiler=extJavac \
jar \
testjar \
examplesjar \
- javadocs
+ %{?with_javadoc:javadocs}
%if %{with tests}
%ant \
- -Dbuild.compiler=extJavac \
test \
servlettest
%endif
@@ -133,13 +140,15 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_javadir}
-cp -a lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
-ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+cp -a lib/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+%if %{with javadoc}
# Javadoc
-install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -pr doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+%endif
# Avoid having api in manual
rm -rf manual
@@ -150,25 +159,27 @@
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_examplesdir}/%{name}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a lib/%{name}-test.jar \
- $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/%{name}-test-%{version}.jar
-cp -a lib/%{name}-examples.jar \
- $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/%{name}-examples-%{version}.jar
+cp -a lib/%{srcname}-test.jar \
+ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/%{srcname}-test-%{version}.jar
+cp -a lib/%{srcname}-examples.jar \
+ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/%{srcname}-examples-%{version}.jar
%clean
rm -rf $RPM_BUILD_ROOT
%post javadoc
-ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
%files
%defattr(644,root,root,755)
%{_javadir}/*
+%if %{with javadoc}
%files javadoc
%defattr(644,root,root,755)
-%{_javadocdir}/%{name}-%{version}
-%ghost %{_javadocdir}/%{name}
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+%if %{with javadoc}
%files manual
%defattr(644,root,root,755)
@@ -185,6 +196,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2009/04/03 15:48:55 pawelz
+- jdk bconds
+- java- prefix for name
+- G: Libraries/Java
+- not tested after spec rename
+
Revision 1.13 2009/02/27 18:29:13 pawelz
- better ant commandline
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/java-httpunit.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list