isorelax/isorelax.spec
2020-07-31 15:45:28 +08:00

49 lines
1.4 KiB
RPMSpec

%global cvstag release-20050331
Name: isorelax
Summary: Public interfaces for RELAX Core
URL: http://iso-relax.sourceforge.net/
Epoch: 1
Version: 0
Release: 1
License: MIT and ASL 1.1
BuildArch: noarch
Source0: https://apt.linuxfans.org/magic/3.0/sources/SOURCES.i/isorelax/%{name}-%{cvstag}-src.tar.bz2
Source1: https://apt.linuxfans.org/magic/3.0/sources/SOURCES.i/isorelax/license.txt
Source2: https://apt.linuxfans.org/magic/3.0/sources/SOURCES.i/isorelax/%{name}-20030108.pom
Patch0: isorelax-apidocsandcompressedjar.patch
BuildRequires: javapackages-local ant
%description
The ISO RELAX project was started to host public interfaces
useful for applications to support RELAX Core. Now, however,
some of the hosted material is schema language-neutral.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
%{summary}.
%prep
%setup -q -n %{name}-%{cvstag}-src
find -name "*.jar" -delete
ln -s %{_javadir}/ant.jar lib/
%patch0 -p0
cp %{SOURCE1} .
%build
ant release
%install
%mvn_file : %{name}
%mvn_artifact %{SOURCE2} %{name}.jar
%mvn_install -J apidocs
%files -f .mfiles
%license license.txt
%files javadoc -f .mfiles-javadoc
%license license.txt
%changelog
* Thu Jul 23 2020 yanan li <liyanan032@huawei.com> - 0-1
- Package init