- drop javadoc package

OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=5
This commit is contained in:
Michal Vyskocil 2013-08-23 11:39:19 +00:00 committed by Git OBS Bridge
parent 51c82694aa
commit c273d72e3b
2 changed files with 14 additions and 62 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 23 11:38:55 UTC 2013 - mvyskocil@suse.com
- drop javadoc package
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 8 12:03:08 UTC 2010 - mvyskocil@suse.cz Mon Nov 8 12:03:08 UTC 2010 - mvyskocil@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package servletapi5 (Version 5.0.18) # spec file for package servletapi5
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products 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
@ -15,11 +15,11 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: servletapi5 Name: servletapi5
BuildRequires: ant java-1_5_0-gcj-compat-devel xml-commons-apis-bootstrap BuildRequires: ant
BuildRequires: java-1_5_0-gcj-compat-devel
BuildRequires: xml-commons-apis-bootstrap
#!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis #!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis
#!BuildIgnore: xml-commons-jaxp-1.3-apis #!BuildIgnore: xml-commons-jaxp-1.3-apis
%define base_name servletapi %define base_name servletapi
@ -30,7 +30,7 @@ BuildRequires: ant java-1_5_0-gcj-compat-devel xml-commons-apis-bootstrap
%define release 1jpp %define release 1jpp
%define section free %define section free
Version: 5.0.18 Version: 5.0.18
Release: 268 Release: 0
Summary: Java servlet and JSP implementation classes Summary: Java servlet and JSP implementation classes
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -40,33 +40,14 @@ Url: http://jakarta.apache.org/tomcat/
Requires: /usr/sbin/update-alternatives Requires: /usr/sbin/update-alternatives
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Obsoletes: servlet4
#Obsoletes: servlet23
Provides: servlet Provides: servlet
Provides: servlet5
Provides: servlet24 Provides: servlet24
Provides: servlet5
%description %description
This subproject contains the source code for the implementation classes This subproject contains the source code for the implementation classes
of the Java Servlet and JSP APIs (packages javax.servlet). of the Java Servlet and JSP APIs (packages javax.servlet).
%package javadoc
License: Apache-2.0
Group: Development/Libraries/Java
Summary: Javadoc for servletapi5
PreReq: coreutils
%description javadoc
This subproject contains the source code for the implementation classes
of the Java Servlet and JSP APIs (packages javax.servlet).
This package contains the javadoc documentation for the Java Servlet
and JSP APIs.
%prep %prep
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%setup -q -c -T -a 0 -n %{full_name}-5-src %setup -q -c -T -a 0 -n %{full_name}-5-src
@ -79,11 +60,11 @@ cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5
find . -type f -name "*.jar" -exec rm -f {} \; find . -type f -name "*.jar" -exec rm -f {} \;
pushd . pushd .
cd jsr154 cd jsr154
ant dist -Dservletapi.build=build -Dservletapi.dist=dist ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
popd popd
pushd . pushd .
cd jsr152 cd jsr152
ant dist -Dservletapi.build=build -Dservletapi.dist=dist ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
popd popd
%install %install
@ -93,44 +74,10 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 jsr152/dist/lib/jsp-api.jar $RPM_BUILD_ROOT%{_javadir}/jspapi-%{version}.jar install -m 644 jsr152/dist/lib/jsp-api.jar $RPM_BUILD_ROOT%{_javadir}/jspapi-%{version}.jar
install -m 644 jsr154/dist/lib/servlet-api.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 jsr154/dist/lib/servlet-api.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# javadoc jsp
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/jsp-api-%{version}
cp -pr jsr152/build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/jsp-api-%{version}
ln -s jsp-api-%{version} $RPM_BUILD_ROOT%{_javadocdir}/jsp-api # ghost symlink
# javadoc servlet
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr jsr154/build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%clean
rm -rf $RPM_BUILD_ROOT
%post
#update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 50
#update-alternatives --install %{_javadir}/jsp.jar jsp %{_javadir}/jsp-api-%{version}.jar 50
%postun
#if [ "$1" = "0" ]; then
# update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar
# update-alternatives --remove jsp %{_javadir}/jsp-api-%{version}.jar
#fi
%post javadoc
rm -f %{_javadocdir}/%{name}
rm -f %{_javadocdir}/jsp-api
ln -s %{name}-%{version} %{_javadocdir}/%{name}
ln -s jsp-api-%{version} %{_javadocdir}/jsp-api
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE %doc LICENSE
%{_javadir}/* %{_javadir}/*
%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/jsp-api-%{version}
%ghost %doc %{_javadocdir}/%{name}
%ghost %doc %{_javadocdir}/jsp-api
%changelog %changelog