2007-01-16 00:36:46 +01:00
|
|
|
#
|
|
|
|
# spec file for package servletapi5 (Version 5.0.18)
|
|
|
|
#
|
2008-07-28 15:55:47 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:46 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-07-28 15:55:47 +02:00
|
|
|
|
2007-01-16 00:36:46 +01:00
|
|
|
Name: servletapi5
|
2008-07-28 15:55:47 +02:00
|
|
|
BuildRequires: ant java-1_5_0-gcj-compat-devel xml-commons-apis-bootstrap
|
2008-07-30 00:45:54 +02:00
|
|
|
#!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis
|
2007-01-16 00:36:46 +01:00
|
|
|
%define base_name servletapi
|
|
|
|
%define major_version 5
|
|
|
|
%define name %{base_name}%{major_version}
|
|
|
|
%define full_name jakarta-%{base_name}
|
|
|
|
%define version 5.0.18
|
|
|
|
%define release 1jpp
|
|
|
|
%define section free
|
|
|
|
Version: 5.0.18
|
2008-07-30 00:45:54 +02:00
|
|
|
Release: 238
|
2007-01-16 00:36:46 +01:00
|
|
|
Summary: Java servlet and JSP implementation classes
|
2008-07-28 15:55:47 +02:00
|
|
|
License: The Apache Software License
|
2007-01-16 00:36:46 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Source: %{full_name}-5-src.tar.gz
|
|
|
|
Patch150: java150_build.patch
|
2008-07-28 15:55:47 +02:00
|
|
|
Url: http://jakarta.apache.org/tomcat/
|
2007-01-16 00:36:46 +01:00
|
|
|
Requires: /usr/sbin/update-alternatives
|
2008-07-28 15:55:47 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:36:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#Obsoletes: servlet4
|
|
|
|
#Obsoletes: servlet23
|
|
|
|
Provides: servlet
|
2008-07-28 15:55:47 +02:00
|
|
|
Provides: servlet5
|
|
|
|
Provides: servlet24
|
2007-01-16 00:36:46 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This subproject contains the source code for the implementation classes
|
|
|
|
of the Java Servlet and JSP APIs (packages javax.servlet).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
2008-07-28 15:55:47 +02:00
|
|
|
License: The Apache Software License
|
2007-01-16 00:36:46 +01:00
|
|
|
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
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%setup -q -c -T -a 0 -n %{full_name}-5-src
|
|
|
|
%patch150
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Fix us a license file first
|
|
|
|
cp -f jakarta-tomcat-%{version}-src/jakarta-servletapi-5/jsr154/LICENSE .
|
|
|
|
cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5
|
|
|
|
find . -type f -name "*.jar" -exec rm -f {} \;
|
|
|
|
pushd .
|
|
|
|
cd jsr154
|
|
|
|
ant dist -Dservletapi.build=build -Dservletapi.dist=dist
|
|
|
|
popd
|
|
|
|
pushd .
|
|
|
|
cd jsr152
|
|
|
|
ant dist -Dservletapi.build=build -Dservletapi.dist=dist
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5
|
|
|
|
# jars
|
|
|
|
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 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)
|
|
|
|
# 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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_javadocdir}/%{name}-%{version}
|
|
|
|
%doc %{_javadocdir}/jsp-api-%{version}
|
|
|
|
%ghost %doc %{_javadocdir}/%{name}
|
|
|
|
%ghost %doc %{_javadocdir}/jsp-api
|
|
|
|
|
2008-07-28 15:55:47 +02:00
|
|
|
%changelog
|
|
|
|
* Mon Jul 28 2008 coolo@suse.de
|
2008-07-30 00:45:54 +02:00
|
|
|
- yet another package to ignore
|
|
|
|
* Mon Jul 28 2008 coolo@suse.de
|
2008-07-28 15:55:47 +02:00
|
|
|
- build without openjdk to avoid cycle
|
|
|
|
* Mon Sep 25 2006 dbornkessel@suse.de
|
2007-01-16 00:36:46 +01:00
|
|
|
- java150 fixes: added target="1.4" and source="1.4"
|
2008-07-28 15:55:47 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:36:46 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-07-28 15:55:47 +02:00
|
|
|
* Thu Sep 29 2005 dmueller@suse.de
|
2007-01-16 00:36:46 +01:00
|
|
|
- add norootforbuild
|
2008-07-28 15:55:47 +02:00
|
|
|
* Thu Sep 16 2004 skh@suse.de
|
2007-01-16 00:36:46 +01:00
|
|
|
- Fix prerequires of javadoc subpackage
|
2008-07-28 15:55:47 +02:00
|
|
|
* Thu Sep 02 2004 skh@suse.de
|
2007-01-16 00:36:46 +01:00
|
|
|
- Initial package created with version 5.0.18 (JPackage 1.5)
|