Accepting request 533047 from Java:packages

Condition correctly the maven defines

OBS-URL: https://build.opensuse.org/request/show/533047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-codec?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2017-10-20 14:11:55 +00:00 committed by Git OBS Bridge
commit f9967ab42c
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 29 08:11:16 UTC 2017 - fstrba@suse.com
- Don't condition the maven defines on release version, but on
_maven_repository being defined
-------------------------------------------------------------------
Thu Sep 7 11:59:41 UTC 2017 - fstrba@suse.com

View File

@ -127,10 +127,10 @@ ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%doc LICENSE.txt RELEASE-NOTES.txt
%{_javadir}/*.jar
%{_mavenpomdir}/*
%if %{?suse_version} > 1320
%{_datadir}/maven-metadata/%{name}.xml
%else
%if %{defined _maven_repository}
%config(noreplace) %{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml
%endif
%files javadoc