Blame SPECS/saxon.spec

911168
%global pkg_name saxon
911168
%{?scl:%scl_package %{pkg_name}}
911168
%{?maven_find_provides_and_requires}
911168
911168
# Copyright (c) 2000-2005, JPackage Project
911168
# All rights reserved.
911168
#
911168
# Redistribution and use in source and binary forms, with or without
911168
# modification, are permitted provided that the following conditions
911168
# are met:
911168
#
911168
# 1. Redistributions of source code must retain the above copyright
911168
#    notice, this list of conditions and the following disclaimer.
911168
# 2. Redistributions in binary form must reproduce the above copyright
911168
#    notice, this list of conditions and the following disclaimer in the
911168
#    documentation and/or other materials provided with the
911168
#    distribution.
911168
# 3. Neither the name of the JPackage Project nor the names of its
911168
#    contributors may be used to endorse or promote products derived
911168
#    from this software without specific prior written permission.
911168
#
911168
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
911168
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
911168
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
911168
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
911168
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
911168
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
911168
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
911168
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
911168
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
911168
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
911168
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
911168
#
911168
911168
Summary:        Java XPath, XSLT 2.0 and XQuery implementation
911168
Name:           %{?scl_prefix}%{pkg_name}
911168
Version:        9.3.0.4
911168
Release:        11.15%{?dist}
911168
# net.sf.saxon.om.XMLChar is from ASL-licensed Xerces
911168
# net/sf/saxon/option/jdom/ is MPLv1.1
911168
# net/sf/saxon/serialize/codenorm/ is UCD
911168
# net/sf/saxon/expr/sort/GenericSorter.java is MIT
911168
# net/sf/saxon/expr/Tokenizer.java and few other bits are BSD
911168
License:        MPLv1.0 and MPLv1.1 and ASL 1.1 and UCD and MIT
911168
URL:            http://saxon.sourceforge.net/
911168
Source0:        https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxon9-3-0-4source.zip
911168
Source1:        %{pkg_name}.saxon.script
911168
Source2:        %{pkg_name}.saxonq.script
911168
Source3:        %{pkg_name}.build.script
911168
Source4:        %{pkg_name}.1
911168
Source5:        %{pkg_name}q.1
911168
Source6:        https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxon-resources9-3.zip
911168
Source7:        http://irrational.googlecode.com/svn/trunk/maven-repo/net/sf/saxon/saxon-he/9.3.0.4/saxon-he-9.3.0.4.pom
911168
Source8:        http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.0.txt
911168
Source9:        http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.1.txt
911168
BuildRequires:  unzip
911168
BuildRequires:  %{?scl_prefix_java_common}ant
911168
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
911168
BuildRequires:  %{?scl_prefix_java_common}bea-stax-api
911168
BuildRequires:  %{?scl_prefix_java_common}xml-commons-apis
911168
BuildRequires:  %{?scl_prefix_java_common}jdom >= 0:1.0-0.b7
911168
BuildRequires:  %{?scl_prefix_java_common}dom4j
911168
Requires:       %{?scl_prefix_java_common}bea-stax-api
911168
Requires:       %{?scl_prefix_java_common}bea-stax
911168
911168
# Older versions were split into multile packages
911168
911168
BuildArch:      noarch
911168
911168
%description
911168
Saxon HE is Saxonica's non-schema-aware implementation of the XPath 2.0,
911168
XSLT 2.0, and XQuery 1.0 specifications aligned with the W3C Candidate
911168
Recommendation published on 3 November 2005. It is a complete and
911168
conformant implementation, providing all the mandatory features of
911168
those specifications and nearly all the optional features.
911168
911168
911168
%package        manual
911168
Summary:        Manual for %{pkg_name}
911168
Requires:       %{?scl_prefix}runtime
911168
911168
%description    manual
911168
Manual for %{pkg_name}.
911168
911168
%package        javadoc
911168
Summary:        Javadoc for %{pkg_name}
911168
911168
%description    javadoc
911168
Javadoc for %{pkg_name}.
911168
911168
%package        demo
911168
Summary:        Demos for %{pkg_name}
911168
Requires:       %{name} = %{version}-%{release}
911168
911168
%description    demo
911168
Demonstrations and samples for %{pkg_name}.
911168
911168
%package        scripts
911168
Summary:        Utility scripts for %{pkg_name}
911168
Requires:       %{?scl_prefix_java_common}jpackage-utils >= 0:1.5
911168
Requires:       %{name} = %{version}-%{release}
911168
911168
%description    scripts
911168
Utility scripts for %{pkg_name}.
911168
911168
911168
%prep
911168
%setup -q -c -n %{pkg_name}-%{version}
911168
%{?scl:scl enable %{scl} - <<"EOF"}
911168
set -e -x
911168
911168
unzip -q %{SOURCE6}
911168
cp -p %{SOURCE3} ./build.xml
911168
911168
# deadNET
911168
rm -rf net/sf/saxon/dotnet samples/cs
911168
911168
# Depends on XQJ (javax.xml.xquery)
911168
rm -rf net/sf/saxon/xqj
911168
911168
# XOM support is not wanted
911168
rm -rf ./doc/javadoc/net/sf/saxon/option/xom
911168
rm -rf ./net/sf/saxon/option/xom
911168
911168
# This requires a EE edition feature (com.saxonica.xsltextn)
911168
rm -rf net/sf/saxon/option/sql/SQLElementFactory.java
911168
911168
# cleanup unnecessary stuff we'll build ourselves
911168
rm -rf docs/api
911168
find . \( -name "*.jar" -name "*.pyc" \) -delete
911168
911168
cp %{SOURCE8} %{SOURCE9} .
911168
%{?scl:EOF}
911168
911168
%build
911168
%{?scl:scl enable %{scl} - <<"EOF"}
911168
set -e -x
911168
mkdir -p build/classes
911168
echo "config=net.sf.saxon.Configuration
911168
platform=net.sf.saxon.java.JavaPlatform" > build/classes/edition.properties
911168
911168
export CLASSPATH=$(build-classpath xml-commons-apis jdom bea-stax-api dom4j)
911168
ant \
911168
  -Dj2se.javadoc=%{_javadocdir}/java \
