2008-09-18 02:34:24 +00:00
|
|
|
#
|
2013-03-08 09:49:45 +00:00
|
|
|
# spec file for package isorelax
|
2008-09-18 02:34:24 +00:00
|
|
|
#
|
2018-05-17 19:54:25 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-09-18 02:34:24 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-18 06:31:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-18 02:34:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define cvsversion 20041111
|
|
|
|
Name: isorelax
|
2017-06-09 10:56:18 +00:00
|
|
|
Version: 0.1
|
|
|
|
Release: 0
|
2008-09-18 02:34:24 +00:00
|
|
|
Summary: Public interfaces useful for applications to support RELAX Core
|
2018-05-17 19:54:25 +00:00
|
|
|
License: Apache-2.0 AND MIT
|
2013-03-08 09:49:45 +00:00
|
|
|
Group: Development/Libraries/Java
|
2008-09-18 02:34:24 +00:00
|
|
|
Url: http://iso-relax.sourceforge.net/
|
|
|
|
Source0: %{name}.%{cvsversion}.zip
|
|
|
|
Source1: %{name}-build.xml
|
|
|
|
Source2: isorelax-maven-project.xml
|
|
|
|
Source3: isorelax-maven-project.xsd
|
2018-12-18 06:31:31 +00:00
|
|
|
Source4: http://repo2.maven.org/maven2/%{name}/%{name}/20030108/%{name}-20030108.pom
|
2008-09-18 02:34:24 +00:00
|
|
|
Patch0: isorelax-java5-compatibility.patch
|
|
|
|
BuildRequires: ant
|
2013-03-08 09:49:45 +00:00
|
|
|
BuildRequires: java-devel
|
2018-12-18 06:31:31 +00:00
|
|
|
BuildRequires: javapackages-local
|
2013-03-08 09:49:45 +00:00
|
|
|
BuildRequires: unzip
|
2008-09-18 02:34:24 +00:00
|
|
|
BuildRequires: xerces-j2
|
2018-12-18 06:31:31 +00:00
|
|
|
BuildRequires: xml-apis
|
2008-09-18 02:34:24 +00:00
|
|
|
Requires: xerces-j2
|
2018-12-18 06:31:31 +00:00
|
|
|
Requires: xml-apis
|
2008-09-18 02:34:24 +00:00
|
|
|
Obsoletes: isorelax-bootstrap
|
|
|
|
Provides: isorelax-bootstrap
|
2017-06-09 10:56:18 +00:00
|
|
|
Obsoletes: %{name}-javadoc
|
2008-09-18 02:34:24 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-06-09 10:56:18 +00:00
|
|
|
BuildArch: noarch
|
2008-09-18 02:34:24 +00:00
|
|
|
|
|
|
|
%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
|
2017-06-09 10:56:18 +00:00
|
|
|
%setup -q -T -c
|
2008-09-18 02:34:24 +00:00
|
|
|
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 \
|
2018-12-18 06:31:31 +00:00
|
|
|
xml-apis \
|
2008-09-18 02:34:24 +00:00
|
|
|
)
|
2017-09-08 08:00:32 +00:00
|
|
|
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
2008-09-18 02:34:24 +00:00
|
|
|
-Dbuild.sysclasspath=only release
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-06-09 10:56:18 +00:00
|
|
|
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)
|
2018-12-18 06:31:31 +00:00
|
|
|
# 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
|
2008-09-18 02:34:24 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING.txt
|
|
|
|
%{_javadir}/*
|
2018-12-18 06:31:31 +00:00
|
|
|
%{_mavenpomdir}/*
|
|
|
|
%if %{defined _maven_repository}
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%else
|
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
|
|
|
%endif
|
2008-09-18 02:34:24 +00:00
|
|
|
|
|
|
|
%changelog
|