# Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %define _gcj_support 1 %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} %define base_name el %define short_name commons-el %define section free Name: jakarta-commons-el Version: 1.0 Release: %mkrel 8.1.2 Epoch: 0 Summary: The Jakarta Commons Extension Language License: Apache License Group: Development/Java URL: http://jakarta.apache.org/commons/el/ Source0: http://archive.apache.org/dist/jakarta/commons/el/source/commons-el-%{version}-src.tar.gz Patch0: %{short_name}-%{version}-license.patch Patch1: %{short_name}-eclipse-manifest.patch Patch2: jakarta-commons-el-enum.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %if ! %{gcj_support} BuildArch: noarch %endif BuildRequires: jpackage-utils >= 0:1.6 BuildRequires: ant BuildRequires: jsp BuildRequires: servletapi5 BuildRequires: junit %if %{gcj_support} BuildRequires: java-gcj-compat-devel %endif %description An implementation of standard interfaces and abstract classes for javax.servlet.jsp.el which is part of the JSP 2.0 specification. %package javadoc Summary: Javadoc for %{name} Group: Development/Java BuildRequires: java-javadoc Requires(post): /bin/rm /bin/ln Requires(postun): /bin/rm %if %{gcj_support} BuildRequires: java-gcj-compat-devel %endif %description javadoc Javadoc for %{name}. %prep %setup -q -n %{short_name}-%{version}-src %patch0 -p1 -b .license pushd src/conf %patch1 -p1 popd %patch2 -p1 # remove all precompiled stuff find . -type f -name "*.jar" -exec rm -f {} \; cat > build.properties <<EOBP build.compiler=modern junit.jar=$(build-classpath junit) servlet-api.jar=$(build-classpath servletapi5) jsp-api.jar=$(build-classpath jspapi) servletapi.build.notrequired=true jspapi.build.notrequired=true EOBP %build %{ant} \ -Dfinal.name=%{short_name} \ -Dj2se.javadoc=%{_javadocdir}/java \ jar javadoc %install rm -rf $RPM_BUILD_ROOT # jars mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p dist/%{short_name}.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|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 dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} %if %{gcj_support} %{_bindir}/aot-compile-rpm %endif %clean rm -rf $RPM_BUILD_ROOT %if %{gcj_support} %post %{update_gcjdb} %endif %if %{gcj_support} %postun %{clean_gcjdb} %endif %files %defattr(0644,root,root,0755) %doc LICENSE.txt STATUS.html %{_javadir}/* %if %{gcj_support} %dir %attr(-,root,root) %{_libdir}/gcj/%{name} %attr(-,root,root) %{_libdir}/gcj/%{name}/jakarta-commons-el-1.0.jar.* %endif %files javadoc %defattr(0644,root,root,0755) %doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name} %changelog * Sat Sep 15 2007 Anssi Hannula <anssi@mandriva.org> 1.0-8.1.2mdv2008.0 + Revision: 87407 - rebuild to filter out autorequires of GCJ AOT objects - remove unnecessary Requires(post) on java-gcj-compat * Sat Aug 04 2007 David Walluck <walluck@mandriva.org> 0:1.0-8.1.1mdv2008.0 + Revision: 58964 - sync with latest fc which also includes the needed eclipse fix * Fri Jul 27 2007 David Walluck <walluck@mandriva.org> 0:1.0-7.0.1mdv2008.0 + Revision: 56222 - fix build * Thu Mar 15 2007 Christiaan Welvaart <spturtle@mandriva.org> 1.0-6.3mdv2007.1 + Revision: 143914 - rebuild for 2007.1 - Import jakarta-commons-el * Thu Aug 24 2006 David Walluck <walluck@mandriva.org> 0:1.0-6.2mdv2007.0 - BuildRequires: jsp * Sun Jul 23 2006 David Walluck <walluck@mandriva.org> 0:1.0-6.1mdv2007.0 - bump release * Sat Jun 03 2006 David Walluck <walluck@mandriva.org> 0:1.0-4.4mdv2007.0 - rebuild for libgcj.so.7 * Mon Jan 30 2006 David Walluck <walluck@mandriva.org> 0:1.0-4.3mdk - fix %%postun * Fri Dec 02 2005 David Walluck <walluck@mandriva.org> 0:1.0-4.2mdk - sunc with 4jpp_2fc * Sun May 22 2005 David Walluck <walluck@mandriva.org> 0:1.0-3.1mdk - release * Tue Aug 24 2004 Randy Watler <rwatler at finali.com> - 0:1.0-3jpp - Rebuild with ant-1.6.2 * Wed Jun 02 2004 Randy Watler <rwatler at finali.com> - 0:1.0-2jpp - Upgrade to Ant 1.6.X