port to commons-lang3

This commit is contained in:
Fabio Valentini 2020-07-29 14:49:51 +02:00
parent 715182ee5f
commit 98693179e1
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF
2 changed files with 15 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
/results_*
/*.src.rpm
/replacer-1.5.2-src-svn.tar.gz
/replacer-1.5.3.tar.xz
/1.6.tar.gz

View File

@ -1,6 +1,6 @@
Name: replacer
Version: 1.6
Release: 16%{?dist}
Release: 17%{?dist}
Summary: Replacer Maven Mojo
License: MIT
URL: https://github.com/beiliubei/maven-replacer-plugin
@ -9,8 +9,8 @@ Source0: https://github.com/beiliubei/maven-replacer-plugin/archive/%{vers
BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
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.plugins:maven-plugin-plugin)
BuildRequires: mvn(xerces:xercesImpl)
@ -46,6 +46,13 @@ This package contains javadoc for %{name}.
<configuration><source>\${maven.compiler.source}</source><detectJavaApiLink>false</detectJavaApiLink></configuration>
</plugin>"
# trivial port to commons-lang3
%pom_change_dep :commons-lang org.apache.commons:commons-lang3:3.8.1
for i in $(find -name "*.java"); do
sed -i "s/org.apache.commons.lang./org.apache.commons.lang3./g" $i;
done
%mvn_file :%{name} %{name}
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
@ -63,6 +70,9 @@ This package contains javadoc for %{name}.
%license LICENSE
%changelog
* Thu Jul 30 2020 Fabio Valentini <decathorpe@gmail.com> - 1.6-17
- Port to commons-lang3.
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild