xsom/xsom.spec

48 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-25 13:58:16 +08:00
Name: xsom
Version: 0
Release: 1
Summary: XML Schema Object Model
License: GPLv2
URL: https://javaee.github.io
Source0: https://github.com/kohsuke/xsom/archive/xsom-20110809.tar.gz
Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd
Patch0000: xsom-20110809svn-pom.patch
BuildRequires: maven-local mvn(junit:junit) relaxngcc
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(relaxngDatatype:relaxngDatatype)
BuildArch: noarch
%description
This package is a Java library that allows applications to easily parse XML Schema documents
and inspect information in them. It is expected to be useful for applications that need to
take XML Schema as an input.
2020-08-25 14:01:16 +08:00
%package javadoc
Summary: Javadoc for xsom
2020-08-25 13:58:16 +08:00
2020-08-25 14:01:16 +08:00
%description javadoc
This package contains javadoc for xsom.
2020-08-25 13:58:16 +08:00
%prep
%autosetup -n xsom-xsom-20110809 -p1
sed -i 's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' test/XSOMParserTest.java
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc license.txt
2020-08-25 14:01:16 +08:00
%files javadoc -f .mfiles-javadoc
2020-08-25 13:58:16 +08:00
%doc license.txt
%changelog
* Thu Jun 11 2020 leiju <leiju4@huawei.com> - 0-1
- Package init