diff --git a/apache-commons-jxpath.changes b/apache-commons-jxpath.changes index 9ec5666..24a37c3 100644 --- a/apache-commons-jxpath.changes +++ b/apache-commons-jxpath.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 5 12:29:04 UTC 2019 - Fridrich Strba + +- Include a manifest in the jar file + ------------------------------------------------------------------- Sat Oct 20 13:03:03 UTC 2018 - Fridrich Strba diff --git a/apache-commons-jxpath.spec b/apache-commons-jxpath.spec index 28a3482..5a30d60 100644 --- a/apache-commons-jxpath.spec +++ b/apache-commons-jxpath.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -70,6 +70,9 @@ export CLASSPATH=$(build-classpath \ ant -Dmaven.mode.offline=true jar \ -Dant.build.javac.source=8 -Dant.build.javac.target=8 \ -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 -Dpm 644 target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar