Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

4 commits

Author SHA1 Message Date
Mikolaj Izdebski
32f1c7783c Disable javadoc package 2019-06-28 08:28:48 +02:00
Mikolaj Izdebski
c3b1e9cece Mass rebuild for javapackages-tools 201901 2019-05-24 17:00:18 +02:00
Mikolaj Izdebski
e6d4e7d9fa Remove Group tags 2018-11-29 12:48:42 +00:00
Mikolaj Izdebski
d2f2bbb586 Switch to SHA512 sources 2018-11-29 12:06:43 +00:00
2 changed files with 24 additions and 35 deletions

View file

@ -1,21 +1,18 @@
%global base_name lang
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Name: apache-commons-lang
Version: 2.6
Release: 21%{?dist}
Release: 23%{?dist}
Summary: Provides a host of helper utilities for the java.lang API
License: ASL 2.0
Group: Development/Libraries
URL: http://commons.apache.org/%{base_name}
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
URL: http://commons.apache.org/lang
BuildArch: noarch
Source0: http://archive.apache.org/dist/commons/lang/source/commons-lang-%{version}-src.tar.gz
Patch1: 0002-Fix-FastDateFormat-for-Java-7-behaviour.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: apache-commons-parent
BuildRequires: maven-surefire-provider-junit
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
%description
The standard Java libraries fail to provide enough methods for
@ -29,41 +26,33 @@ 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: API documentation for %{name}
Group: Documentation
%description javadoc
%{summary}.
%prep
%setup -q -n %{short_name}-%{version}-src
%setup -q -n commons-lang-%{version}-src
%patch1 -p1
sed -i 's/\r//' *.txt *.html
# "enum" is used as a Java identifier, which is prohibited in Java >= 1.5
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "
<configuration><source>1.3</source></configuration>"
%mvn_file : %{name} %{short_name}
%mvn_alias : org.apache.commons: %{base_name}:%{base_name}
# this package needs to be compiled with -source 1.3 option
%mvn_config buildSettings/compilerSource 1.3
%mvn_file : %{name} commons-lang
%mvn_alias : org.apache.commons: lang:lang
%build
%mvn_build
# "enum" is used as a Java identifier, which is prohibited in Java >= 1.5
# Likewise, javadoc fails to generate due to "enum"
%mvn_build -j -- -Dmaven.compiler.source=1.3 -Dmaven.compiler.target=1.3
%install
%mvn_install
%files -f .mfiles
%doc PROPOSAL.html LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%license LICENSE.txt NOTICE.txt
%doc PROPOSAL.html RELEASE-NOTES.txt
%changelog
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-23
- Disable javadoc package
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6-22
- Mass rebuild for javapackages-tools 201901
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View file

@ -1 +1 @@
37ee469f4caff6cfa28f9d0a0be2d4d2 commons-lang-2.6-src.tar.gz
SHA512 (commons-lang-2.6-src.tar.gz) = 4a30ed153f93fe6616a28974721bdf005d064203ef8a3dd375d6c1176647c0cdbd29cfde2a580e2c8d26bfa4655be6be7025b8ccae94086dcd816676c5cf8e87