diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8146859 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/1.6.tar.gz diff --git a/.rh-maven35-replacer.metadata b/.rh-maven35-replacer.metadata new file mode 100644 index 0000000..74c57cb --- /dev/null +++ b/.rh-maven35-replacer.metadata @@ -0,0 +1 @@ +9657f1c3a52c1779207fefcf4720b60692b87193 SOURCES/1.6.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/replacer.spec b/SPECS/replacer.spec new file mode 100644 index 0000000..d080cb8 --- /dev/null +++ b/SPECS/replacer.spec @@ -0,0 +1,107 @@ +%{?scl:%scl_package replacer} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}replacer +Version: 1.6 +Release: 4.2%{?dist} +Summary: Replacer Maven Mojo +License: MIT +URL: https://github.com/beiliubei/maven-replacer-plugin +# http://code.google.com/p/maven-replacer-plugin/ +Source0: https://github.com/beiliubei/maven-replacer-plugin/archive/%{version}.tar.gz + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(commons-io:commons-io) +BuildRequires: %{?scl_prefix}mvn(commons-lang:commons-lang) +BuildRequires: %{?scl_prefix}mvn(junit:junit) +BuildRequires: %{?scl_prefix}mvn(org.apache.ant:ant) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugin-plugin) +BuildRequires: %{?scl_prefix}mvn(org.hamcrest:hamcrest-all) +BuildRequires: %{?scl_prefix}mvn(org.mockito:mockito-all) +BuildRequires: %{?scl_prefix}mvn(org.sonatype.oss:oss-parent:pom:) +BuildRequires: %{?scl_prefix}mvn(xerces:xercesImpl) +BuildRequires: %{?scl_prefix}mvn(xml-apis:xml-apis) + +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 %{pkg_name} + +%description javadoc +This package contains javadoc for %{pkg_name}. + +%prep +%setup -q -n maven-replacer-plugin-%{version} + +%pom_remove_plugin :dashboard-maven-plugin +%pom_remove_plugin :maven-assembly-plugin +# NoClassDefFoundError: org/w3c/dom/ElementTraversal +%pom_add_dep xml-apis:xml-apis::test + +sed -i.hamcrest '/startsWith/d' src/test/java/com/google/code/maven_replacer_plugin/file/FileUtilsTest.java + +%mvn_file :%{pkg_name} %{pkg_name} +%mvn_alias :%{pkg_name} com.google.code.maven-replacer-plugin:maven-replacer-plugin + +%build + +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Thu Jun 22 2017 Michael Simacek - 1.6-4.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 1.6-4.1 +- Automated package import and SCL-ization + +* Sat Feb 11 2017 Fedora Release Engineering - 1.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Mar 17 2015 gil cattaneo 1.6-1 +- update to 1.6 +- fix Url tag and Source0 tag + +* Wed Feb 11 2015 gil cattaneo 1.5.3-2 +- introduce license macro + +* Thu Jul 03 2014 gil cattaneo 1.5.3-1 +- update to 1.5.3 + +* Sun Jun 08 2014 Fedora Release Engineering - 1.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 1.5.2-4 +- Use Requires: java-headless rebuild (#1067528) + +* Sun Aug 04 2013 Fedora Release Engineering - 1.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 03 2013 gil cattaneo 1.5.2-2 +- switch to XMvn +- minor changes to adapt to current guideline + +* Sun May 26 2013 gil cattaneo 1.5.2-1 +- initial rpm