diff --git a/bcel-5.2.pom b/bcel-5.2.pom
new file mode 100644
index 0000000..20e1b11
--- /dev/null
+++ b/bcel-5.2.pom
@@ -0,0 +1,21 @@
+
+
+
+ 4.0.0
+
+ org.apache.bcel
+ bcel
+ jar
+ 5.2
+
+
+
+ jakarta-regexp
+ jakarta-regexp
+ 1.4
+
+
+
+
diff --git a/bcel.changes b/bcel.changes
index c343eab..25b4f85 100644
--- a/bcel.changes
+++ b/bcel.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Nov 15 10:36:02 UTC 2018 - Fridrich Strba
+
+- Add maven pom file and generate mvn(...) dependencies for this
+ package
+
-------------------------------------------------------------------
Tue May 15 14:05:02 UTC 2018 - fstrba@suse.com
diff --git a/bcel.spec b/bcel.spec
index 7eeee68..b115ef6 100644
--- a/bcel.spec
+++ b/bcel.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/
#
@@ -22,13 +22,15 @@ Release: 0
Summary: Byte Code Engineering Library
License: Apache-2.0
Group: Development/Libraries/Java
-Url: http://commons.apache.org/proper/commons-bcel/
-Source0: http://www.apache.org/dist/commons/bcel/source/%{name}-%{version}-src.tar.gz
-Source1: http://www.apache.org/dist/commons/bcel/source/%{name}-%{version}-src.tar.gz.asc
-Source2: bcel.keyring
+URL: http://commons.apache.org/proper/commons-bcel/
+Source0: http://archive.apache.org/dist/commons/bcel/source/%{name}-%{version}-src.tar.gz
+Source1: http://archive.apache.org/dist/commons/bcel/source/%{name}-%{version}-src.tar.gz.asc
+Source2: http://repo.maven.apache.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}.pom
+Source3: bcel.keyring
Patch0: bcel-5.2-encoding.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.8
+BuildRequires: javapackages-local
BuildRequires: regexp
BuildRequires: xml-commons-apis-bootstrap
#!BuildIgnore: xerces-j2
@@ -89,8 +91,15 @@ mkdir -p %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
+
+%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar -a "bcel:bcel"
+
%files
-%doc LICENSE.txt
+%license LICENSE.txt
%{_javadir}/*
+%{_mavenpomdir}/*
+%{_datadir}/maven-metadata/%{name}.xml*
%changelog