[replacer] Initial import (#967375).
gil
gil at fedoraproject.org
Mon Jun 10 14:50:25 UTC 2013
commit 418db3351a38fac022c11c2f38e7008fd44faa0a
Author: gil <puntogil at libero.it>
Date: Mon Jun 10 16:50:08 2013 +0200
Initial import (#967375).
.gitignore | 1 +
replacer.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..66a8b99 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/replacer-1.5.2-src-svn.tar.gz
diff --git a/replacer.spec b/replacer.spec
new file mode 100644
index 0000000..c628330
--- /dev/null
+++ b/replacer.spec
@@ -0,0 +1,84 @@
+Name: replacer
+Version: 1.5.2
+Release: 1%{?dist}
+Summary: Replacer Maven Mojo
+Group: Development/Libraries
+License: MIT
+URL: http://code.google.com/p/maven-replacer-plugin/
+# svn export http://maven-replacer-plugin.googlecode.com/svn/tags/replacer-1.5.2/trunk/ replacer-1.5.2
+# tar czf replacer-1.5.2-src-svn.tar.gz replacer-1.5.2
+Source0: %{name}-%{version}-src-svn.tar.gz
+# replacer don't include the license file. see: http://code.google.com/p/maven-replacer-plugin/issues/detail?id=84
+BuildRequires: java-devel
+
+BuildRequires: ant
+BuildRequires: apache-commons-io
+BuildRequires: apache-commons-lang
+BuildRequires: mvn(org.apache.maven:maven-plugin-api)
+BuildRequires: xerces-j2
+
+# test deps
+BuildRequires: junit
+BuildRequires: mockito
+BuildRequires: hamcrest12
+# mvn(org.hamcrest:hamcrest-all) = 1.1
+
+BuildRequires: maven-local
+BuildRequires: maven-plugin-plugin
+
+Requires: ant
+Requires: apache-commons-io
+Requires: apache-commons-lang
+Requires: mvn(org.apache.maven:maven-plugin-api)
+Requires: xerces-j2
+
+Requires: java
+BuildArch: noarch
+
+%description
+Maven plugin to replace tokens in a given file with a value.
+
+This plugin is also used to automatically generating PackageVersion.java
+in the FasterXML.com project.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+
+%pom_remove_plugin :dashboard-maven-plugin
+
+%build
+# required hamcrest 1.1 and 1.3 isnt available in F18
+mvn-rpmbuild \
+ -Dmaven.local.depmap.file="%{_mavendepmapfragdir}/hamcrest12" \
+ package javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap -a "com.google.code.maven-replacer-plugin:maven-replacer-plugin"
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Sun May 26 2013 gil cattaneo <puntogil at libero.it> 1.5.2-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..b15bb72 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2dba6d22ce4ce7d1ff8a1f3aa4adb65a replacer-1.5.2-src-svn.tar.gz
More information about the scm-commits
mailing list