Inital commit

This commit is contained in:
Tomas Radej 2012-07-30 13:31:50 +02:00
parent f312655ffb
commit a63de53acb
4 changed files with 100 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/maven-script-interpreter-1.0-source-release.zip

View File

@ -0,0 +1,21 @@
diff --git a/pom.xml b/pom.xml
index 3d674d2..2bbb913 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,14 +97,14 @@
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-maven-plugin</artifactId>
+ <artifactId>plexus-component-metadata</artifactId>
<version>1.3.8</version>
<executions>
<execution>
<id>create-component-descriptor</id>
<phase>generate-resources</phase>
<goals>
- <goal>descriptor</goal>
+ <goal>generate-metadata</goal>
</goals>
</execution>
</executions>

View File

@ -0,0 +1,77 @@
Name: maven-script-interpreter
Version: 1.0
Release: 1%{?dist}
Summary: Maven Script Interpreter
Group: Development/Libraries
License: ASL 2.0
URL: http://maven.apache.org/shared/%{name}
Source0: http://central.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
# Plexus-maven-plugin no longer used
Patch0: %{name}-plexus.patch
BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: groovy
BuildRequires: maven
BuildRequires: maven-surefire-provider-junit4
BuildRequires: plexus-containers-component-metadata
Requires: java
Requires: jpackage-utils
Requires: bsh
Requires: groovy
Requires: maven
Requires: plexus-utils
%description
This component provides some utilities to interpret/execute some scripts for
various implementations: Groovy or BeanShell.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
Requires: jpackage-utils
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0 -p1
%build
mvn-rpmbuild install javadoc:aggregate -Dproject.build.sourceEncoding=UTF-8
%install
# JAR
install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# POM
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
# JavaDoc
install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%add_maven_depmap JPP-%{name}.pom %{name}.jar
%files
%doc DEPENDENCIES LICENSE NOTICE
%{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc
%doc LICENSE NOTICE
%doc %{_javadocdir}/%{name}
%changelog
* Tue Jul 24 2012 Tomas Radej <tradej@redhat.com> - 1.0-1
- Initial version

View File

@ -0,0 +1 @@
b7d1859dd80e8c37e97132d19e439e1e maven-script-interpreter-1.0-source-release.zip