a3496c
%global checkout 20110809
a3496c
a3496c
Name: xsom
a3496c
Version: 0
a3496c
Release: 19.%{checkout}svn%{?dist}
a3496c
Summary: XML Schema Object Model (XSOM)
a3496c
License: CDDL-1.1 or GPLv2 with exceptions
a3496c
URL: http://xsom.java.net
a3496c
a3496c
# svn export https://svn.java.net/svn/xsom~sources/tags/xsom-20110809 xsom-20110809svn
a3496c
# find xsom-20110809svn/ -name '*.class' -delete
a3496c
# find xsom-20110809svn/ -name '*.class' -delete
a3496c
# tar czf xsom-20110809svn.tar.gz xsom-20110809svn
a3496c
Source0: %{name}-%{checkout}svn.tar.gz
a3496c
a3496c
# We need this because one of the original tests tries to download
a3496c
# it from the website, but that doesn't work in Koji:
a3496c
Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd
a3496c
a3496c
Patch0: %{name}-%{checkout}svn-pom.patch
a3496c
a3496c
BuildRequires:  maven-local
a3496c
BuildRequires:  mvn(junit:junit)
a3496c
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
a3496c
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
a3496c
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
a3496c
BuildRequires:  relaxngcc
a3496c
a3496c
BuildArch: noarch
a3496c
a3496c
%description
a3496c
XML Schema Object Model (XSOM) is a Java library that allows applications to
a3496c
easily parse XML Schema documents and inspect information in them. It is
a3496c
expected to be useful for applications that need to take XML Schema as an
a3496c
input.  The library is a straight-forward implement of "schema components" as
a3496c
defined in the XML Schema spec part 1.  Refer to this specification of how this
a3496c
object model works. 
a3496c
a3496c
%package javadoc
a3496c
Summary: Javadoc for %{name}
a3496c
a3496c
%description javadoc
a3496c
This package contains javadoc for %{name}.
a3496c
a3496c
%prep
a3496c
%setup -q -n %{name}-%{checkout}svn
a3496c
%patch0 -p1
a3496c
a3496c
# Replace the URL of the XSD file used by the tests with its
a3496c
# absolute filesystem location:
a3496c
sed -i \
a3496c
  's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \
a3496c
  test/XSOMParserTest.java
a3496c
a3496c
pushd lib
a3496c
  ln -sf `build-classpath relaxngcc` relaxngcc.jar
a3496c
popd
a3496c
a3496c
%build
a3496c
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
a3496c
a3496c
%install
a3496c
%mvn_install
a3496c
a3496c
%files -f .mfiles
a3496c
%doc license.txt
a3496c
a3496c
%files javadoc -f .mfiles-javadoc
a3496c
%doc license.txt
a3496c
a3496c
%changelog
a3496c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-19.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a3496c
a3496c
* Thu Nov 09 2017 Michael Simacek <msimacek@redhat.com> - 0-18.20110809svn
a3496c
- Specify CDDL license version
a3496c
a3496c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-17.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a3496c
a3496c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-16.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a3496c
a3496c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-15.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a3496c
a3496c
* Fri Jun 19 2015 Michal Srb <msrb@redhat.com> - 0-14.20110809svn
a3496c
- Fix FTBFS
a3496c
a3496c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-13.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a3496c
a3496c
* Mon Aug 04 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0-12.20110809svn
a3496c
- Fix junit BRs (#1107359)
a3496c
- Fix FTBFS due to F21 XMvn changes
a3496c
a3496c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-11.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a3496c
a3496c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-10.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a3496c
a3496c
* Fri Feb 22 2013 Juan Hernandez <juan.hernandez@redhat.com> - 0-9.20110809svn
a3496c
- Add build dependency on maven-shared (rhbz 914590)
a3496c
a3496c
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-8.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a3496c
a3496c
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0-7.20110809svn
a3496c
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
a3496c
- Replace maven BuildRequires with maven-local
a3496c
a3496c
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-6.20110809svn
a3496c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3496c
a3496c
* Thu Feb 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-5.20110809svn
a3496c
- Update the release tag
a3496c
a3496c
* Thu Feb 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-4.20110809svn
a3496c
- Avoid downloading XSD files during the build process
a3496c
a3496c
* Wed Feb 22 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-3.20110809svn
a3496c
- Put the date tag in the release instead of in the version
a3496c
a3496c
* Tue Feb 14 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-2.20110809svn
a3496c
- Cleanup of the spec file
a3496c
a3496c
* Sat Jan 21 2012 Marek Goldmann <mgoldman@redhat.com> 0-1.20110809svn
a3496c
- Initial packaging