1
0
Fridrich Strba 2018-10-20 13:03:42 +00:00 committed by Git OBS Bridge
parent 56de9d71ad
commit 2dd8084fbf
2 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 20 13:03:03 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Install the provided pom.xml file and generate the mvn(...)
provides
-------------------------------------------------------------------
Tue May 15 10:47:35 UTC 2018 - fstrba@suse.com

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -24,7 +24,7 @@ Release: 0
Summary: Simple XPath interpreter
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://commons.apache.org/%{base_name}/
URL: http://commons.apache.org/%{base_name}/
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source1: %{short_name}.depmap
Patch0: %{short_name}-mockrunner.patch
@ -33,6 +33,7 @@ BuildRequires: ant
BuildRequires: apache-commons-beanutils
BuildRequires: el_api >= 3.0
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: jdom
BuildRequires: jsp
@ -80,9 +81,20 @@ for jar in *-%{version}*; do
done
popd # come back from javadir
# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{last_path_segment}/
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt
%license LICENSE.txt
%{_javadir}/*.jar
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%changelog