SHA256
1
0
forked from pool/bea-stax

Accepting request 195996 from Java:packages

- don't build javadoc

OBS-URL: https://build.opensuse.org/request/show/195996
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bea-stax?expand=0&rev=19
This commit is contained in:
Tomáš Chvátal 2013-08-23 09:05:51 +00:00 committed by Git OBS Bridge
commit e1ebc34ff7
2 changed files with 6 additions and 54 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 22 12:29:06 UTC 2013 - mvyskocil@suse.com
- don't build javadoc
-------------------------------------------------------------------
Mon Jan 7 12:17:30 UTC 2013 - mvyskocil@suse.com

View File

@ -68,27 +68,6 @@ Streaming API for XML
%{summary}
%package javadoc
Summary: Javadoc for bea-stax
Group: Development/Libraries/Java
%description javadoc
Streaming API for XML
%{summary}
#%package manual
#Summary: Documents for %{name}
#Group: Development/Documentation
#%description manual
#%{summary}
#%package demo
#Summary: Examples for %{name}
#Group: Development/Documentation
#%description demo
#%{summary}
%prep
%setup -q -c -n %{name}-%{version}
%patch0 -b .target15
@ -98,7 +77,7 @@ Streaming API for XML
%patch2 -b .gcj-build
%build
ant all javadoc
ant all
%install
# jar
@ -107,27 +86,6 @@ install -p -m 0644 build/stax-api-1.0.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-api
install -p -m 0644 build/stax-1.2.0_rc1-dev.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ri-%{version}.jar
ln -s %{name}-api-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-api.jar
ln -s %{name}-ri-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ri.jar
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
# demo
#install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
#cp -pr examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
# manual
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
#cp docs/license/BEA*.doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
#cp README.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
#cp jsr173_1.0.pdf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -sf %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%files
%defattr(-,root,root,-)
@ -142,15 +100,4 @@ fi
%{_javadir}/%{name}-api-%{version}.jar
%{_javadir}/%{name}-api.jar
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
#%files manual
#%defattr(0644,root,root,0755)
#%{_docdir}/%{name}-%{version}/jsr173_1.0.pdf
#%files demo
#%defattr(0644,root,root,0755)
#%{_datadir}/%{name}-%{version}
%changelog