From 604dc4e3ee8028085d4a052174e40dc2460e6e8f20a677b51fa39c954a511278 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 18 Dec 2018 06:31:31 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/isorelax?expand=0&rev=13 --- isorelax-20030108.pom | 6 ++++++ isorelax.changes | 5 +++++ isorelax.spec | 21 ++++++++++++++++----- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 isorelax-20030108.pom diff --git a/isorelax-20030108.pom b/isorelax-20030108.pom new file mode 100644 index 0000000..515d23b --- /dev/null +++ b/isorelax-20030108.pom @@ -0,0 +1,6 @@ + + 4.0.0 + isorelax + isorelax + 20030108 + \ No newline at end of file diff --git a/isorelax.changes b/isorelax.changes index e4279cd..143ff71 100644 --- a/isorelax.changes +++ b/isorelax.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 18 06:31:12 UTC 2018 - Fridrich Strba + +- Add maven pom file + ------------------------------------------------------------------- Fri Sep 8 08:01:30 UTC 2017 - fstrba@suse.com diff --git a/isorelax.spec b/isorelax.spec index 84fd53c..fc25944 100644 --- a/isorelax.spec +++ b/isorelax.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,15 +28,16 @@ Source0: %{name}.%{cvsversion}.zip Source1: %{name}-build.xml Source2: isorelax-maven-project.xml Source3: isorelax-maven-project.xsd +Source4: http://repo2.maven.org/maven2/%{name}/%{name}/20030108/%{name}-20030108.pom Patch0: isorelax-java5-compatibility.patch BuildRequires: ant BuildRequires: java-devel -BuildRequires: javapackages-tools +BuildRequires: javapackages-local BuildRequires: unzip BuildRequires: xerces-j2 -BuildRequires: xml-commons-apis +BuildRequires: xml-apis Requires: xerces-j2 -Requires: xml-commons-apis +Requires: xml-apis Obsoletes: isorelax-bootstrap Provides: isorelax-bootstrap Obsoletes: %{name}-javadoc @@ -66,7 +67,7 @@ rm -rf src/jp/gr/xml/relax/swift %build export CLASSPATH=$(build-classpath \ xerces-j2 \ -xml-commons-apis \ +xml-apis \ ) ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ -Dbuild.sysclasspath=only release @@ -76,10 +77,20 @@ ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ install -d -m 755 %{buildroot}%{_javadir} install -m 644 %{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -m 644 %{SOURCE4} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom +%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar %files %defattr(-,root,root) %doc COPYING.txt %{_javadir}/* +%{_mavenpomdir}/* +%if %{defined _maven_repository} +%{_mavendepmapfragdir}/%{name} +%else +%{_datadir}/maven-metadata/%{name}.xml* +%endif %changelog