2007-01-16 00:36:46 +01:00
|
|
|
#
|
2013-08-23 13:39:19 +02:00
|
|
|
# spec file for package servletapi5
|
2007-01-16 00:36:46 +01:00
|
|
|
#
|
2014-07-21 12:39:20 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:46 +01:00
|
|
|
#
|
2009-06-18 17:51:52 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:36:46 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-07-28 15:55:47 +02:00
|
|
|
|
2007-01-16 00:36:46 +01:00
|
|
|
%define base_name servletapi
|
|
|
|
%define full_name jakarta-%{base_name}
|
2014-07-21 12:39:20 +02:00
|
|
|
Name: servletapi5
|
2007-01-16 00:36:46 +01:00
|
|
|
Version: 5.0.18
|
2013-08-23 13:39:19 +02:00
|
|
|
Release: 0
|
2007-01-16 00:36:46 +01:00
|
|
|
Summary: Java servlet and JSP implementation classes
|
2011-12-06 19:03:41 +01:00
|
|
|
License: Apache-2.0
|
2007-01-16 00:36:46 +01:00
|
|
|
Group: Development/Libraries/Java
|
2014-07-21 12:39:20 +02:00
|
|
|
Url: http://jakarta.apache.org/tomcat/
|
2007-01-16 00:36:46 +01:00
|
|
|
Source: %{full_name}-5-src.tar.gz
|
|
|
|
Patch150: java150_build.patch
|
2014-07-21 12:39:20 +02:00
|
|
|
#!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis
|
|
|
|
#!BuildIgnore: xml-commons-jaxp-1.3-apis
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
|
|
|
BuildRequires: xml-commons-apis-bootstrap
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Provides: servlet = %{version}
|
|
|
|
Provides: servlet24 = %{version}
|
|
|
|
Provides: servlet5 = %{version}
|
2007-01-16 00:36:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-07-21 12:39:20 +02:00
|
|
|
BuildArch: noarch
|
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).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%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
|
2013-08-23 13:39:19 +02:00
|
|
|
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
|
2014-07-21 12:39:20 +02:00
|
|
|
popd
|
2007-01-16 00:36:46 +01:00
|
|
|
pushd .
|
|
|
|
cd jsr152
|
2013-08-23 13:39:19 +02:00
|
|
|
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
|
2007-01-16 00:36:46 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5
|
|
|
|
# jars
|
2014-07-21 12:39:20 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 jsr152/dist/lib/jsp-api.jar %{buildroot}%{_javadir}/jspapi-%{version}.jar
|
|
|
|
install -m 644 jsr154/dist/lib/servlet-api.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
# alternatives
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
2014-07-28 08:50:37 +02:00
|
|
|
ln -sf %{_sysconfdir}/alternatives/servlet.jar %{buildroot}%{_javadir}/servlet.jar
|
2014-07-21 12:39:20 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 50
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar
|
|
|
|
fi
|
2007-01-16 00:36:46 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_javadir}/*
|
2014-07-21 12:39:20 +02:00
|
|
|
%{_javadir}/servlet.jar
|
|
|
|
%ghost %{_sysconfdir}/alternatives/servlet.jar
|
2007-01-16 00:36:46 +01:00
|
|
|
|
2008-07-28 15:55:47 +02:00
|
|
|
%changelog
|