Blame SPECS/msv.spec

721455
Name:          msv
721455
Epoch:         1
721455
Version:       2013.6.1
7e4b00
Release:       11%{?dist}
721455
Summary:       Multi-Schema Validator
721455
License:       BSD and ASL 1.1
721455
URL:           http://msv.java.net/
721455
721455
# To generate tarball from upstream source control:
721455
# $ ./create-tarball
721455
Source0:       %{name}-%{version}-clean.tar.gz
721455
721455
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt
721455
Source3:       create-tarball.sh
721455
721455
# Use CatalogResolver from xml-commons-resolver package
721455
Patch1:        %{name}-Use-CatalogResolver-class-from-xml-commons-resolver.patch
721455
721455
BuildRequires:  maven-local
721455
BuildRequires:  mvn(isorelax:isorelax)
721455
BuildRequires:  mvn(jdom:jdom)
721455
BuildRequires:  mvn(junit:junit)
721455
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
721455
BuildRequires:  mvn(org.apache.ant:ant)
721455
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
721455
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
721455
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
721455
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
721455
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
721455
BuildRequires:  mvn(xerces:xercesImpl)
721455
BuildRequires:  mvn(xml-resolver:xml-resolver)
721455
721455
BuildArch:     noarch
721455
721455
Obsoletes:     %{name}-relames < %{version}-%{release}
721455
721455
%description
721455
The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate
721455
XML documents against several kinds of XML schemata. It supports RELAX NG,
721455
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1.
721455
This latest (version 1.2) release includes several bug fixes and adds better
721455
conformance to RELAX NG/W3C XML standards and JAXP masquerading.
721455
721455
%package       msv
721455
Summary:       Multi-Schema Validator Core
721455
# src/com/sun/msv/reader/xmlschema/DOMLSInputImpl.java is under ASL 2.0
721455
# msv/src/com/sun/msv/writer/ContentHandlerAdaptor.java is partially under Public Domain
721455
License:       BSD and ASL 1.1 and ASL 2.0 and Public Domain
721455
721455
%description   msv
721455
%{summary}.
721455
721455
%package       rngconv
721455
Summary:       Multi-Schema Validator RNG Converter
721455
721455
%description   rngconv
721455
%{summary}.
721455
721455
%package       xmlgen
721455
Summary:       Multi-Schema Validator Generator
721455
721455
%description   xmlgen
721455
%{summary}.
721455
721455
%package       xsdlib
721455
Summary:       Multi-Schema Validator XML Schema Library
721455
721455
%description   xsdlib
721455
%{summary}.
721455
721455
%package       javadoc
721455
Summary:       API documentation for Multi-Schema Validator
721455
License:       BSD and ASL 1.1 and ASL 2.0 and Public Domain
721455
721455
%description   javadoc
721455
%{summary}.
721455
721455
%package       manual
721455
Summary:       Manual for Multi-Schema Validator
721455
License:       BSD
721455
721455
%description   manual
721455
%{summary}.
721455
721455
%package       demo
721455
Summary:       Samples for Multi-Schema Validator
721455
License:       BSD
721455
Requires:      msv-msv
721455
Requires:      msv-xsdlib
721455
721455
%description   demo
721455
%{summary}.
721455
721455
%prep
721455
%setup -q
721455
721455
# We don't have this plugin
721455
%pom_remove_plugin :buildnumber-maven-plugin
721455
721455
# javadoc generation fails due to strict doclint in JDK 8
721455
%pom_remove_plugin :maven-javadoc-plugin
721455
721455
# Needed becuase of patch3
721455
%pom_add_dep xml-resolver:xml-resolver
721455
721455
# ASL 2.0 license text
721455
cp %{SOURCE2} Apache-LICENSE-2.0.txt
721455
721455
# Delete anything pre-compiled
721455
find -name '*.class' -exec rm -f '{}' \;
721455
find -name '*.jar' -exec rm -f '{}' \;
721455
find -name '*.zip' -exec rm -f '{}' \;
721455
721455
# Test sources in default package break BND
721455
rm -f testharness/src/*.java
721455
721455
# Delete class-path entries from manifests
721455
for m in $(find . -name MANIFEST.MF) ; do
721455
  sed --in-place -e '/^[Cc]lass-[Pp]ath:/d' $m
721455
done
721455
721455
# Apply patches
721455
%patch1 -p1
721455
721455
# Fix isorelax groupId
721455
%pom_xpath_replace "pom:dependency[pom:groupId[text()='com.sun.xml.bind.jaxb']]/pom:groupId" "<groupId>isorelax</groupId>"
721455
%pom_xpath_replace "pom:dependency[pom:groupId[text()='com.sun.xml.bind.jaxb']]/pom:groupId" "<groupId>isorelax</groupId>" msv
721455
721455
# Change encoding of non utf-8 files
721455
for m in $(find . -name copyright.txt) ; do
721455
  iconv -f iso-8859-1 -t utf-8 < $m > $m.utf8
721455
  mv $m.utf8 $m
721455
done
721455
721455
%mvn_file ":%{name}-core" %{name}-core %{name}-%{name}
721455
%mvn_file ":%{name}-rngconverter" %{name}-rngconverter %{name}-rngconv
721455
%mvn_file ":%{name}-generator" %{name}-generator %{name}-xmlgen
721455
%mvn_file ":xsdlib" xsdlib %{name}-xsdlib
721455
721455
%mvn_alias ":xsdlib" "com.sun.msv.datatype.xsd:xsdlib"
721455
721455
%mvn_package ":*::{tests,javadoc,sources}:" __noinstall
721455
%mvn_package ":%{name}{,-testharness}::{}:" __noinstall
721455
%mvn_package ":%{name}{,-core}::{}:" %{name}-msv
721455
721455
%build
721455
%mvn_build -s
721455
721455
%install
721455
%mvn_install
721455
721455
# Manuals
721455
install -d -m 755 %{buildroot}%{_docdir}/%{name}/msv
721455
install -m 644 msv/doc/*.html     %{buildroot}%{_docdir}/%{name}/msv
721455
install -m 644 msv/doc/*.gif      %{buildroot}%{_docdir}/%{name}/msv
721455
install -m 644 msv/doc/README.txt %{buildroot}%{_docdir}/%{name}/msv
721455
721455
install -d -m 755 %{buildroot}%{_docdir}/%{name}/rngconverter
721455
install -m 644 rngconverter/README.txt %{buildroot}%{_docdir}/%{name}/rngconverter
721455
721455
install -d -m 755 %{buildroot}%{_docdir}/%{name}/generator
721455
install -m 644 generator/*.html     %{buildroot}%{_docdir}/%{name}/generator
721455
install -m 644 generator/README.txt %{buildroot}%{_docdir}/%{name}/generator
721455
721455
install -d -m 755 %{buildroot}%{_docdir}/%{name}/xsdlib
721455
install -m 644 xsdlib/*.html     %{buildroot}%{_docdir}/%{name}/xsdlib
721455
install -m 644 xsdlib/README.txt %{buildroot}%{_docdir}/%{name}/xsdlib
721455
721455
# Examples
721455
install -d -m 755 %{buildroot}%{_datadir}/%{name}/msv
721455
cp -pr msv/examples/* %{buildroot}%{_datadir}/%{name}/msv
721455
install -d -m 755 %{buildroot}%{_datadir}/%{name}/xsdlib
721455
cp -pr xsdlib/examples/* %{buildroot}%{_datadir}/%{name}/xsdlib
721455
721455
# Scripts
721455
%jpackage_script com.sun.msv.driver.textui.Driver "" "" msv-msv:msv-xsdlib:relaxngDatatype:isorelax msv true
721455
%jpackage_script com.sun.msv.generator.Driver "" "" msv-xmlgen:msv-msv:msv-xsdlib:relaxngDatatype:isorelax:xerces-j2 xmlgen true
721455
%jpackage_script com.sun.msv.writer.relaxng.Driver "" "" msv-rngconv:msv-msv:msv-xsdlib:relaxngDatatype:isorelax:xerces-j2 rngconv true
721455
721455
%files msv -f .mfiles-msv-msv
721455
%{_bindir}/msv
721455
%doc License.txt
721455
%doc msv/doc/Apache-LICENSE-1.1.txt
721455
%doc Apache-LICENSE-2.0.txt
721455
721455
%files rngconv -f .mfiles-msv-rngconverter
721455
%{_bindir}/rngconv
721455
%doc msv/doc/Apache-LICENSE-1.1.txt
721455
%doc License.txt
721455
721455
%files xmlgen -f .mfiles-msv-generator
721455
%{_bindir}/xmlgen
721455
%doc msv/doc/Apache-LICENSE-1.1.txt
721455
%doc License.txt
721455
721455
%files xsdlib -f .mfiles-xsdlib
721455
%doc msv/doc/Apache-LICENSE-1.1.txt
721455
%doc License.txt
721455
721455
%files javadoc -f .mfiles-javadoc
721455
%doc License.txt
721455
%doc msv/doc/Apache-LICENSE-1.1.txt
721455
%doc Apache-LICENSE-2.0.txt
721455
721455
%files manual
721455
%doc %{_docdir}/%{name}
721455
%doc License.txt
721455
721455
%files demo
721455
%{_datadir}/%{name}
721455
721455
%changelog
7e4b00
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2013.6.1-11
7e4b00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7e4b00
721455
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2013.6.1-10
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
721455
721455
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2013.6.1-9
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
721455
721455
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2013.6.1-8
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
721455
721455
* Wed Sep 23 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2013.6.1-7
721455
- Remove testharness sources from default package
721455
- Resolves: rhbz#1263628
721455
721455
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2013.6.1-6
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
721455
721455
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2013.6.1-5
721455
- Remove maven-javadoc-plugin execution
721455
721455
* Sun Sep 14 2014 Gerard Ryan <galileo@fedoraproject.org> - 1:2013.6.1-4
721455
- Don't install testharness jar: pulls in ant
721455
- Fix changelog bogus date warning
721455
721455
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2013.6.1-3
721455
- Remove unneeded build-requires
721455
- Fix build-requires on jvnet-parent
721455
721455
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2013.6.1-2
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
721455
721455
* Mon Sep 23 2013 Michal Srb <msrb@redhat.com> - 1:2013.6.1-1
721455
- Update to upstream version 2013.6.1
721455
721455
* Mon Sep 23 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-7
721455
- Adapt to current guidelines
721455
721455
* Wed Aug 07 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-6
721455
- Unversioned doc dir (Resolves: #993980)
721455
- See: http://fedoraproject.org/wiki/Changes/UnversionedDocdirs
721455
721455
* Tue Aug 06 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-5
721455
- Provide net.java.dev.msv:msv (Resolves: #993872)
721455
721455
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2013.5.1-4
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
721455
721455
* Thu Aug 01 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-3
721455
- Fix license tag (+Public Domain)
721455
- Add create-tarball.sh to SRPM
721455
721455
* Wed Jul 31 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-2
721455
- Do not build module with unclear licensing (relames)
721455
- Replace %%add_to_maven_depmap with %%add_maven_depmap
721455
721455
* Fri Jun 07 2013 Michal Srb <msrb@redhat.com> - 1:2013.5.1-1
721455
- Update to latest upstream version 2013.5.1
721455
- Clean up tarball
721455
- Fix BR/R
721455
721455
* Fri Apr 12 2013 Michal Srb <msrb@redhat.com> - 1:2013.2.3-3
721455
- Fix license tags in javadoc, manual, demo subpackages
721455
721455
* Fri Apr 12 2013 Michal Srb <msrb@redhat.com> - 1:2013.2.3-2
721455
- Fix license tag for msv subpackage
721455
- Remove unneeded patches
721455
721455
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 1:2013.2.3-1
721455
- Update to upstream version 2013.2.3
721455
- Resolves: rhbz#876845
721455
- Fix URL and license tag
721455
721455
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:2009.1-14
721455
- Add missing BR: maven-local
721455
721455
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2009.1-13
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
721455
721455
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2009.1-12
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
721455
721455
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 1:2009.1-11
721455
- Drop unneeded BR/R.
721455
721455
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2009.1-10
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
721455
721455
* Tue Nov 29 2011 Alexander Kurtakov <akurtako@redhat.com> 1:2009.1-9
721455
- Build with maven 3.
721455
- Adapt to current guidelines.
721455
721455
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2009.1-8
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
721455
721455
* Tue Nov  2 2010 Ville Skyttä <ville.skytta@iki.fi> - 1:2009.1-7
721455
- Add msv, relames, xmlgen, and rngconv command line scripts.
721455
721455
* Thu Oct 28 2010 Alexander Kurtakov <akurtako@redhat.com> 1:2009.1-6
721455
- BR junit4.
721455
721455
* Thu Oct 28 2010 Alexander Kurtakov <akurtako@redhat.com> 1:2009.1-5
721455
- Fix depmaps and install jars required by msv.pom.
721455
721455
* Fri Sep 24 2010 Mat Booth <fedora@matbooth.co.uk> - 1:2009.1-4
721455
- Really require a version of xml-commons-resolver that provides the necessary
721455
  maven pom and depmap.
721455
721455
* Sun Sep 19 2010 Mat Booth <fedora@matbooth.co.uk> - 1:2009.1-3
721455
- Require a version of xml-commons-resolver that provides the necessary maven
721455
  pom and depmap.
721455
721455
* Sun Sep 19 2010 Mat Booth <fedora@matbooth.co.uk> - 1:2009.1-2
721455
- Re-patch build to link to local javadocs.
721455
- Install maven poms/depmap.
721455
721455
* Thu Sep 16 2010 Mat Booth <fedora@matbooth.co.uk> - 1:2009.1-1
721455
- Update to latest tagged release.
721455
- Drop support for GCJ ahead of time compilation.
721455
- Fix RHBZ #627688, RHBZ #631076
721455
- This project now builds with maven instead of ant.
721455
- The new build in this release aggregates javadocs, so now we have one javadoc
721455
  package that obsoletes the many javadoc packages we had before.
721455
- Use new jar names that upstream use, provide the old names.
721455
- Misc other changes for guideline compliance.
721455
721455
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2-0.4.20050722.3.4.1
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
721455
721455
* Fri May 08 2009 Karsten Hopp <karsten@redhat.com> 1.2-0.3.20050722.3.4.1
721455
- Specify source and target as 1.4 to make it build
721455
721455
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2-0.3.20050722.3.4
721455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
721455
721455
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:1.2-0.2.20050722.3.4
721455
- drop repotag
721455
721455
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:1.2-0.2.20050722.3jpp.3
721455
- Autorebuild for GCC 4.3
721455
721455
* Wed Sep 12 2007 Matt Wringe <mwringe@redhat.com> 0:1,2-0.1.20050722.3jpp.3
721455
- Make package build with new gcj. Remove .class files from demo package and
721455
  remove demo exclude from aot-compile-rpm 
721455
721455
* Tue Sep 11 2007 Matt Wringe <mwringe@redhat.com> 0:1.2-0.1.20050722.3jpp.2
721455
- Fix unowned directories
721455
- Change copyright files to utf-8 format
721455
- Change license field to BSD (from BSD-Style)
721455
721455
* Fri Feb 16 2007 Andrew Overholt <overholt@redhat.com> 0:1.2-0.1.20050722.3jpp.1
721455
- Remove postun Requires on jpackage-utils
721455
- Set gcj_support to 1
721455
- Fix groups to shut up rpmlint
721455
- Add versions to the Provides and Obsoletes
721455
- Add patch to take out Class-Path in MANIFEST.MF
721455
721455
* Thu Feb 15 2007 Matt Wringe <mwringe at redhat.com> - 0:1.2-0.1.20050722.3jpp.1.fc7
721455
- Extract sources from a fresh CVS export of the given tag and add extra source
721455
  required to build the package not present in the 20050722 tag anymore
721455
- Add a patch to remove compile time dependency on crimson
721455
- Add a patch to enable compression of jar files
721455
- Add jpackage-utils as a requires for the packages/subpackages
721455
721455
* Mon Feb 12 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.2-0.20050722.3jpp
721455
- Add bootstrap option to build without saxon nor jdom
721455
- Add gcj_support option
721455
721455
* Fri Feb 17 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.2-0.20050722.2jpp
721455
- First JPP 1.7 build
721455
721455
* Wed Aug 17 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.2-0.20050722.1jpp
721455
- First JPP from this code base