modify the duplicate of Source3 instead of itself

This commit is contained in:
chengzihan2 2021-03-10 09:21:35 +08:00
parent 83928eec0e
commit 617d9b05c3

View File

@ -2,7 +2,7 @@
Name: findbugs
Version: 3.0.1
Release: 17
Release: 18
Summary: Find Bugs in Java Programs
License: LGPLv2+
URL: http://findbugs.sourceforge.net/
@ -63,7 +63,8 @@ Provide additional tools for use with findbugs. See README.openEuler for more in
install -p %{SOURCE2} README.tools
find lib -name ".jar" -exec rm {} \;
find src/gui/edu/umd/cs/findbugs/gui2 -name "OSXAdapter.java" -exec rm {} \;
%pom_remove_dep com.apple:AppleJavaExtensions %{SOURCE3}
cp %{SOURCE3} ./
%pom_remove_dep com.apple:AppleJavaExtensions findbugs-3.0.1.pom
%build
ant docs build
@ -109,8 +110,8 @@ done
rm -f build/doc/manual*.xml build/doc/manual*.xsl
sed -i 's/3\.0\.0/3\.0\.1/g' %{SOURCE4} %{SOURCE6}
sed -i '/<parent>/,/<\/parent>/d' %{SOURCE3}
cp %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
sed -i '/<parent>/,/<\/parent>/d' findbugs-3.0.1.pom
cp findbugs-3.0.1.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
cp %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-annotations.pom
cp %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.ant-ant-%{name}.pom
@ -143,6 +144,9 @@ end
%{_javadir}/findbugs-tools.jar
%changelog
* Wed Mar 10 2021 chengzihan <chengzihan2@huawei.com> - 3.0.1-18
- modify the duplicate of Source3 instead of itself
* Fri Sep 04 2020 yaokai <yaokai13@huawei.com> - 3.0.1-17
- Remove parent tag in pom file