From e72da7b683cd2777402043b1c5a2e7ee4569e8f03c02ad5f4c1b7f3b00e42654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 7 Jul 2014 14:49:24 +0000 Subject: [PATCH] - Do not depend on junit4 but use junit OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-collections?expand=0&rev=9 --- apache-commons-collections.changes | 5 ++++ apache-commons-collections.spec | 38 +++++++++++------------------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/apache-commons-collections.changes b/apache-commons-collections.changes index b767198..ec8b64d 100644 --- a/apache-commons-collections.changes +++ b/apache-commons-collections.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 7 14:48:57 UTC 2014 - tchvatal@suse.com + +- Do not depend on junit4 but use junit + ------------------------------------------------------------------- Thu May 15 13:17:17 UTC 2014 - darin@darins.net diff --git a/apache-commons-collections.spec b/apache-commons-collections.spec index ad937e4..7ca315e 100644 --- a/apache-commons-collections.spec +++ b/apache-commons-collections.spec @@ -14,12 +14,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# icecream 0 %define base_name collections %define short_name commons-%{base_name} - Name: apache-commons-collections Version: 3.2.1 Release: 0 @@ -31,24 +29,18 @@ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_n Source1: commons-collections-testframework.pom Patch0: jakarta-commons-collections-javadoc-nonet.patch Patch1: commons-collections-3.2-build_xml.patch - BuildRequires: ant BuildRequires: ant-junit BuildRequires: apache-commons-parent -BuildRequires: javapackages-tools -#BuildRequires: xml-commons-jaxp-1.3-apis BuildRequires: java-devel -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build - +BuildRequires: javapackages-tools +BuildRequires: junit Provides: %{short_name} = %{version}-%{release} Obsoletes: %{short_name} = 3.2 Provides: jakarta-%{short_name} = %{version}-%{release} Obsoletes: jakarta-%{short_name} = 3.2 - -Requires(pre): coreutils -Requires(post): javapackages-tools -Requires(postun): javapackages-tools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch %description The introduction of the Collections API by Sun in JDK 1.2 @@ -98,14 +90,14 @@ find . -name "*.jar" -exec rm -f {} \; find . -name "*.class" -exec rm -f {} \; %patch0 -p1 -%patch1 -p0 +%patch1 # Fix file eof -%{__sed} -i 's/\r//' LICENSE.txt -%{__sed} -i 's/\r//' PROPOSAL.html -%{__sed} -i 's/\r//' RELEASE-NOTES.html -%{__sed} -i 's/\r//' README.txt -%{__sed} -i 's/\r//' NOTICE.txt +sed -i 's/\r//' LICENSE.txt +sed -i 's/\r//' PROPOSAL.html +sed -i 's/\r//' RELEASE-NOTES.html +sed -i 's/\r//' README.txt +sed -i 's/\r//' NOTICE.txt # Substitute version into testframework pom cp -p %{SOURCE1} pom-testframework.xml @@ -118,14 +110,12 @@ sed -i 's/@VERSION@/%{version}/' pom-testframework.xml #FIXME: the test fails on ppc with openjdk b11 # See bnc#441085 #ant -Djava.io.tmpdir=. dist tf.javadoc -export CLASSPATH=$(build-classpath junit4) -ant -Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc +export CLASSPATH=$(build-classpath junit) +ant \ + -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \ + -Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc %install -%if 0%{?suse_version} == 1110 -export NO_BRP_CHECK_BYTECODE_VERSION=true -%endif - # jars install -d -m 755 %{buildroot}%{_javadir} install -m 644 build/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar