OBS User unknown 2007-01-15 23:36:46 +00:00 committed by Git OBS Bridge
commit 1270c496e4
7 changed files with 182 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

BIN
jakarta-servletapi-4-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

20
java150_build.patch Normal file
View File

@ -0,0 +1,20 @@
Index: jakarta-servletapi-4-src/build.xml
===================================================================
--- jakarta-servletapi-4-src.orig/build.xml
+++ jakarta-servletapi-4-src/build.xml
@@ -58,6 +58,7 @@
<!-- Java classes -->
<javac srcdir="src/share" destdir="${servletapi.build}/classes"
+ source="1.4" target="1.4"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"/>
@@ -90,6 +91,7 @@
<target name="javadoc" depends="prepare">
<javadoc packagenames="javax.servlet.*"
+ source="1.4"
sourcepath="${basedir}/src/share"
destdir="${servletapi.build}/docs/api"
use="true"

0
ready Normal file
View File

27
servletapi4.changes Normal file
View File

@ -0,0 +1,27 @@
-------------------------------------------------------------------
Mon Sep 25 16:34:45 CEST 2006 - dbornkessel@suse.de
- fixes necessary to compile with Java 1.5.0
- set source="1.4" and target="1.4" for ant "javac" tasks
- set source="1.4" for ant "javadoc" tasks
-------------------------------------------------------------------
Wed Jan 25 21:47:49 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Sep 29 02:44:41 CEST 2005 - dmueller@suse.de
- add norootforbuild
-------------------------------------------------------------------
Thu Sep 16 20:07:19 CEST 2004 - skh@suse.de
- Fix prerequires
-------------------------------------------------------------------
Thu Sep 2 17:05:19 CEST 2004 - skh@suse.de
- Initial package created with version 4.0.4 (JPackage 1.5)

108
servletapi4.spec Normal file
View File

@ -0,0 +1,108 @@
#
# spec file for package servletapi4 (Version 4.0.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
Name: servletapi4
BuildRequires: ant java2-devel-packages xml-commons-apis
%define base_name servletapi
%define major_version 4
%define name %{base_name}%{major_version}
%define full_name jakarta-%{base_name}
%define version 4.0.4
%define release 3jpp
%define section free
Version: 4.0.4
Release: 24
Summary: Java servlet and JSP implementation classes
License: Apache
Group: Development/Libraries/Java
Source: %{full_name}-4-src.tar.gz
Patch150: java150_build.patch
URL: http://jakarta.apache.org/tomcat/
Provides: servlet
PreReq: /usr/sbin/update-alternatives
Buildrequires: ant >= 1.2
Buildrequires: jpackage-utils > 1.4
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: servlet4
Obsoletes: servlet23
Provides: servlet4
Provides: servlet23
%description
This subproject contains the source code for the implementation classes
of the Java Servlet and JSP APIs (packages javax.servlet).
%package javadoc
Group: Development/Libraries/Java
Summary: Javadoc for servletapi4
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 -n %{full_name}-4-src
%patch150 -p1
%build
ant dist -Dservletapi.build=build -Dservletapi.dist=dist
%install
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/lib/servlet.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
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 40
%postun
if [ "$1" = "0" ]; then
update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar
fi
%files
%defattr(-,root,root)
%doc LICENSE README.txt
%{_javadir}/*
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}
%changelog -n servletapi4
* Mon Sep 25 2006 - dbornkessel@suse.de
- fixes necessary to compile with Java 1.5.0
- set source="1.4" and target="1.4" for ant "javac" tasks
- set source="1.4" for ant "javadoc" tasks
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 - dmueller@suse.de
- add norootforbuild
* Thu Sep 16 2004 - skh@suse.de
- Fix prerequires
* Thu Sep 02 2004 - skh@suse.de
- Initial package created with version 4.0.4 (JPackage 1.5)