[commons-compiler] Initial import
mef
mef at fedoraproject.org
Tue Apr 10 14:23:14 UTC 2012
commit 3705da393de65533b9d74087c6040d8915ca9ee1
Author: mef3 <mefoster at gmail.com>
Date: Tue Apr 10 15:22:58 2012 +0100
Initial import
.gitignore | 1 +
commons-compiler-2.6.1.pom | 24 +++++++++++++
commons-compiler.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++
new_bsd_license.txt | 30 ++++++++++++++++
sources | 1 +
5 files changed, 137 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f548e7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+commons-compiler-src.zip
diff --git a/commons-compiler-2.6.1.pom b/commons-compiler-2.6.1.pom
new file mode 100644
index 0000000..97c0190
--- /dev/null
+++ b/commons-compiler-2.6.1.pom
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.codehaus.janino</groupId>
+ <artifactId>janino-parent</artifactId>
+ <version>2.6.1</version>
+ </parent>
+
+ <artifactId>commons-compiler</artifactId>
+
+ <name>Commons Compiler</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/commons-compiler.spec b/commons-compiler.spec
new file mode 100644
index 0000000..e89ccf1
--- /dev/null
+++ b/commons-compiler.spec
@@ -0,0 +1,81 @@
+Name: commons-compiler
+Version: 2.6.1
+Release: 2%{?dist}
+Summary: Interfaces for an embedded Java compiler
+
+License: BSD
+URL: http://www.janino.net/
+# Extracted from http://dist.codehaus.org/janino/janino-2.6.1.zip
+Source0: %{name}-src.zip
+Source1: new_bsd_license.txt
+# Use "wget -U firefox" to download this file
+Source2: http://repo1.maven.org/maven2/org/codehaus/janino/%{name}/%{version}/%{name}-%{version}.pom
+
+BuildRequires: maven
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: janino-parent = %{version}
+BuildRequires: jpackage-utils
+
+BuildArch: noarch
+
+Requires: jpackage-utils
+Requires: janino-parent = %{version}
+Requires: java >= 1:1.6.0
+
+%description
+%{summary}.
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+Requires: jpackage-utils
+%description javadoc
+Documentation for the %{name} Java library.
+
+%prep
+%setup -q -c -T
+mkdir -p src
+pushd src
+%{_unzipbin} %{SOURCE0}
+# Fix broken javadoc link
+%{__sed} -i "s|link ClassBodyEvaluator|link IClassBodyEvaluator|" \
+ org/codehaus/commons/compiler/samples/ClassBodyDemo.java
+popd
+cp -p %{SOURCE1} .
+cp -p %{SOURCE2} ./pom.xml
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+%{__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
+%doc *.txt
+%{_javadir}/*.jar
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP-%{name}.pom
+
+%files javadoc
+%doc *.txt
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Fri Mar 30 2012 Mary Ellen Foster <mefoster at gmail.com> - 2.6.1-2
+- Update project URL
+- Fix broken javadoc link
+- Remove buildroot cleanup
+- Change description
+- Use sources downloaded from project website, and include license file
+
+* Tue Mar 20 2012 Mary Ellen Foster <mefoster at gmail.com> - 2.6.1-1
+- Initial package
diff --git a/new_bsd_license.txt b/new_bsd_license.txt
new file mode 100644
index 0000000..f906e86
--- /dev/null
+++ b/new_bsd_license.txt
@@ -0,0 +1,30 @@
+Janino - An embedded Java[TM] compiler
+
+Copyright (c) 2001-2010, Arno Unkrig
+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. The name of the author may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
diff --git a/sources b/sources
index e69de29..7cc248b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c01cc19cb514648d678ddf36c8d8a8a8 commons-compiler-src.zip
More information about the scm-commits
mailing list