From 5873bb05f118d2ffb46b44f8b40622d2de2bfbb5 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 8 May 2023 10:55:43 +0200 Subject: [PATCH] import sources --- .gitignore | 1 + replacer.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 replacer.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4359ec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/1.6.tar.gz diff --git a/replacer.spec b/replacer.spec new file mode 100644 index 0000000..3b04643 --- /dev/null +++ b/replacer.spec @@ -0,0 +1,104 @@ +Name: replacer +Version: 1.6 +Release: 6%{?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: maven-local +BuildRequires: mvn(commons-io:commons-io) +BuildRequires: mvn(commons-lang:commons-lang) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.ant:ant) +BuildRequires: mvn(org.apache.maven:maven-plugin-api) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) +BuildRequires: mvn(org.hamcrest:hamcrest-all) +BuildRequires: mvn(org.mockito:mockito-all) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildRequires: mvn(xerces:xercesImpl) +BuildRequires: 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 %{name} + +%description javadoc +This package contains javadoc for %{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 :%{name} %{name} +%mvn_alias :%{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 +* Fri Feb 09 2018 Fedora Release Engineering - 1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..e128c17 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (1.6.tar.gz) = 307e1d9833b8b630435013a01cb0ef46d712008cc9b0a1d54ce8608871d4f6d35bb1d8ef23cdd13352691643ca2448c25a4fcdbb4c46f54c48f413fae09f06d3