- Kill javadoc to remove unresolvables.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-batik?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal 2013-09-12 19:08:51 +00:00 committed by Git OBS Bridge
parent 5c97e6398b
commit eebf5e4e06
2 changed files with 6 additions and 29 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 12 19:08:45 UTC 2013 - tchvatal@suse.com
- Kill javadoc to remove unresolvables.
-------------------------------------------------------------------
Mon Sep 9 11:06:29 UTC 2013 - tchvatal@suse.com

View File

@ -44,10 +44,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: java-javadoc
BuildRequires: jython
BuildRequires: rhino >= 1.5
BuildRequires: rhino-javadoc
BuildRequires: xerces-j2
BuildRequires: xml-commons-jaxp-1.3-apis >= 1.3.03
%if %defined suse_version
@ -129,15 +127,6 @@ Requires: xerces-j2 >= 2.3
%description slideshow
Batik SVG slideshow.
%package javadoc
Summary: Javadoc for %{name}
Group: Productivity/Graphics/Vector Editors
Obsoletes: batik-javadoc < %{version}-%{release}
Provides: batik-javadoc = %{version}-%{release}
%description javadoc
Javadoc for %{name}.
%package demo
Summary: Demo for %{name}
Group: Productivity/Graphics/Vector Editors
@ -159,7 +148,7 @@ rm test-resources/org/apache/batik/apps/rasterizer/readOnly.png
%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant} all-jar jars javadoc
%{ant} all-jar jars
%install
@ -199,16 +188,6 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-ttf2svg
cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}-rasterizer
cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/%{name}-slideshow
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr batik-%{version}/docs/javadoc/* \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} || :
# FIXME: (dwalluck): This breaks bi --short-circuit
rm -rf %{name}-%{version}/docs/javadoc
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/batik-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
ln -s %{name} $RPM_BUILD_ROOT%{_javadocdir}/batik
# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr contrib resources samples test-resources test-sources \
@ -317,13 +296,6 @@ rm -rf $RPM_BUILD_ROOT
%{_javadir}/batik-slideshow.jar
%attr(0755,root,root) %{_bindir}/%{name}-slideshow
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%{_javadocdir}/batik-%{version}
%{_javadocdir}/batik
%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}