1
0

Accepting request 671844 from Java:packages

include a manifest

OBS-URL: https://build.opensuse.org/request/show/671844
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-jxpath?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2019-02-06 13:06:49 +00:00 committed by Git OBS Bridge
commit c38b1c9968
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 5 12:29:04 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Include a manifest in the jar file
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 20 13:03:03 UTC 2018 - Fridrich Strba <fstrba@suse.com> Sat Oct 20 13:03:03 UTC 2018 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package apache-commons-jxpath # spec file for package apache-commons-jxpath
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -70,6 +70,9 @@ export CLASSPATH=$(build-classpath \
ant -Dmaven.mode.offline=true jar \ ant -Dmaven.mode.offline=true jar \
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \ -Dant.build.javac.source=8 -Dant.build.javac.target=8 \
-lib %{_datadir}/java -lib %{_datadir}/java
sed -i "s/@name@/%{short_name}/g" src/conf/MANIFEST.MF
sed -i "s/@version@/%{version}/g" src/conf/MANIFEST.MF
jar ufm target/%{short_name}.jar src/conf/MANIFEST.MF
%install %install
install -Dpm 644 target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar install -Dpm 644 target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar