|
|
877ab8 |
%global checkout 20110809
|
|
|
877ab8 |
|
|
|
877ab8 |
Name: xsom
|
|
|
877ab8 |
Version: 0
|
|
|
877ab8 |
Release: 9.%{checkout}svn%{?dist}
|
|
|
877ab8 |
Summary: XML Schema Object Model (XSOM)
|
|
|
877ab8 |
Group: Development/Libraries
|
|
|
877ab8 |
License: CDDL or GPLv2 with exceptions
|
|
|
877ab8 |
URL: http://xsom.java.net
|
|
|
877ab8 |
|
|
|
877ab8 |
# svn export https://svn.java.net/svn/xsom~sources/tags/xsom-20110809 xsom-20110809svn
|
|
|
877ab8 |
# find xsom-20110809svn/ -name '*.class' -delete
|
|
|
877ab8 |
# find xsom-20110809svn/ -name '*.class' -delete
|
|
|
877ab8 |
# tar czf xsom-20110809svn.tar.gz xsom-20110809svn
|
|
|
877ab8 |
Source0: %{name}-%{checkout}svn.tar.gz
|
|
|
877ab8 |
|
|
|
877ab8 |
# We need this because one of the original tests tries to download
|
|
|
877ab8 |
# it from the website, but that doesn't work in Koji:
|
|
|
877ab8 |
Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd
|
|
|
877ab8 |
|
|
|
877ab8 |
Patch0: %{name}-%{checkout}svn-pom.patch
|
|
|
877ab8 |
|
|
|
877ab8 |
BuildRequires: jpackage-utils
|
|
|
877ab8 |
BuildRequires: junit4
|
|
|
877ab8 |
BuildRequires: maven-local
|
|
|
877ab8 |
BuildRequires: maven-antrun-plugin
|
|
|
877ab8 |
BuildRequires: maven-plugin-build-helper
|
|
|
877ab8 |
BuildRequires: maven-compiler-plugin
|
|
|
877ab8 |
BuildRequires: maven-enforcer
|
|
|
877ab8 |
BuildRequires: maven-enforcer-plugin
|
|
|
877ab8 |
BuildRequires: maven-install-plugin
|
|
|
877ab8 |
BuildRequires: maven-jar-plugin
|
|
|
877ab8 |
BuildRequires: maven-javadoc-plugin
|
|
|
877ab8 |
BuildRequires: maven-surefire-plugin
|
|
|
877ab8 |
BuildRequires: maven-surefire-provider-junit4
|
|
|
877ab8 |
BuildRequires: maven-shared
|
|
|
877ab8 |
BuildRequires: relaxngDatatype
|
|
|
877ab8 |
BuildRequires: relaxngcc
|
|
|
877ab8 |
BuildRequires: sonatype-oss-parent
|
|
|
877ab8 |
BuildRequires: forge-parent
|
|
|
877ab8 |
|
|
|
877ab8 |
Requires: jpackage-utils
|
|
|
877ab8 |
Requires: relaxngDatatype
|
|
|
877ab8 |
BuildArch: noarch
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%description
|
|
|
877ab8 |
XML Schema Object Model (XSOM) is a Java library that allows applications to
|
|
|
877ab8 |
easily parse XML Schema documents and inspect information in them. It is
|
|
|
877ab8 |
expected to be useful for applications that need to take XML Schema as an
|
|
|
877ab8 |
input. The library is a straight-forward implement of "schema components" as
|
|
|
877ab8 |
defined in the XML Schema spec part 1. Refer to this specification of how this
|
|
|
877ab8 |
object model works.
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%package javadoc
|
|
|
877ab8 |
Group: Development/Libraries
|
|
|
877ab8 |
Summary: Javadoc for %{name}
|
|
|
877ab8 |
Requires: jpackage-utils
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%description javadoc
|
|
|
877ab8 |
This package contains javadoc for %{name}.
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%prep
|
|
|
877ab8 |
%setup -q -n %{name}-%{checkout}svn
|
|
|
877ab8 |
%patch0 -p1
|
|
|
877ab8 |
|
|
|
877ab8 |
# Replace the URL of the XSD file used by the tests with its
|
|
|
877ab8 |
# absolute filesystem location:
|
|
|
877ab8 |
sed -i \
|
|
|
877ab8 |
's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \
|
|
|
877ab8 |
test/XSOMParserTest.java
|
|
|
877ab8 |
|
|
|
877ab8 |
pushd lib
|
|
|
877ab8 |
ln -sf $(build-classpath relaxngcc) relaxngcc.jar
|
|
|
877ab8 |
popd
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%build
|
|
|
877ab8 |
|
|
|
877ab8 |
mvn-rpmbuild \
|
|
|
877ab8 |
-Dproject.build.sourceEncoding=UTF-8 \
|
|
|
877ab8 |
install \
|
|
|
877ab8 |
javadoc:aggregate
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%install
|
|
|
877ab8 |
|
|
|
877ab8 |
# Jar files:
|
|
|
877ab8 |
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
877ab8 |
cp -p target/xsom-%{checkout}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
877ab8 |
|
|
|
877ab8 |
# POM files:
|
|
|
877ab8 |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
877ab8 |
cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
877ab8 |
|
|
|
877ab8 |
# Javadoc files:
|
|
|
877ab8 |
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
877ab8 |
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
877ab8 |
|
|
|
877ab8 |
# Dependencies map:
|
|
|
877ab8 |
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%files
|
|
|
877ab8 |
%{_javadir}/*
|
|
|
877ab8 |
%{_mavenpomdir}/*
|
|
|
877ab8 |
%{_mavendepmapfragdir}/*
|
|
|
877ab8 |
%doc license.txt
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%files javadoc
|
|
|
877ab8 |
%{_javadocdir}/*
|
|
|
877ab8 |
%doc license.txt
|
|
|
877ab8 |
|
|
|
877ab8 |
|
|
|
877ab8 |
%changelog
|
|
|
877ab8 |
* Fri Feb 22 2013 Juan Hernandez <juan.hernandez@redhat.com> - 0-9.20110809svn
|
|
|
877ab8 |
- Add build dependency on maven-shared (rhbz 914590)
|
|
|
877ab8 |
|
|
|
877ab8 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-8.20110809svn
|
|
|
877ab8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
877ab8 |
|
|
|
877ab8 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0-7.20110809svn
|
|
|
877ab8 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
877ab8 |
- Replace maven BuildRequires with maven-local
|
|
|
877ab8 |
|
|
|
877ab8 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-6.20110809svn
|
|
|
877ab8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
877ab8 |
|
|
|
877ab8 |
* Thu Feb 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-5.20110809svn
|
|
|
877ab8 |
- Update the release tag
|
|
|
877ab8 |
|
|
|
877ab8 |
* Thu Feb 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-4.20110809svn
|
|
|
877ab8 |
- Avoid downloading XSD files during the build process
|
|
|
877ab8 |
|
|
|
877ab8 |
* Wed Feb 22 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-3.20110809svn
|
|
|
877ab8 |
- Put the date tag in the release instead of in the version
|
|
|
877ab8 |
|
|
|
877ab8 |
* Tue Feb 14 2012 Juan Hernandez <juan.hernandez@redhat.com> 0-2.20110809svn
|
|
|
877ab8 |
- Cleanup of the spec file
|
|
|
877ab8 |
|
|
|
877ab8 |
* Sat Jan 21 2012 Marek Goldmann <mgoldman@redhat.com> 0-1.20110809svn
|
|
|
877ab8 |
- Initial packaging
|