911168
  -Djdom.javadoc=%{_javadocdir}/jdom
911168
%{?scl:EOF}
911168
911168
911168
%install
911168
%{?scl:scl enable %{scl} - <<"EOF"}
911168
set -e -x
911168
rm -rf $RPM_BUILD_ROOT
911168
911168
# jars
911168
mkdir -p $RPM_BUILD_ROOT%{_javadir}
911168
cp -p build/lib/%{pkg_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}.jar
911168
911168
# javadoc
911168
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
911168
cp -pr build/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
911168
911168
# demo
911168
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}
911168
cp -pr samples/* $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}
911168
911168
# scripts
911168
mkdir -p $RPM_BUILD_ROOT%{_bindir}
911168
install -p -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{pkg_name}
911168
install -p -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{pkg_name}q
911168
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
911168
install -p -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/%{pkg_name}.1
911168
install -p -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/%{pkg_name}q.1
911168
911168
911168
# a simple POM
911168
install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir}
911168
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{pkg_name}.pom
911168
sed -i -e 's/saxon-he/saxon/' $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{pkg_name}.pom
911168
%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar
911168
%{?scl:EOF}
911168
911168
911168
%files -f .mfiles
911168
%defattr(-,root,root,-)
911168
%doc mpl-1.0.txt mpl-1.1.txt
911168
911168
%files manual
911168
%defattr(-,root,root,-)
911168
%doc doc/*
911168
911168
%files javadoc
911168
%defattr(-,root,root,-)
911168
%doc %{_javadocdir}/%{name}
911168
911168
%files demo
911168
%defattr(-,root,root,-)
911168
%{_datadir}/%{pkg_name}
911168
911168
%files scripts
911168
%defattr(-,root,root,-)
911168
%{_bindir}/%{pkg_name}
911168
%{_bindir}/%{pkg_name}q
911168
%{_mandir}/man1/%{pkg_name}.1*
911168
%{_mandir}/man1/%{pkg_name}q.1*
911168
911168
911168
%changelog
911168
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 9.3.0.4-11.15
911168
- Fix BR on maven-local & co.
911168
911168
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 9.3.0.4-11.14
911168
- maven33 rebuild #2
911168
911168
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 9.3.0.4-11.13
911168
- maven33 rebuild
911168
911168
* Thu Jan 15 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.12
911168
- Remove prebuilt binary files from samples
911168
911168
* Wed Jan 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.11
911168
- Add requires on SCL filesystem package
911168
911168
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 9.3.0.4-11.10
911168
- Mass rebuild 2015-01-13
911168
911168
* Mon Jan 12 2015 Michal Srb <msrb@redhat.com> - 9.3.0.4-11.9
911168
- Fix BR/R
911168
911168
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 9.3.0.4-11.8
911168
- Migrate to .mfiles
911168
911168
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 9.3.0.4-11.7
911168
- Mass rebuild 2015-01-06
911168
911168
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.6
911168
- Mass rebuild 2014-05-26
911168
911168
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.5
911168
- Mass rebuild 2014-02-19
911168
911168
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.4
911168
- Mass rebuild 2014-02-18
911168
911168
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.3
911168
- Remove requires on java
911168
911168
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.2
911168
- Rebuild to regenerate auto-requires
911168
911168
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-11.1
911168
- First maven30 software collection build
911168
911168
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 9.3.0.4-11
911168
- Mass rebuild 2013-12-27
911168
911168
* Wed Sep 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-10
911168
- Disable support for XOM
911168
911168
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-9
911168
- Remove workaround for rpm bug #646523
911168
911168
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.3.0.4-8
911168
- Rebuild to regenerate API documentation
911168
- Resolves: CVE-2013-1571
911168
911168
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.3.0.4-7
911168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
911168
911168
* Thu Nov 15 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 9.3.0.4-6
911168
- Fix license tag properly to include all pieces and add comments
911168
911168
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.3.0.4-5
911168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
911168
911168
* Wed Jul 11 2012 Andy Grimm <agrimm@gmail.com> - 9.3.0.4-4
911168
- Fix option syntax in scripts when using xml-commons-resolver (#831631)
911168
911168
* Wed Feb 15 2012 Andy Grimm <agrimm@gmail.com> - 9.3.0.4-3
911168
- Fix FTBFS (#791033)
911168
- Add a simple POM file
911168
911168
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.3.0.4-2
911168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
911168
911168
* Thu Feb 17 2011 Alexander Kurtakov <akurtako@redhat.com> 9.3.0.4-1
911168
- Update to new upstream version.
911168
- Adapt to current guidelines.
911168
911168
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2.0.3-2
911168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
911168
911168
* Tue Nov 03 2009 Lubomir Rintel <lkundrak@v3.sk> - 9.2.0.3-1
911168
- New package, based on saxon8
911168
911168
* Tue Nov 03 2009 Lubomir Rintel <lkundrak@v3.sk> - 0:8.7-1
911168
- Tidied up for Fedora
911168
911168
* Tue Mar 14 2006 Deepak Bhole <dbhole@redhat.com> - 0:B.8.7-1jpp
911168
- Changed package name for compatibility
911168
- Upgraded to 8.7
911168
- Added saxonq script for queries
911168
- Updated man pages
911168
911168
* Mon Jan 30 2006 Ralph Apel <r.apel@r-apel.de> - 0:8.6.1-1jpp
911168
- Derive saxonb8 from saxon7
911168
911168
* Mon Sep 05 2005 Ralph Apel <r.apel@r-apel.de> - 0:7.9.1-1jpp
911168
- Derive saxon7 from saxon
911168
- no more aelfred nor fop subpackages
911168
911168
* Fri Sep 03 2004 Fernando Nasser <fnasser@redhat.com> - 0:6.5.3-3jpp
911168
- Rebuilt with Ant 1.6.2
911168
911168
* Mon Jul 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.3-2jpp
911168
- Apply two patches for known limitations from
911168
  http://saxon.sourceforge.net/saxon6.5.3/limitations.html
911168
- Make the command line script use xml-commons-resolver if it's available.
911168
- Include man page for command line script.
911168
- Add patch to fix command line option handling and document missing options.
911168
- New style versionless javadoc dir symlinking.
911168
- Crosslink with local J2SE javadocs.
911168
- Add missing jdom-javadoc build dependency.
911168
911168
* Sun Aug 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.3-1jpp
911168
- Update to 6.5.3.
911168
- Crosslink with local xml-commons-apis and fop javadocs.
911168
911168
* Tue Jun  3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.2-7jpp
911168
- Non-versioned javadoc symlinking.
911168
- Include Main-Class attribute in saxon.jar.
911168
- Own (ghost) %%{_javadir}/jaxp_transform_impl.jar.
911168
- Remove alternatives in preun instead of postun.
911168
911168
* Thu Apr 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 6.5.2-6jpp
911168
- Rebuild for JPackage 1.5.
911168
- Split shell script to -scripts subpackage.
911168
- Use non-versioned jar in jaxp_transform_impl alternative, and don't remove
911168
  it on upgrade.
911168
- Spec file cleanups.
911168
911168
* Thu Jul 25 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-5jpp
911168
- Fix shell script (again).
911168
- Rebuild with -Dbuild.compiler=modern (saxon-fop won't build with jikes).
911168
911168
* Fri Jul 19 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-4jpp
911168
- First public JPackage release.
911168
- Compile with build.xml by yours truly.
911168
- AElfred no more provides jaxp_parser_impl; it's SAX only, no DOM.
911168
- Fix shell script.
911168
911168
* Mon Jul  1 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-3jpp
911168
- Provides jaxp_parser_impl.
911168
- Requires xml-commons-apis.
911168
911168
* Sun Jun 30 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-2jpp
911168
- Use sed instead of bash 2 extension when symlinking jars.
911168
- Provides jaxp_transform_impl.
911168
911168
* Sat May 11 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-1jpp
911168
- First JPackage release.
911168
- Provides jaxp_parser2 though there's no DOM implementation in this AElfred.