# # spec file for package isorelax # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cvsversion 20041111 Name: isorelax Version: 0.1 Release: 53.27 Summary: Public interfaces useful for applications to support RELAX Core License: Apache-2.0 AND MIT Group: Development/Libraries/Java URL: http://iso-relax.sourceforge.net/ 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-local %if 0%{?rhel} >= 9 BuildRequires: xmvn-tools %endif BuildRequires: unzip BuildRequires: xerces-j2 BuildRequires: (xml-apis or xml-commons-apis) Requires: xerces-j2 Requires: (xml-apis or xml-commons-apis) Obsoletes: isorelax-bootstrap Provides: isorelax-bootstrap Obsoletes: %{name}-javadoc BuildArch: noarch %description The ISO RELAX project is started to host the public interfaces useful for applications to support RELAX Core. But nowadays some of the stuff we have is schema language neutral. %prep %setup -q -T -c unzip -q %{SOURCE0} mkdir src (cd src; unzip -q ../src.zip) rm -f src.zip cp %{SOURCE1} build.xml mkdir test cp %{SOURCE2} test cp %{SOURCE3} test chmod -R go=u-w * find . -name "*.jar" -exec rm -f {} \; rm -rf src/jp/gr/xml/relax/swift %patch0 -b .sav0 %build export CLASSPATH=$(build-classpath \ xerces-j2 \ xml-apis \ ) ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \ -Dbuild.sysclasspath=only release %mvn_artifact %{SOURCE4} %{name}.jar %install # jars 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) %mvn_install %files -f .mfiles %license COPYING.txt %{_javadir}/* %if %{defined _maven_repository} %{_mavendepmapfragdir}/%{name} %else %{_datadir}/maven-metadata/%{name}.xml* %endif %changelog * Sat Mar 19 2022 Fridrich Strba - Build with java target and source version 1.8 * Tue Dec 18 2018 Fridrich Strba - Add maven pom file - Build against the generic xml-apis provider * Fri Sep 8 2017 fstrba@suse.com - Specify java target and source version to 1.6 in order to allow building with jdk9 * Fri Jun 9 2017 tchvatal@suse.com - Drop javadoc to build with gcj and low in the buildphase * Mon Sep 9 2013 tchvatal@suse.com - Move from jpackage-utils to javapackage-tools * Sat Mar 2 2013 coolo@suse.com - update license to new format * Mon Sep 15 2008 mvyskocil@suse.cz - -target=1.5 -source=1.5 * Wed Aug 20 2008 mvyskocil@suse.cz - Initial packaging of version 0.1 (based on jpp1.7)