diff --git a/xpp3-1.1.4c.pom b/xpp3-1.1.4c.pom
new file mode 100644
index 0000000..ca41ce9
--- /dev/null
+++ b/xpp3-1.1.4c.pom
@@ -0,0 +1,40 @@
+
+ 4.0.0
+ xpp3
+ xpp3
+ 1.1.4c
+ jar
+ MXP1: Xml Pull Parser 3rd Edition (XPP3)
+ http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/
+ MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.
+
+
+ Indiana University Extreme! Lab Software License, vesion 1.1.1
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt
+ repo
+ The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )
+
+
+ Public Domain
+ http://creativecommons.org/licenses/publicdomain
+ repo
+ The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)
+
+
+ Apache Software License, version 1.1
+ http://www.apache.org/licenses/LICENSE-1.1
+ repo
+ The license applies to the class javax.xml.namespace.QName
+
+
+
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/
+
+
+ Extreme! Lab, Indiana University
+ http://www.extreme.indiana.edu/
+
+
+
diff --git a/xpp3.changes b/xpp3.changes
index 50a96c4..785207a 100644
--- a/xpp3.changes
+++ b/xpp3.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Fri Oct 19 20:38:27 UTC 2018 - Fridrich Strba
+
+- Install maven pom files and generate mvn(...) provides
+
-------------------------------------------------------------------
Mon Sep 11 16:58:24 UTC 2017 - fstrba@suse.com
diff --git a/xpp3.spec b/xpp3.spec
index befebc9..894ffe2 100644
--- a/xpp3.spec
+++ b/xpp3.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/
#
@@ -24,8 +24,12 @@ License: Apache-1.1
Group: Development/Libraries/Java
Url: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
Source0: http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{version}_src.tgz
+Source1: http://central.maven.org/maven2/xpp3/xpp3/%{version}/xpp3-%{version}.pom
+Source2: http://central.maven.org/maven2/xpp3/xpp3_min/%{version}/xpp3_min-%{version}.pom
+Source3: http://central.maven.org/maven2/xpp3/xpp3_xpath/%{version}/xpp3_xpath-%{version}.pom
Patch0: xpp3-sourcetarget.patch
BuildRequires: ant >= 1.6
+BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: junit
BuildRequires: perl
@@ -87,6 +91,15 @@ mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}
rm -rf doc/{build.txt,api}
+# Install pom file
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
+install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-minimal.pom
+install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-xpath.pom
+%add_maven_depmap %{name}.pom %{name}.jar
+%add_maven_depmap %{name}-minimal.pom %{name}-minimal.jar -f minimal
+%add_maven_depmap %{name}-xpath.pom %{name}-xpath.jar -f xpath
+
%files
%defattr(0644,root,root,0755)
%doc README.html LICENSE.txt doc/*
@@ -94,11 +107,26 @@ rm -rf doc/{build.txt,api}
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}-xpath.jar
%{_javadir}/%{name}-xpath-%{version}.jar
+%{_mavenpomdir}/%{name}.pom
+%{_mavenpomdir}/%{name}-xpath.pom
+%if %{defined _maven_repository}
+%{_mavendepmapfragdir}/%{name}
+%{_mavendepmapfragdir}/%{name}-xpath
+%else
+%{_datadir}/maven-metadata/%{name}.xml*
+%{_datadir}/maven-metadata/%{name}-xpath.xml*
+%endif
%files minimal
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-minimal.jar
%{_javadir}/%{name}-minimal-%{version}.jar
+%{_mavenpomdir}/%{name}-minimal.pom
+%if %{defined _maven_repository}
+%{_mavendepmapfragdir}/%{name}-minimal
+%else
+%{_datadir}/maven-metadata/%{name}-minimal.xml*
+%endif
%files javadoc
%defattr(0644,root,root,0755)
diff --git a/xpp3_min-1.1.4c.pom b/xpp3_min-1.1.4c.pom
new file mode 100644
index 0000000..b55d6dd
--- /dev/null
+++ b/xpp3_min-1.1.4c.pom
@@ -0,0 +1,32 @@
+
+ 4.0.0
+ xpp3
+ xpp3_min
+ 1.1.4c
+ jar
+ MXP1: Xml Pull Parser 3rd Edition (XPP3)
+ http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/
+ MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.
+
+
+ Indiana University Extreme! Lab Software License, vesion 1.1.1
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt
+ repo
+ The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )
+
+
+ Public Domain
+ http://creativecommons.org/licenses/publicdomain
+ repo
+ The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)
+
+
+
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/
+
+
+ Extreme! Lab, Indiana University
+ http://www.extreme.indiana.edu/
+
+
+
diff --git a/xpp3_xpath-1.1.4c.pom b/xpp3_xpath-1.1.4c.pom
new file mode 100644
index 0000000..218d60d
--- /dev/null
+++ b/xpp3_xpath-1.1.4c.pom
@@ -0,0 +1,25 @@
+
+ 4.0.0
+ xpp3
+ xpp3_xpath
+ 1.1.4c
+ jar
+ MXP1: Xml Pull Parser 3rd Edition (XPP3)
+ http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/
+ MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.
+
+
+ Indiana University Extreme! Lab Software License, vesion 1.1.1
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt
+ repo
+
+
+
+ http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/
+
+
+ Extreme! Lab, Indiana University
+ http://www.extreme.indiana.edu/
+
+
+