isorelax/isorelax.spec
李恬 d46a88a9fa fix build warnings: patchN is deprecated, use patch N (or %patch -P N)
(cherry picked from commit 578734ea805085467d9595c81538e6a374f42453)
2024-12-17 11:56:20 +08:00

52 lines
1.5 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: 2
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/
%patch 0 -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
* Mon Dec 16 2024 litian <dev11105@linx-info.com> - 1:0-2
- fix %patchN is deprecated warning
* Thu Jul 23 2020 yanan li <liyanan032@huawei.com> - 0-1
- Package init