File jakarta-taglibs-standard.spec of Package jakarta-taglibs-standard

# spec file for package jakarta-taglibs-standard (Version 1.1.1)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

# norootforbuild

Name:           jakarta-taglibs-standard
BuildRequires:  ant java-devel servletapi5 xalan-j2 xml-commons-apis
%define base_name       standard
%define short_name      taglibs-%{base_name}
%define name            jakarta-%{short_name}
%define section         free
%define jversion	1.1.1
%define version		1.1.1
%define release		4jpp
Version:        1.1.1
Release:        234
Summary:        Open Source Implementation of the JSP Standard Tag Library
License:        The Apache Software License
Group:          Development/Libraries/Java
Patch0:         %{name}-%{version}-build.patch
Patch1:         %{name}-java6-compatibility.patch
Patch2:         %{name}-%{version}-remove-enums.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       servletapi5 >= 5.0.16

This package contains releases for the 1.1.x versions of the Standard
Tag Library, Jakarta Taglibs's open source implementation of the JSP
Standard Tag Library (JSTL), version 1.1. JSTL is a standard under the
Java Community Process.

%package        javadoc
License:        The Apache Software License
PreReq:         coreutils
Summary:        Javadoc for jakarta-taglibs-standard
Group:          Development/Libraries/Java

%description    javadoc
This package contains the javadoc documentation for Jakarta Taglibs.

%setup -q -n %{name}-%{jversion}-src
%patch1 -b .sav1
%patch2 -b .sav2
cat > <<EOBP
servlet24.jar=$(build-classpath servletapi5)
jsp20.jar=$(build-classpath jspapi)
xalan.jar=$(build-classpath xalan-j2)

ant \{short_name} \
  -Dj2se.javadoc=%{_javadocdir}/java \
  -f standard/build.xml \

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p standard/dist/standard/lib/jstl.jar $RPM_BUILD_ROOT%{_javadir}/jakarta-taglibs-core-%{version}.jar
cp -p standard/dist/standard/lib/standard.jar $RPM_BUILD_ROOT%{_javadir}/jakarta-taglibs-standard-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr standard/dist/standard/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink


%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%doc standard/README_src.txt standard/README_bin.txt standard/dist/doc/doc/standard-doc/*.html

%files javadoc
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

* Tue Aug 05 2008
- fixed build using openjdk6 (add java6 API and remove enums)
- use bzip2 in source tarball
- use macro name in patches
- use source=1.5 and target=1.5
* Mon Sep 18 2006
- fix build with java-1.5
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Thu Jul 28 2005
- Adjustments in the spec file.
* Mon Jul 18 2005
- Current version 1.1.1 from
* Thu Sep 16 2004
- Fix prerequires of javadoc subpackage
* Mon Sep 06 2004
- Initial package created with version 1.1.1 (JPackage 1.5)
openSUSE Build Service is sponsored by