From e4e7d4db2c49196e55206b8d596b28c3032b4e714fad2c179e2c9d6b64366914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 1 Mar 2016 14:09:06 +0000 Subject: [PATCH] Accepting request 355551 from home:posophe:branches:Java:packages Fixed java doc OBS-URL: https://build.opensuse.org/request/show/355551 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-lang3?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + apache-commons-lang3.changes | 5 ++ apache-commons-lang3.spec | 97 ++++++++++++++++++++++++++++++++++++ commons-lang3-3.4-src.tar.gz | 3 ++ 5 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 apache-commons-lang3.changes create mode 100644 apache-commons-lang3.spec create mode 100644 commons-lang3-3.4-src.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apache-commons-lang3.changes b/apache-commons-lang3.changes new file mode 100644 index 0000000..0b4c5e2 --- /dev/null +++ b/apache-commons-lang3.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Jan 24 12:45:36 UTC 2016 - p.drouand@gmail.com + +- Initial release (version 3.4) + diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec new file mode 100644 index 0000000..d297705 --- /dev/null +++ b/apache-commons-lang3.spec @@ -0,0 +1,97 @@ +# +# spec file for package apache-commons-lang3 +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +%define base_name lang3 +%define short_name commons-%{base_name} +Name: apache-commons-lang3 +Version: 3.4 +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/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: java-devel >= 1.6.0 +BuildRequires: java-javadoc >= 1.6.0 +BuildRequires: javapackages-tools +BuildRequires: junit +Provides: %{short_name} = %{version}-%{release} +BuildArch: noarch + +%description +The standard Java libraries fail to provide enough methods for +manipulation of its core classes. The Commons Lang Component provides +these extra methods. + +The Commons Lang Component provides a host of helper utilities for the +java.lang API, notably String manipulation methods, basic numerical +methods, object reflection, creation and serialization, and System +properties. Additionally it contains an inheritable enum type, an +exception structure that supports multiple types of nested-Exceptions +and a series of utilities dedicated to help with building methods, such +as hashCode, toString and equals. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{short_name}-%{version}-src +sed -i 's/\r//' *.txt + +%build +export OPT_JAR_LIST=`cat %{_sysconfdir}/ant.d/junit` +export CLASSPATH= +ant \ + -Dcompile.source=1.7 -Dcompile.target=1.7 \ + -Dfinal.name=%{short_name} \ + -Djdk.javadoc=%{_javadocdir}/java \ + dist + +%install +# jars +mkdir -p %{buildroot}%{_javadir} +cp -p target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar +(cd %{buildroot}%{_javadir} && for jar in apache-*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) + +# pom +mkdir -p %{buildroot}%{_mavenpomdir} +cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap +# javadoc +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt +%{_javadir}/%{name}.jar +%{_javadir}/%{short_name}.jar +%{_mavenpomdir}/* +%{_datadir}/maven-metadata/%{name}.xml + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name} + +%changelog diff --git a/commons-lang3-3.4-src.tar.gz b/commons-lang3-3.4-src.tar.gz new file mode 100644 index 0000000..97197cd --- /dev/null +++ b/commons-lang3-3.4-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f9a16e264aec59e4c7148763223480171f756f020d7a30aa617caabd382fa76 +size 771275