Blame SPECS/jakarta-taglibs-standard.spec

7563f4
# Copyright (c) 2000-2007, JPackage Project
7563f4
# All rights reserved.
7563f4
#
7563f4
# Redistribution and use in source and binary forms, with or without
7563f4
# modification, are permitted provided that the following conditions
7563f4
# are met:
7563f4
#
7563f4
# 1. Redistributions of source code must retain the above copyright
7563f4
#    notice, this list of conditions and the following disclaimer.
7563f4
# 2. Redistributions in binary form must reproduce the above copyright
7563f4
#    notice, this list of conditions and the following disclaimer in the
7563f4
#    documentation and/or other materials provided with the
7563f4
#    distribution.
7563f4
# 3. Neither the name of the JPackage Project nor the names of its
7563f4
#    contributors may be used to endorse or promote products derived
7563f4
#    from this software without specific prior written permission.
7563f4
#
7563f4
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
7563f4
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7563f4
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7563f4
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7563f4
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
7563f4
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
7563f4
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
7563f4
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
7563f4
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
7563f4
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7563f4
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7563f4
#
7563f4
7563f4
%global base_name       standard
7563f4
%global short_name      taglibs-%{base_name}
7563f4
7563f4
Name:           jakarta-taglibs-standard
7563f4
Version:        1.1.2
7563f4
Release:        10%{?dist}
7563f4
Epoch:          0
7563f4
Summary:        An open-source implementation of the JSP Standard Tag Library
7563f4
License:        ASL 2.0
7563f4
Group:          Development/Libraries
7563f4
URL:            http://jakarta.apache.org/taglibs/
7563f4
Source0:        http://archive.apache.org/dist/jakarta/taglibs/standard/source/jakarta-taglibs-standard-%{version}-src.tar.gz
7563f4
Source1:        http://repo1.maven.org/maven2/jstl/jstl/%{version}/jstl-%{version}.pom
7563f4
Source2:        http://repo1.maven.org/maven2/taglibs/standard/%{version}/standard-%{version}.pom
7563f4
7563f4
Patch0:         jakarta-taglibs-standard-1.1.1-build.patch
7563f4
Patch1:         fix-1.6.0-build.patch
7563f4
Patch2:         %{name}-jdbc-4.1.patch
7563f4
# remove relocation use -a parameter with %%add_maven_depmap
7563f4
# prevent maven/system overflow
7563f4
Patch3:         jakarta-taglibs-standard-1.1.2-jstl-pom.patch
7563f4
Patch4:         jakarta-taglibs-standard-1.1.2-standard-pom.patch
7563f4
7563f4
BuildArch:      noarch
7563f4
BuildRequires:  jpackage-utils >= 0:1.5.30
7563f4
BuildRequires:  ant
7563f4
BuildRequires:  tomcat-servlet-3.0-api
7563f4
BuildRequires:  tomcat-jsp-2.2-api
7563f4
BuildRequires:  java-devel
7563f4
BuildRequires:  java-javadoc
7563f4
BuildRequires:  xalan-j2 >= 2.6.0
7563f4
Requires:       tomcat-servlet-3.0-api
7563f4
Requires:       tomcat-jsp-2.2-api
7563f4
Requires:       xalan-j2 >= 2.6.0
7563f4
7563f4
%description
7563f4
This package contains Jakarta Taglibs's open-source implementation of the 
7563f4
JSP Standard Tag Library (JSTL), version 1.1. JSTL is a standard under the
7563f4
Java Community Process.
7563f4
7563f4
%package        javadoc
7563f4
Summary:        Javadoc for %{name}
7563f4
Group:          Documentation
7563f4
7563f4
%description    javadoc
7563f4
Javadoc for %{name}.
7563f4
7563f4
7563f4
%prep
7563f4
%setup -q -n %{name}-%{version}-src
7563f4
%patch0 -b .orig
7563f4
%patch1
7563f4
%patch2
7563f4
#
7563f4
rm -fr standard/src/org/apache/taglibs/standard/lang/jstl/test/PageContextImpl.java
7563f4
rm -fr standard/src/org/apache/taglibs/standard/lang/jstl/test/EvaluationTest.java
7563f4
cat > build.properties <
7563f4
build.dir=build
7563f4
dist.dir=dist
7563f4
servlet24.jar=$(build-classpath tomcat-servlet-3.0-api)
7563f4
jsp20.jar=$(build-classpath jsp)
7563f4
jaxp-api.jar=$(build-classpath xalan-j2)
7563f4
EOBP
7563f4
7563f4
cp -p %{SOURCE1} jstl-1.1.2.pom
7563f4
%patch3 -p0
7563f4
cp -p %{SOURCE2} standard-1.1.2.pom
7563f4
%patch4 -p0
7563f4
7563f4
7563f4
%build
7563f4
ant \
7563f4
  -Dfinal.name=%{short_name} \
7563f4
  -Dj2se.javadoc=%{_javadocdir}/java \
7563f4
  -f standard/build.xml \
7563f4
  dist
