SPECS: classpathx_servlet.spec (NEW) - new package

glen glen at pld-linux.org
Sun Dec 9 01:22:06 CET 2007


Author: glen                         Date: Sun Dec  9 00:22:06 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new package

---- Files affected:
SPECS:
   classpathx_servlet.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/classpathx_servlet.spec
diff -u /dev/null SPECS/classpathx_servlet.spec:1.1
--- /dev/null	Sun Dec  9 01:22:06 2007
+++ SPECS/classpathx_servlet.spec	Sun Dec  9 01:22:01 2007
@@ -0,0 +1,95 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
+Summary:	Alternative Servlet implementation
+Name:		classpathx_servlet
+Version:	20000924
+Release:	0.1
+License:	LGPL
+Group:		Development/Languages/Java
+Source0:	http://www.euronet.nl/~pauls/java/servlet/download/%{name}-%{version}.tar.gz
+# Source0-md5:	a81feddb91b1358f9aaed94e83eddb54
+URL:		http://www.euronet.nl/~pauls/java/servlet/
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+Provides:	servletapi = 2.0
+Provides:	servletapi = 2.1
+Provides:	servletapi = 2.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a LGPL'ed implementation of Sun's Java Servlet API version
+2.0, version 2.1 and recently there is is preliminary support for
+version 2.2.
+
+%package javadoc
+Summary:	Online manual for %{name}
+Summary(pl.UTF-8):	Dokumentacja online do %{name}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for %{name}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{name} -
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{name}.
+
+%prep
+%setup -q
+find -name '*.jar' | xargs rm -v
+
+%build
+export JAVA_HOME="%{java_home}"
+%{__make} \
+	J_COMPILER="%javac"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# jars
+cp -a servlet-2.0.jar $RPM_BUILD_ROOT%{_javadir}
+cp -a servlet-2.1.jar $RPM_BUILD_ROOT%{_javadir}
+cp -a servlet-2.2.jar $RPM_BUILD_ROOT%{_javadir}
+cp -a servlet_intl-2.0.jar $RPM_BUILD_ROOT%{_javadir}
+cp -a servlet_intl-2.1.jar $RPM_BUILD_ROOT%{_javadir}
+cp -a servlet_intl-2.2.jar $RPM_BUILD_ROOT%{_javadir}
+
+ln -s servlet-2.2.jar $RPM_BUILD_ROOT%{_javadir}/servlet.jar
+ln -s servlet_intl-2.2.jar $RPM_BUILD_ROOT%{_javadir}/servlet_intl.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a apidoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+rm -rf $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/{Makefile,CVS}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog INSTALL README Resources TODO
+%{_javadir}/*.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007-12-09 00:22:01  glen
+- new package
+
================================================================


More information about the pld-cvs-commit mailing list