Fridrich Strba 2018-12-18 06:31:31 +00:00 committed by Git OBS Bridge
parent f1af1031b2
commit 604dc4e3ee
3 changed files with 27 additions and 5 deletions

6
isorelax-20030108.pom Normal file
View File

@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>isorelax</groupId>
<artifactId>isorelax</artifactId>
<version>20030108</version>
</project>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 18 06:31:12 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Add maven pom file
-------------------------------------------------------------------
Fri Sep 8 08:01:30 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,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