# Copyright (c) 2000-2007, 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. # Name: janino Version: 2.6.1 Release: 1%{dist} Summary: An embedded Java compiler License: BSD URL: http://docs.codehaus.org/display/JANINO/Home Group: Development/Tools Source0: http://repo1.maven.org/maven2/org/codehaus/janino/janino/2.6.1/janino-2.6.1-sources.jar Source1: http://repo1.maven.org/maven2/org/codehaus/janino/janino/2.6.1/janino-2.6.1.pom BuildRequires: maven BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: janino-parent = %{version} BuildRequires: commons-compiler = %{version} BuildArch: noarch Requires: janino-parent = %{version} Requires: commons-compiler = %{version} Requires: commons-compiler = %{version} Requires: jpackage-utils Requires: java >= 1:1.6.0 %description Janino is a super-small, super-fast Java compiler. Not only can it compile a set of source files to a set of class files like the JAVAC tool, but also can it compile a Java expression, block, class body or source file in memory, load the bytecode and execute it directly in the same JVM. Janino is not intended to be a development tool, but an embedded compiler for run-time compilation purposes, e.g. expression evaluators or "server pages" engines like JSP. %package javadoc Summary: Documentation for %{name} Group: Documentation Requires: jpackage-utils %description javadoc %{summary}. %prep %setup -q -c -T mkdir -p src pushd src %{_unzipbin} %{SOURCE0} popd cp %{SOURCE1} ./pom.xml %build mvn-rpmbuild install javadoc:aggregate %install rm -rf $RPM_BUILD_ROOT %{__install} -d -m 755 $RPM_BUILD_ROOT%{_javadir} %{__install} -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} %{__install} -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom %{__install} -pm 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT/%{_javadir}/%{name}.jar %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadocdir}/ %{__cp} -r target/site/apidocs ${RPM_BUILD_ROOT}%{_javadocdir}/%{name} %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %{_javadir}/*.jar %{_mavendepmapfragdir}/%{name} %{_mavenpomdir}/JPP-%{name}.pom %files javadoc %{_javadocdir}/%{name} %changelog * Tue Mar 20 2012 Mary Ellen Foster - 2.6.1-1 - Update to 2.6.1, with new build system and all - Prepare for re-review * Wed Feb 09 2011 Fedora Release Engineering - 2.5.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 27 2009 Mary Ellen Foster - 2.5.15-3 - Changed group tag on main package and sub-package - Fixed default attribute on files section * Mon Oct 26 2009 Mary Ellen Foster - 2.5.15-2 - Removed gcj bits * Sun Oct 25 2009 Mary Ellen Foster - 2.5.15-1 - Initial package, based on Alexander Kurtakov's JPackage and Mandriva package