7563f4
7563f4
7563f4
%install
7563f4
# jars
7563f4
mkdir -p $RPM_BUILD_ROOT%{_javadir}
7563f4
cp -p standard/dist/standard/lib/jstl.jar $RPM_BUILD_ROOT%{_javadir}/jakarta-taglibs-core.jar
7563f4
cp -p standard/dist/standard/lib/standard.jar $RPM_BUILD_ROOT%{_javadir}/jakarta-taglibs-standard.jar
7563f4
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in jakarta-*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
7563f4
7563f4
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
7563f4
install -pm 644 jstl-1.1.2.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-jakarta-taglibs-core.pom
7563f4
%add_maven_depmap JPP-jakarta-taglibs-core.pom jakarta-taglibs-core.jar -a "javax.servlet:jstl,org.eclipse.jetty.orbit:javax.servlet.jsp.jstl"
7563f4
install -pm 644 standard-1.1.2.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
7563f4
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish"
7563f4
7563f4
# javadoc
7563f4
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
7563f4
cp -pr standard/dist/standard/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
7563f4
7563f4
%files
7563f4
%doc LICENSE NOTICE
7563f4
%doc standard/README_src.txt standard/README_bin.txt standard/dist/doc/doc/standard-doc/*.html
7563f4
%{_javadir}/*
7563f4
%{_mavenpomdir}/JPP-*.pom
7563f4
%{_mavendepmapfragdir}/%{name}
7563f4
7563f4
%files javadoc
7563f4
%doc LICENSE NOTICE
7563f4
%doc %{_javadocdir}/%{name}
7563f4
7563f4
7563f4
%changelog
7563f4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.2-10
7563f4
- Rebuild to regenerate API documentation
7563f4
- Resolves: CVE-2013-1571
7563f4
7563f4
* Thu Mar  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.2-9
7563f4
- Add depmaps for org.eclipse.jetty.orbit
7563f4
7563f4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-8
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7563f4
7563f4
* Thu Sep 20 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.1.2-7
7563f4
- Install LICENSE and NOTICE files
7563f4
7563f4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-6
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7563f4
7563f4
* Tue Jun 19 2012 Hui Wang <huwang@redhat.com> 0:1.1.2-5
7563f4
- Bug 829804
7563f4
7563f4
* Wed Feb 8 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.2-4
7563f4
- Remove test classes that fail to build(non impl methods) with servlet 3/jsp 2.2.
7563f4
7563f4
* Tue Jan 24 2012 Deepak Bhole <dbhole@redhat.com> - 0:1.1.2-3
7563f4
- Added patch to build with JDBC 4.1/Java 7
7563f4
7563f4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.2-2
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7563f4
7563f4
* Tue Jul 19 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.2-1
7563f4
- Update to 1.1.2 upstream release - 7 years later!.
7563f4
7563f4
* Tue Jul 19 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.1.1-12.3
7563f4
- Adapt to current guidelines.
7563f4
7563f4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-12.2
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7563f4
7563f4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-11.2
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7563f4
7563f4
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1.1-10.2
7563f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7563f4
7563f4
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1.1-9.2
7563f4
- drop repotag
7563f4
- fix license tag
7563f4
7563f4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1.1-9jpp.1
7563f4
- Autorebuild for GCC 4.3
7563f4
7563f4
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.1.1-8jpp.1
7563f4
- Merge with latest jpp version
7563f4
- Fix various rpmlint warnings
7563f4
7563f4
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.1.1-8jpp
7563f4
- Fix empty javadoc post and postun rpmlint warnings
7563f4
- Update copyright year
7563f4
7563f4
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> 0:1.1.1-7jpp.1
7563f4
- Merge with upstream version
7563f4
 - Add missing javadoc postun
7563f4
 - Add missing javadoc requires
7563f4
7563f4
* Thu Aug 10 2006 Karsten Hopp <karsten@redhat.de> 1.1.1-6jpp_3fc
7563f4
- Requires(post): coreutils
7563f4
7563f4
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.1.1-6jpp_2fc
7563f4
- Rebuilt
7563f4
7563f4
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.1.1-6jpp_1fc
7563f4
- Merge with upstream version
7563f4
- Natively compile package
7563f4
7563f4
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.1.1-6jpp
7563f4
- Add conditional native compilation
7563f4
- Add missing BuildRequires and Requires for tomcat5-jsp-2.0-api and xalan-j2
7563f4
  (from Deepak Bhole <dbhole at redhat.com>)
7563f4
7563f4
* Thu Apr 27 2006 Fernando Nasser <fnasser@redhat.com> 0:1.1.1-5jpp
7563f4
- First JPP 1.7 build
7563f4
7563f4
* Fri Oct 22 2004 Fernando Nasser <fnasser@redhat.com> 0:1.1.1-4jpp
7563f4
- Rebuild to replace incorrect patch file
7563f4
7563f4
* Fri Oct 22 2004 Fernando Nasser <fnasser@redhat.com> 0:1.1.1-3jpp
7563f4
- Remove hack for 1.3 Java that would break building with an IBM SDK.
7563f4
7563f4
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.1.1-2jpp
7563f4
- Rebuild with ant-1.6.2
7563f4
7563f4
* Tue Jul 27 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.1.1-1jpp
7563f4
- 1.1.1
7563f4
7563f4
* Tue Feb 17 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:1.1.0-1jpp
7563f4
- 1.1.0 final
7563f4
7563f4
* Wed Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.1.0-0.B1.2jpp
7563f4
- change URL
7563f4
- fix description
7563f4
7563f4
* Fri Jan  9 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:1.1.0-0.B1.1jpp
7563f4
- First build for JPackage
7563f4
7563f4
* Mon Dec 22 2003 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:1.1.0-0.B1.1
7563f4
- First build
7563f4
- Skip examples for now