Fix build with jdk9
OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=31
This commit is contained in:
parent
26dd379a63
commit
f25f340599
@ -1,7 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 19 07:32:15 UTC 2017 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Fix build with jdk9: specify java source and target level 1.6
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 19 11:03:58 UTC 2017 - vsistek@suse.com
|
Fri May 19 11:03:58 UTC 2017 - vsistek@suse.com
|
||||||
|
|
||||||
- Add BuildRequires: javapackages-local (for maven conversions)
|
- Add BuildRequires: javapackages-local (for maven conversions)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 20 15:20:21 UTC 2017 - sknorr@suse.com
|
Mon Mar 20 15:20:21 UTC 2017 - sknorr@suse.com
|
||||||
|
@ -30,6 +30,7 @@ BuildRequires: ant >= 1.6.5
|
|||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
BuildRequires: apache-commons-io >= 1.1
|
BuildRequires: apache-commons-io >= 1.1
|
||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gpg2
|
BuildRequires: gpg2
|
||||||
# Needed for maven conversions
|
# Needed for maven conversions
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
@ -54,8 +55,7 @@ Summary: Javadoc for %{name}
|
|||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
|
Javadoc for package %{name}.
|
||||||
%{summary}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q %{name}-%{version}
|
%setup -q %{name}-%{version}
|
||||||
@ -69,7 +69,7 @@ pushd lib
|
|||||||
ln -sf $(build-classpath commons-io) .
|
ln -sf $(build-classpath commons-io) .
|
||||||
ln -sf $(build-classpath commons-logging) .
|
ln -sf $(build-classpath commons-logging) .
|
||||||
popd
|
popd
|
||||||
ant package javadocs maven-artifacts
|
ant -Djavac.source=1.6 -Djavac.target=1.6 package javadocs maven-artifacts
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dpm 644 build/%{name}-%{version}.jar \
|
install -Dpm 644 build/%{name}-%{version}.jar \
|
||||||
@ -83,11 +83,11 @@ install -pm 644 build/maven/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|||||||
|
|
||||||
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
#
|
#
|
||||||
install -dm 755 %{buildroot}%{_docdir}/%{name}
|
install -dm 755 %{buildroot}%{_docdir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
@ -98,7 +98,6 @@ install -dm 755 %{buildroot}%{_docdir}/%{name}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user