This commit is contained in:
parent
7c8c5b1b51
commit
7f838f6536
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 15 06:21:41 UTC 2018 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Modified patch:
|
||||||
|
* commons-cli-1.2-jdk9.patch
|
||||||
|
+ Build with source and target 8 to prepare for a possible
|
||||||
|
removal of 1.6 compatibility in OpenJDK 11
|
||||||
|
- Run fdupes on the documentation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 29 06:41:14 UTC 2017 - fstrba@suse.com
|
Fri Sep 29 06:41:14 UTC 2017 - fstrba@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache-commons-cli
|
# spec file for package apache-commons-cli
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -31,9 +31,11 @@ Patch0: commons-cli-1.2-jdk9.patch
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
Requires: java >= 1.6.0
|
Requires: java >= 1.8
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} < %{version}
|
Obsoletes: jakarta-%{short_name} < %{version}
|
||||||
Provides: apache-cli = %{version}
|
Provides: apache-cli = %{version}
|
||||||
@ -80,6 +82,7 @@ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
|||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
commons.manifestfile=target/osgi/MANIFEST.MF
|
commons.manifestfile=target/osgi/MANIFEST.MF
|
||||||
maven.settings.offline=true
|
maven.settings.offline=true
|
||||||
-maven.compile.target=1.4
|
-maven.compile.target=1.4
|
||||||
+maven.compile.target=1.6
|
+maven.compile.target=8
|
||||||
maven.build.finalName=commons-cli-1.2
|
maven.build.finalName=commons-cli-1.2
|
||||||
commons.release.name=commons-cli-1.2
|
commons.release.name=commons-cli-1.2
|
||||||
maven.build.resourceDir.0=.
|
maven.build.resourceDir.0=.
|
||||||
@ -14,7 +14,7 @@
|
|||||||
commons.encoding=iso-8859-1
|
commons.encoding=iso-8859-1
|
||||||
commons.osgi.symbolicName=org.apache.commons.cli
|
commons.osgi.symbolicName=org.apache.commons.cli
|
||||||
-maven.compile.source=1.4
|
-maven.compile.source=1.4
|
||||||
+maven.compile.source=1.6
|
+maven.compile.source=8
|
||||||
organization.logo=http\://www.apache.org/images/asf_logo_wide.gif
|
organization.logo=http\://www.apache.org/images/asf_logo_wide.gif
|
||||||
commons.osgi.dynamicImport=
|
commons.osgi.dynamicImport=
|
||||||
maven.build.testDir.0=src/test
|
maven.build.testDir.0=src/test
|
||||||
@ -25,11 +25,11 @@
|
|||||||
optimize="false"
|
optimize="false"
|
||||||
deprecation="true"
|
deprecation="true"
|
||||||
- target="1.4"
|
- target="1.4"
|
||||||
+ target="1.6"
|
+ target="8"
|
||||||
verbose="false"
|
verbose="false"
|
||||||
fork="false"
|
fork="false"
|
||||||
- source="1.4">
|
- source="1.4">
|
||||||
+ source="1.6">
|
+ source="8">
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="${maven.build.srcDir.0}"/>
|
<pathelement location="${maven.build.srcDir.0}"/>
|
||||||
</src>
|
</src>
|
||||||
@ -38,11 +38,11 @@
|
|||||||
optimize="false"
|
optimize="false"
|
||||||
deprecation="true"
|
deprecation="true"
|
||||||
- target="1.4"
|
- target="1.4"
|
||||||
+ target="1.6"
|
+ target="8"
|
||||||
verbose="false"
|
verbose="false"
|
||||||
fork="false"
|
fork="false"
|
||||||
- source="1.4">
|
- source="1.4">
|
||||||
+ source="1.6">
|
+ source="8">
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="${maven.build.testDir.0}"/>
|
<pathelement location="${maven.build.testDir.0}"/>
|
||||||
</src>
|
</src>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
serialwarn="false"
|
serialwarn="false"
|
||||||
charset="ISO-8859-1"
|
charset="ISO-8859-1"
|
||||||
- source="1.4"
|
- source="1.4"
|
||||||
+ source="1.6"
|
+ source="8"
|
||||||
linksource="true"
|
linksource="true"
|
||||||
breakiterator="false">
|
breakiterator="false">
|
||||||
<link href="http://java.sun.com/javase/6/docs/api/"/>
|
<link href="http://java.sun.com/javase/6/docs/api/"/>
|
||||||
@ -63,8 +63,8 @@
|
|||||||
<properties>
|
<properties>
|
||||||
- <maven.compile.source>1.4</maven.compile.source>
|
- <maven.compile.source>1.4</maven.compile.source>
|
||||||
- <maven.compile.target>1.4</maven.compile.target>
|
- <maven.compile.target>1.4</maven.compile.target>
|
||||||
+ <maven.compile.source>1.6</maven.compile.source>
|
+ <maven.compile.source>8</maven.compile.source>
|
||||||
+ <maven.compile.target>1.6</maven.compile.target>
|
+ <maven.compile.target>8</maven.compile.target>
|
||||||
<commons.componentid>cli</commons.componentid>
|
<commons.componentid>cli</commons.componentid>
|
||||||
<commons.release.version>1.2</commons.release.version>
|
<commons.release.version>1.2</commons.release.version>
|
||||||
<commons.release.name>commons-cli-${commons.release.version}</commons.release.name>
|
<commons.release.name>commons-cli-${commons.release.version}</commons.release.name>
|
||||||
|
Loading…
Reference in New Issue
Block a user