## START: Set by rpmautospec
## (rpmautospec version 0.6.0)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 41;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
Name: replacer
Version: 1.6
Release: %autorelease
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
Patch1: 0001-Fix-build-with-Mockito-2.x.patch
Patch2: 0002-Port-to-maven-plugin-annotations-from-Javadoc-tags.patch
Patch3: 0003-Port-to-apache-commons-lang3.patch
Patch4: 0004-Port-to-hamcrest-3.patch
Patch5: 0005-Port-to-mockito-5.patch
BuildArch: noarch
%if 0%{?rhel} && 0%{?rhel} > 9
ExclusiveArch: %{java_arches} noarch
%endif
BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(xerces:xercesImpl)
%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
%autosetup -p1 -n maven-replacer-plugin-%{version}
# remove unnecessary dependency on parent POM
%pom_remove_parent
%pom_remove_plugin :dashboard-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_change_dep :commons-lang org.apache.commons:commons-lang3
# remove hard-coded compiler settings
%pom_remove_plugin :maven-compiler-plugin
# "No mojo definitions were found for plugin" with maven-plugin-plugin 3.9
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']" '
true'
%mvn_file :%{name} %{name}
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
## START: Generated by rpmautospec
* Tue Nov 05 2024 Endi S. Dewata - 1.6-41
- WIP
* Thu Sep 12 2024 Marian Koncek - 1.6-40
- Add javapackages test
* Fri Jul 19 2024 Fedora Release Engineering - 1.6-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Feb 27 2024 Jiri Vanek - 1.6-30
- Rebuilt for java-21-openjdk as system jdk
* Fri Feb 09 2024 Mikolaj Izdebski - 1.6-29
- Port to maven-plugin-annotations from Javadoc tags
* Fri Jan 26 2024 Fedora Release Engineering - 1.6-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering - 1.6-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering - 1.6-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering - 1.6-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering - 1.6-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek - 1.6-23
- Rebuilt for Drop i686 JDKs
* Sat Feb 05 2022 Jiri Vanek - 1.6-22
- Rebuilt for java-17-openjdk as system jdk
* Fri Jan 21 2022 Fedora Release Engineering - 1.6-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering - 1.6-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed May 12 2021 Ondrej Dubaj - 1.6-19
- Remove maven-javadoc-plugin dependency
* Wed Jan 27 2021 Fedora Release Engineering - 1.6-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jul 30 2020 Fabio Valentini - 1.6-17
- Port to commons-lang3.
* Wed Jul 29 2020 Fedora Release Engineering - 1.6-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat Jul 11 2020 Jiri Vanek - 1.6-15
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Fri Jun 26 2020 Mat Booth - 1.6-14
- Allow building against Java 11
* Thu Jan 30 2020 Fedora Release Engineering - 1.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 22 2019 Fabio Valentini - 1.6-12
- Remove unnecessary dependency on parent POM.
* Fri Jul 26 2019 Fedora Release Engineering - 1.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Apr 18 2019 Mat Booth - 1.6-10
- Disable tests to reduce dependency tree
* Wed Feb 13 2019 Mat Booth - 1.6-9
- Fix build against mockito 2.x
* Sat Feb 02 2019 Fedora Release Engineering - 1.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering - 1.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* 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
## END: Generated by rpmautospec