diff --git a/relaxngDatatype.changes b/relaxngDatatype.changes index d703b30..6e22eaa 100644 --- a/relaxngDatatype.changes +++ b/relaxngDatatype.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 19 17:44:43 UTC 2018 - Fridrich Strba + +- Install the provided pom file in order to generate correctly + the mvn(...) dependencies + ------------------------------------------------------------------- Thu Nov 30 14:39:03 UTC 2017 - fstrba@suse.com diff --git a/relaxngDatatype.spec b/relaxngDatatype.spec index 71cd9f1..3ea1447 100644 --- a/relaxngDatatype.spec +++ b/relaxngDatatype.spec @@ -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