Accepting request 735438 from Java:packages

Remove references to parent form pom files + avoid version-less dependencies

OBS-URL: https://build.opensuse.org/request/show/735438
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slf4j?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2019-10-07 11:42:11 +00:00 committed by Git OBS Bridge
commit 8514f6e1d7
3 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 5 12:59:06 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove references to parent from all pom files
- Avoid dependencies without version tag
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 1 09:01:32 UTC 2019 - Fridrich Strba <fstrba@suse.com> Tue Oct 1 09:01:32 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 5 12:59:06 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove references to parent from all pom files
- Avoid dependencies without version tag
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 1 09:01:32 UTC 2019 - Fridrich Strba <fstrba@suse.com> Tue Oct 1 09:01:32 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -163,6 +163,8 @@ done
# # Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283 # # Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283
sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF
%pom_change_dep -r -f ::::: :::::
%build %build
export CLASSPATH=$(build-classpath log4j12/log4j-12 \ export CLASSPATH=$(build-classpath log4j12/log4j-12 \
commons-logging \ commons-logging \
@ -190,14 +192,20 @@ done
# poms # poms
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/parent.pom
for i in api ext jcl jdk14 log4j12 nop simple; do for i in api ext jcl jdk14 log4j12 nop simple; do
%pom_remove_parent slf4j-${i}
%pom_xpath_inject "pom:project" "
<groupId>org.slf4j</groupId>
<version>%{version}</version>" slf4j-${i}
install -pm 644 slf4j-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom install -pm 644 slf4j-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
done done
for i in jcl-over-slf4j jul-to-slf4j log4j-over-slf4j; do for i in jcl-over-slf4j jul-to-slf4j log4j-over-slf4j; do
%pom_remove_parent ${i}
%pom_xpath_inject "pom:project" "
<groupId>org.slf4j</groupId>
<version>%{version}</version>" ${i}
install -pm 644 ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom install -pm 644 ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
done done
%add_maven_depmap %{name}/parent.pom
for i in api nop simple; do for i in api nop simple; do
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar %add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar
done done