BuildRequires: /proc BuildRequires: jpackage-1.4-compat # 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 0 %define base_name el %define short_name commons-el Name: jakarta-commons-el Version: 1.0 Release: alt1_8.2jpp1.7 Epoch: 1 Summary: The Jakarta Commons Extension Language License: Apache Software 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 %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 Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %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/Documentation BuildRequires: java-javadoc %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %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 # 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} # ghost symlink %if %{gcj_support} %{_bindir}/aot-compile-rpm %endif %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi %if %{gcj_support} %post if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %endif %if %{gcj_support} %postun if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %endif %files %doc LICENSE.txt STATUS.html %{_javadir}/* %if %{gcj_support} %dir %attr(-,root,root) %{_libdir}/gcj/%{name} %{_libdir}/gcj/%{name}/jakarta-commons-el-1.0.jar.* %endif %files javadoc %doc %{_javadocdir}/%{name}-%{version} %ghost %doc %{_javadocdir}/%{name} %changelog * Mon Dec 03 2007 Igor Vlasenko <viy@altlinux.ru> 1:1.0-alt1_8.2jpp1.7 - added eclipse manifest * Mon Jul 30 2007 Igor Vlasenko <viy@altlinux.ru> 1:1.0-alt1_7jpp1.7 - converted from JPackage by jppimport script * Mon May 21 2007 Igor Vlasenko <viy@altlinux.ru> 1.1-alt0.2 - added jpackage compat symlinks * Sun Mar 27 2005 Vladimir Lettiev <crux@altlinux.ru> 1.1-alt0.1 - rpm-build-java macroces - version from cvs 20050321 * Fri Sep 10 2004 Vladimir Lettiev <crux@altlinux.ru> 1.0-alt1 - Rebuild for ALT Linux Sisyphus - spec cleanup * Fri Jan 9 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:1.0-1jpp - First build for JPackage * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:1.0-0.2 - With Javadocs * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:1.0-0.1 - First build