From 5f1032a71f84375fc1927a2b483ddedc9da7198b59c8922f708ae6987fa30bd7 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 22 Oct 2018 10:28:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-lang3?expand=0&rev=12 --- apache-commons-lang3.changes | 9 ++ apache-commons-lang3.spec | 10 +- build.xml | 230 ++++++++++++++++++++++++++++++++ commons-lang3-3.4-javadoc.patch | 12 -- commons-lang3-3.4-src.tar.gz | 3 - commons-lang3-3.5-src.tar.gz | 3 + default.properties | 90 +++++++++++++ 7 files changed, 338 insertions(+), 19 deletions(-) create mode 100644 build.xml delete mode 100644 commons-lang3-3.4-javadoc.patch delete mode 100644 commons-lang3-3.4-src.tar.gz create mode 100644 commons-lang3-3.5-src.tar.gz create mode 100644 default.properties diff --git a/apache-commons-lang3.changes b/apache-commons-lang3.changes index dc0b654..532133d 100644 --- a/apache-commons-lang3.changes +++ b/apache-commons-lang3.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Oct 22 10:24:43 UTC 2018 - Fridrich Strba + +- Build commons-lang3-3.5 using build.xml and default.properties + from 3.4 and modified. +- Removed patch: + * commons-lang3-3.4-javadoc.patch + - integrated in the build.xml + ------------------------------------------------------------------- Wed May 2 12:22:44 UTC 2018 - tchvatal@suse.com diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec index 2667810..7e78ae7 100644 --- a/apache-commons-lang3.spec +++ b/apache-commons-lang3.spec @@ -12,21 +12,22 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define base_name lang3 %define short_name commons-%{base_name} Name: apache-commons-lang3 -Version: 3.4 +Version: 3.5 Release: 0 Summary: Apache Commons Lang Package License: Apache-2.0 Group: Development/Libraries/Java URL: http://commons.apache.org/%{base_name} Source0: http://archive.apache.org/dist/commons/lang/source/%{short_name}-%{version}-src.tar.gz -Patch0: commons-lang3-3.4-javadoc.patch +Source1: build.xml +Source2: default.properties BuildRequires: ant BuildRequires: ant-junit BuildRequires: fdupes @@ -59,7 +60,8 @@ Javadoc for %{name}. %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p1 +cp %{SOURCE1} . +cp %{SOURCE2} . sed -i 's/\r//' *.txt %build diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..236d1d5 --- /dev/null +++ b/build.xml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/commons-lang3-3.4-javadoc.patch b/commons-lang3-3.4-javadoc.patch deleted file mode 100644 index 7a481f4..0000000 --- a/commons-lang3-3.4-javadoc.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- commons-lang3-3.4-src/build.xml 2015-04-03 14:28:37.000000000 +0200 -+++ commons-lang3-3.4-src/build.xml 2017-10-09 08:38:44.281345802 +0200 -@@ -123,9 +123,6 @@ - use="true" - encoding="${compile.encoding}" - source="${compile.source}"> -- -- -- - - - diff --git a/commons-lang3-3.4-src.tar.gz b/commons-lang3-3.4-src.tar.gz deleted file mode 100644 index 97197cd..0000000 --- a/commons-lang3-3.4-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f9a16e264aec59e4c7148763223480171f756f020d7a30aa617caabd382fa76 -size 771275 diff --git a/commons-lang3-3.5-src.tar.gz b/commons-lang3-3.5-src.tar.gz new file mode 100644 index 0000000..34b91db --- /dev/null +++ b/commons-lang3-3.5-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:759bbde7b5f5ad31fd0afa8ac3148f8f98b8a32372e7ed8b68c61f5b07a37cb1 +size 829973 diff --git a/default.properties b/default.properties new file mode 100644 index 0000000..ad69f06 --- /dev/null +++ b/default.properties @@ -0,0 +1,90 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# $Id: default.properties 1671054 2015-04-03 12:28:16Z britter $ + +# The location of the "junit.jar" JAR file +junit.jar = ${junit.home}/junit-4.12.jar + +# The location of the Easymock jar +easymock.jar = ${easymock.home}/easymock-3.3.1.jar + +# The location of the Commons-IO jar +commons-io.jar = ${commons-io.home}/commons-io-2.4.jar + +# The location of Hamcrest jar +hamcrest.jar = ${hamcrest.home}/hamcrest-all-1.3.jar + +# Whether or not to fork tests +junit.fork = true + +# The name of this component +component.name = commons-lang3 + +# The primary package name of this component +component.package = org.apache.commons.lang3 + +# The title of this component +component.title = Core Language Utilities + +# The current version number of this component +component.version = 3.5 + +# The name that is used to create the jar file +final.name = ${component.name}-${component.version} + +# The base directory for compilation targets +build.home = target + +# The base directory for component configuration files +conf.home = src/conf + +# The base directory for component sources +source.home = src/main/java + +# The base directory for unit test sources +test.home = src/test/java + +# Should Java compilations set the 'debug' compiler option? +compile.debug = true + +# Should Java compilations set the 'deprecation' compiler option? +compile.deprecation = true + +# Should Java compilations set the 'optimize' compiler option? +compile.optimize = true + +# Generate class files for specific VM version (e.g., 1.1 or 1.2). +# Note that the default value depends on the JVM that is running Ant. +# In particular, if you use JDK 1.4+ the generated classes will not be usable +# for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1 +# (which is the default value for JDK 1.1 to 1.3). +compile.target = 1.6 + +# Specifies the source version for the Java compiler. +# Corresponds to the source attribute for the ant javac task. +# Valid values are 1.3, 1.4, 1.5. +compile.source = 1.6 + +# Specifies the source encoding. +compile.encoding = ISO-8859-1 + +# Should all tests fail if one does? +test.failonerror = true + +# The test runner to execute +test.runner = junit.textui.TestRunner