Fridrich Strba 2018-10-19 17:45:16 +00:00 committed by Git OBS Bridge
parent 9cc37a82b6
commit 6337f29f1e
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 19 17:44:43 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Install the provided pom file in order to generate correctly
the mvn(...) dependencies
-------------------------------------------------------------------
Thu Nov 30 14:39:03 UTC 2017 - 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/
#
@ -28,6 +28,7 @@ Source0: https://github.com/java-schema-utilities/relaxng-datatype-java/a
Source1: copying.txt
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
Obsoletes: %{name}-javadoc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -52,9 +53,20 @@ install -Dpm 644 %{name}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar -a relaxngDatatype:relaxngDatatype
%files
%defattr(-,root,root,-)
%doc copying.txt
%{_javadir}/*.jar
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%changelog