switch to XMvn
This commit is contained in:
parent
418db3351a
commit
a8996cf40d
@ -1,8 +1,7 @@
|
|||||||
Name: replacer
|
Name: replacer
|
||||||
Version: 1.5.2
|
Version: 1.5.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Replacer Maven Mojo
|
Summary: Replacer Maven Mojo
|
||||||
Group: Development/Libraries
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://code.google.com/p/maven-replacer-plugin/
|
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
|
# svn export http://maven-replacer-plugin.googlecode.com/svn/tags/replacer-1.5.2/trunk/ replacer-1.5.2
|
||||||
@ -11,28 +10,21 @@ 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
|
# replacer don't include the license file. see: http://code.google.com/p/maven-replacer-plugin/issues/detail?id=84
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
|
|
||||||
BuildRequires: ant
|
BuildRequires: mvn(commons-io:commons-io)
|
||||||
BuildRequires: apache-commons-io
|
BuildRequires: mvn(commons-lang:commons-lang)
|
||||||
BuildRequires: apache-commons-lang
|
BuildRequires: mvn(org.apache.ant:ant)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: mvn(org.sonatype.oss:oss-parent)
|
||||||
|
BuildRequires: mvn(xerces:xercesImpl)
|
||||||
|
|
||||||
# test deps
|
# test deps
|
||||||
BuildRequires: junit
|
BuildRequires: mvn(junit:junit)
|
||||||
BuildRequires: mockito
|
BuildRequires: mvn(org.hamcrest:hamcrest-all)
|
||||||
BuildRequires: hamcrest12
|
BuildRequires: mvn(org.mockito:mockito-all)
|
||||||
# mvn(org.hamcrest:hamcrest-all) = 1.1
|
|
||||||
|
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: maven-plugin-plugin
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -42,7 +34,6 @@ This plugin is also used to automatically generating PackageVersion.java
|
|||||||
in the FasterXML.com project.
|
in the FasterXML.com project.
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Group: Documentation
|
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
@ -53,32 +44,24 @@ This package contains javadoc for %{name}.
|
|||||||
|
|
||||||
%pom_remove_plugin :dashboard-maven-plugin
|
%pom_remove_plugin :dashboard-maven-plugin
|
||||||
|
|
||||||
|
%mvn_file :%{name} %{name}
|
||||||
|
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# required hamcrest 1.1 and 1.3 isnt available in F18
|
|
||||||
mvn-rpmbuild \
|
%mvn_build
|
||||||
-Dmaven.local.depmap.file="%{_mavendepmapfragdir}/hamcrest12" \
|
|
||||||
package javadoc:aggregate
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
%files -f .mfiles
|
||||||
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
%files javadoc -f .mfiles-javadoc
|
||||||
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
|
%changelog
|
||||||
|
* Wed Jul 03 2013 gil cattaneo <puntogil@libero.it> 1.5.2-2
|
||||||
|
- switch to XMvn
|
||||||
|
- minor changes to adapt to current guideline
|
||||||
|
|
||||||
* Sun May 26 2013 gil cattaneo <puntogil@libero.it> 1.5.2-1
|
* Sun May 26 2013 gil cattaneo <puntogil@libero.it> 1.5.2-1
|
||||||
- initial rpm
|
- initial rpm
|
Loading…
Reference in New Issue
Block a user