# Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %global version_str %(sed -e 's/\\./-/g' <<<"%{version}") %global version_major_minor %(sed -e 's/\\([0-9]*\\.[0-9]*\\)\\..*/\\1/g' <<<"%{version}") %global version_major_minor_str %(sed -e 's/\\./-/g' <<<"%{version_major_minor}") %global version_maven %(sed -e 's/\\(.*\\)\\.\\([0-9]*\\)/\\1-\\2/g' <<<"%{version}") %global artifact_id Saxon-HE Summary: Java XPath, XSLT 2.0 and XQuery implementation Name: saxon Version: 9.4.0.9 Release: 10%{?dist} # net.sf.saxon.om.XMLChar is from ASL-licensed Xerces # net/sf/saxon/option/jdom/ is MPLv1.1 # net/sf/saxon/serialize/codenorm/ is UCD # net/sf/saxon/expr/sort/GenericSorter.java is MIT # net/sf/saxon/expr/Tokenizer.java and few other bits are BSD License: MPLv1.0 and MPLv1.1 and ASL 1.1 and UCD and MIT URL: http://saxon.sourceforge.net/ Source0: https://downloads.sourceforge.net/project/saxon/Saxon-HE/%{version_major_minor}/saxon%{version_str}source.zip Source1: %{name}.saxon.script Source2: %{name}.saxonq.script Source3: %{name}.build.script Source4: %{name}.1 Source5: %{name}q.1 Source6: https://downloads.sourceforge.net/project/saxon/Saxon-HE/%{version_major_minor}/saxon-resources%{version_major_minor_str}.zip Source8: http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.0.txt Source9: http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.1.txt BuildRequires: unzip BuildRequires: java-devel >= 1:1.6.0 BuildRequires: ant BuildRequires: javapackages-local BuildRequires: bea-stax-api BuildRequires: xml-commons-apis BuildRequires: xml-commons-resolver BuildRequires: xom BuildRequires: java-javadoc BuildRequires: jdom >= 0:1.0-0.b7 BuildRequires: jdom-javadoc >= 0:1.0-0.b9.3jpp BuildRequires: jdom2 BuildRequires: dom4j Requires: bea-stax-api Requires: bea-stax # Older versions were split into multile packages Obsoletes: %{name}-xpath < %{version}-%{release} Provides: %{name}-xpath = %{version}-%{release} Obsoletes: %{name}-xom < %{version}-%{release} Provides: %{name}-xom = %{version}-%{release} Obsoletes: %{name}-sql < %{version}-%{release} Provides: %{name}-sql = %{version}-%{release} Obsoletes: %{name}-jdom < %{version}-%{release} Provides: %{name}-jdom = %{version}-%{release} Obsoletes: %{name}-dom < %{version}-%{release} Provides: %{name}-dom = %{version}-%{release} BuildArch: noarch %description Saxon HE is Saxonica's non-schema-aware implementation of the XPath 2.0, XSLT 2.0, and XQuery 1.0 specifications aligned with the W3C Candidate Recommendation published on 3 November 2005. It is a complete and conformant implementation, providing all the mandatory features of those specifications and nearly all the optional features. %package manual Summary: Manual for %{name} %description manual Manual for %{name}. %package javadoc Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %package demo Summary: Demos for %{name} Requires: %{name} = %{version}-%{release} %description demo Demonstrations and samples for %{name}. %package scripts Summary: Utility scripts for %{name} Requires: %{name} = %{version}-%{release} %description scripts Utility scripts for %{name}. %prep %setup -q -c unzip -q %{SOURCE6} cp -p %{SOURCE3} ./build.xml # deadNET rm -rf net/sf/saxon/dotnet samples/cs # Depends on XQJ (javax.xml.xquery) rm -rf net/sf/saxon/xqj # This requires a EE edition feature (com.saxonica.xsltextn) rm -rf net/sf/saxon/option/sql/SQLElementFactory.java # cleanup unnecessary stuff we'll build ourselves rm -rf docs/api find . \( -name "*.jar" -name "*.pyc" \) -delete cp %{SOURCE8} %{SOURCE9} . cat >%{artifact_id}-%{version_maven}.pom < 4.0.0 net.sf.saxon %{artifact_id} %{version_maven} jar %{artifact_id} http://saxon.sf.net/ The XSLT and XQuery Processor Mozilla Public License Version 2.0 http://www.mozilla.org/MPL/2.0/ repo scm:svn:https://dev.saxonica.com/repos/archive/opensource/latest%{version_major_minor}/ scm:svn:https://dev.saxonica.com/repos/archive/opensource/latest%{version_major_minor}/ https://saxon.svn.sourceforge.net/svnroot/saxon/latest%{version_major_minor}/ POM_XML %build mkdir -p build/classes cat >build/classes/edition.properties </dev/null || : # restore the symlink mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || : %files -f .mfiles %license mpl-1.0.txt mpl-1.1.txt %{_javadir}/%{name}/saxon.jar %files manual %doc doc/* %files javadoc %doc mpl-1.0.txt mpl-1.1.txt %{_javadocdir}/%{name} %files demo %{_datadir}/%{name} %files scripts %{_bindir}/%{name} %{_bindir}/%{name}q %{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}q.1* %changelog * Fri Jul 26 2019 Fedora Release Engineering - 9.4.0.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 9.4.0.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 9.4.0.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 9.4.0.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 9.4.0.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 08 2017 Michael Simacek - 9.4.0.9-5 - Fix missing jaxp_transformer_impl symlink after upgrade * Thu Feb 23 2017 Michael Simacek - 9.4.0.9-4 - Remove alternatives for jaxp_transform_impl * Sat Feb 11 2017 Fedora Release Engineering - 9.4.0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 18 2016 Ding-Yi Chen - 9.4.0.9-2 - pom: artifactId: Saxon-HE filename: {artifact_id}-{version_maven}.pom (i.e Saxon-HE-9.4.0-9.pom) saxon-{version_maven} is provided by mvn_alias - Move license file under license tag. * Fri Feb 12 2016 Ding-Yi Chen - 9.4.0.9-1 - Upstream update to 9.4.0-9 - Remove Source7: saxon-{version}.pom, use here-document to generate it. * Thu Feb 04 2016 Fedora Release Engineering - 9.3.0.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 9.3.0.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 15 2015 Mikolaj Izdebski - 9.3.0.4-15 - Remove C# samples * Mon Jan 12 2015 Mat Booth - 9.3.0.4-14 - Resolves: rhbz#1023753 - Fix script param handling. - Update man pages. * Thu Jun 12 2014 Mikolaj Izdebski - 9.3.0.4-13 - Restore removed Maven alias for net.sf.saxon:saxon::dom: * Mon Jun 09 2014 Mat Booth - 9.3.0.4-12 - Install with maven - Drop ancient javadoc/rpm bug workaround - Minor spec file cleanups for latest guidelines * Sun Jun 08 2014 Fedora Release Engineering - 9.3.0.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Jan 31 2014 Ville Skyttä - 9.3.0.4-10 - Add TransformerFactory and XPathFactory service providers to jar. * Tue Oct 15 2013 Mikolaj Izdebski - 9.3.0.4-9 - Add alias with 'dom' classifier * Sun Aug 04 2013 Fedora Release Engineering - 9.3.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 9.3.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Nov 15 2012 Stanislav Ochotnicky - 9.3.0.4-6 - Fix license tag properly to include all pieces and add comments * Sat Jul 21 2012 Fedora Release Engineering - 9.3.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jul 11 2012 Andy Grimm - 9.3.0.4-4 - Fix option syntax in scripts when using xml-commons-resolver (#831631) * Wed Feb 15 2012 Andy Grimm - 9.3.0.4-3 - Fix FTBFS (#791033) - Add a simple POM file * Sat Jan 14 2012 Fedora Release Engineering - 9.3.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Feb 17 2011 Alexander Kurtakov 9.3.0.4-1 - Update to new upstream version. - Adapt to current guidelines. * Wed Feb 09 2011 Fedora Release Engineering - 9.2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Nov 03 2009 Lubomir Rintel - 9.2.0.3-1 - New package, based on saxon8 * Tue Nov 03 2009 Lubomir Rintel - 0:8.7-1 - Tidied up for Fedora * Tue Mar 14 2006 Deepak Bhole - 0:B.8.7-1jpp - Changed package name for compatibility - Upgraded to 8.7 - Added saxonq script for queries - Updated man pages * Mon Jan 30 2006 Ralph Apel - 0:8.6.1-1jpp - Derive saxonb8 from saxon7 * Mon Sep 05 2005 Ralph Apel - 0:7.9.1-1jpp - Derive saxon7 from saxon - no more aelfred nor fop subpackages * Fri Sep 03 2004 Fernando Nasser - 0:6.5.3-3jpp - Rebuilt with Ant 1.6.2 * Mon Jul 19 2004 Ville Skyttä - 0:6.5.3-2jpp - Apply two patches for known limitations from http://saxon.sourceforge.net/saxon6.5.3/limitations.html - Make the command line script use xml-commons-resolver if it's available. - Include man page for command line script. - Add patch to fix command line option handling and document missing options. - New style versionless javadoc dir symlinking. - Crosslink with local J2SE javadocs. - Add missing jdom-javadoc build dependency. * Sun Aug 31 2003 Ville Skyttä - 0:6.5.3-1jpp - Update to 6.5.3. - Crosslink with local xml-commons-apis and fop javadocs. * Tue Jun 3 2003 Ville Skyttä - 0:6.5.2-7jpp - Non-versioned javadoc symlinking. - Include Main-Class attribute in saxon.jar. - Own (ghost) %%{_javadir}/jaxp_transform_impl.jar. - Remove alternatives in preun instead of postun. * Thu Apr 17 2003 Ville Skyttä - 6.5.2-6jpp - Rebuild for JPackage 1.5. - Split shell script to -scripts subpackage. - Use non-versioned jar in jaxp_transform_impl alternative, and don't remove it on upgrade. - Spec file cleanups. * Thu Jul 25 2002 Ville Skyttä 6.5.2-5jpp - Fix shell script (again). - Rebuild with -Dbuild.compiler=modern (saxon-fop won't build with jikes). * Fri Jul 19 2002 Ville Skyttä 6.5.2-4jpp - First public JPackage release. - Compile with build.xml by yours truly. - AElfred no more provides jaxp_parser_impl; it's SAX only, no DOM. - Fix shell script. * Mon Jul 1 2002 Ville Skyttä 6.5.2-3jpp - Provides jaxp_parser_impl. - Requires xml-commons-apis. * Sun Jun 30 2002 Ville Skyttä 6.5.2-2jpp - Use sed instead of bash 2 extension when symlinking jars. - Provides jaxp_transform_impl. * Sat May 11 2002 Ville Skyttä 6.5.2-1jpp - First JPackage release. - Provides jaxp_parser2 though there's no DOM implementation in this AElfred.