This commit is contained in:
parent
73083c9eac
commit
9f47b57c88
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 15 10:41:03 UTC 2018 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Build with source and target 8 to prepare for a possible removal
|
||||||
|
of 1.6 compatibility in OpenJDK 11
|
||||||
|
- Run fdupes on documentation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 14 11:39:40 UTC 2017 - fstrba@suse.com
|
Thu Sep 14 11:39:40 UTC 2017 - fstrba@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache-commons-io
|
# spec file for package apache-commons-io
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -29,11 +29,13 @@ Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{sho
|
|||||||
#PATCH-FIX-OPENSUSE: fix the version property to 2.4
|
#PATCH-FIX-OPENSUSE: fix the version property to 2.4
|
||||||
Patch0: commons-io-version-property.patch
|
Patch0: commons-io-version-property.patch
|
||||||
BuildRequires: ant >= 1.6
|
BuildRequires: ant >= 1.6
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
Provides: %{short_name} = %{version}-%{release}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} <= %{version}
|
Obsoletes: jakarta-%{short_name} < %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -59,7 +61,7 @@ sed -i -e 's/.$//' *.txt
|
|||||||
export OPT_JAR_LIST="junit"
|
export OPT_JAR_LIST="junit"
|
||||||
export CLASSPATH=
|
export CLASSPATH=
|
||||||
CLASSPATH=target/classes:target/test-classes:$CLASSPATH
|
CLASSPATH=target/classes:target/test-classes:$CLASSPATH
|
||||||
ant -Dcompile.source=1.6 -Dcompile.target=1.6 \
|
ant -Dcompile.source=8 -Dcompile.target=8 \
|
||||||
-Dbuild.sysclasspath=only \
|
-Dbuild.sysclasspath=only \
|
||||||
dist
|
dist
|
||||||
|
|
||||||
@ -79,6 +81,7 @@ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
|||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user