replacer/replacer.spec

88 lines
2.5 KiB
RPMSpec
Raw Normal View History

2013-06-10 14:50:08 +00:00
Name: replacer
2014-07-03 13:12:54 +00:00
Version: 1.5.3
2015-02-11 19:48:53 +00:00
Release: 2%{?dist}
2013-06-10 14:50:08 +00:00
Summary: Replacer Maven Mojo
License: MIT
URL: http://code.google.com/p/maven-replacer-plugin/
2014-07-03 13:12:54 +00:00
# svn export http://maven-replacer-plugin.googlecode.com/svn/tags/replacer-1.5.3/trunk/ replacer-1.5.3
# tar cJf replacer-1.5.3.tar.xz replacer-1.5.3
Source0: %{name}-%{version}.tar.xz
2013-07-03 20:33:57 +00:00
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(org.apache.ant:ant)
2013-06-10 14:50:08 +00:00
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
2014-07-03 13:12:54 +00:00
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
2013-07-03 20:33:57 +00:00
BuildRequires: mvn(xerces:xercesImpl)
2013-06-10 14:50:08 +00:00
# test deps
2013-07-03 20:33:57 +00:00
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.mockito:mockito-all)
2014-06-08 16:25:43 +00:00
BuildRequires: mvn(xml-apis:xml-apis)
2013-06-10 14:50:08 +00:00
BuildRequires: maven-local
BuildRequires: maven-plugin-plugin
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
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
%pom_remove_plugin :dashboard-maven-plugin
2014-06-08 16:25:43 +00:00
# NoClassDefFoundError: org/w3c/dom/ElementTraversal
%pom_add_dep xml-apis:xml-apis::test
2013-06-10 14:50:08 +00:00
2014-07-03 13:12:54 +00:00
sed -i.hamcrest '/startsWith/d' src/test/java/com/google/code/maven_replacer_plugin/file/FileUtilsTest.java
sed -i 's/\r//' LICENSE.txt
2013-07-03 20:33:57 +00:00
%mvn_file :%{name} %{name}
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
2013-06-10 14:50:08 +00:00
2013-07-03 20:33:57 +00:00
%build
2013-06-10 14:50:08 +00:00
2013-07-03 20:33:57 +00:00
%mvn_build
2013-06-10 14:50:08 +00:00
2013-07-03 20:33:57 +00:00
%install
%mvn_install
2013-06-10 14:50:08 +00:00
2013-07-03 20:33:57 +00:00
%files -f .mfiles
2015-02-11 19:48:53 +00:00
%license LICENSE.txt
2013-06-10 14:50:08 +00:00
2013-07-03 20:33:57 +00:00
%files javadoc -f .mfiles-javadoc
2015-02-11 19:48:53 +00:00
%license LICENSE.txt
2013-06-10 14:50:08 +00:00
%changelog
2015-02-11 19:48:53 +00:00
* Wed Feb 11 2015 gil cattaneo <puntogil@libero.it> 1.5.3-2
- introduce license macro
2014-07-03 13:12:54 +00:00
* Thu Jul 03 2014 gil cattaneo <puntogil@libero.it> 1.5.3-1
- update to 1.5.3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.5.2-4
- Use Requires: java-headless rebuild (#1067528)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-03 20:33:57 +00:00
* Wed Jul 03 2013 gil cattaneo <puntogil@libero.it> 1.5.2-2
- switch to XMvn
- minor changes to adapt to current guideline
2013-06-10 14:50:08 +00:00
* Sun May 26 2013 gil cattaneo <puntogil@libero.it> 1.5.2-1
- initial rpm