Compare commits

...

10 Commits

Author SHA1 Message Date
Benjamin A. Beasley
6bf6b83134 Drop Doxygen-generated HTML documentation.
See https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
2021-09-29 11:06:37 -04:00
Benjamin Beasley
1c651cca86 Merge branch 'f33' into epel7 2020-12-11 11:06:05 -05:00
Benjamin Beasley
b3400671d3 Fixes for API documentation build; ensure we compile with additional hardening flags even on EPEL 2020-12-10 19:16:27 -05:00
Benjamin Beasley
404f327d75 Merge branch 'f33' into epel7 2020-12-10 10:22:05 -05:00
Benjamin Beasley
bd312eca88 Fix sources 2020-12-09 20:28:51 -05:00
Benjamin Beasley
31274e91d4 Packaging improvements, mostly backported from the version 1.12 RPM in
Fedora 34:
- Build API documentation with Doxygen
- Update summaries and descriptions from upstream
- Enable at least XPath tests
- Drop unused old tarball and patches from source RPM
2020-12-09 20:22:14 -05:00
Benjamin Beasley
487394949e add rpmlintrc 2020-12-09 20:22:14 -05:00
Benjamin Beasley
78ef9c3727 Merge branch 'f33' into epel7 2020-12-09 11:17:22 -05:00
Jason Tibbitts
59ceb17c85 Bump and also build on ppc64le.
It was requested that a provenpackager do a bump and build of this
package so that other things could be built.  It appears to be a very
low-impact change and so I just went ahead and did it.
2018-03-07 12:27:31 -06:00
Peter Robinson
23cae21753 Fix build on aarch64 2015-12-07 01:17:05 +00:00
6 changed files with 83 additions and 6795 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
Xalan-C_1_10_0-src.tar.gz
xalan_c-1.11-src.tar.gz
/Xalan-C_1_11_0.tar.gz

View File

@ -1,2 +1 @@
0a3fbb535885531cc544b07a2060bfb1 Xalan-C_1_10_0-src.tar.gz
9227d3e7ab375da3c643934b33a585b8 xalan_c-1.11-src.tar.gz
SHA512 (Xalan-C_1_11_0.tar.gz) = c0af80cf6527237092360110963e953fce15f0140866b291d87c2d0fd91d9e8fb3b6da60a02e27f78ca7623898b5c062b0b6de5ef9f5c08ba13f6202120666ca

View File

@ -1,75 +0,0 @@
The STL headers in gcc-4.3 have been cleaned up, so that the headers don't drag in
unnecessary dependencies which aren't requested by the standard.
This fixes build for gcc-4.3
Lubomir Kundrak <lkundrak@redhat.com>
diff -urp xml-xalan.orig/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp
--- xml-xalan.orig/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp 2005-05-05 02:32:04.000000000 +0200
+++ xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp 2008-01-04 23:15:13.000000000 +0100
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <errno.h>
#endif
+#include <cstring>
diff -urp xml-xalan.orig/c/src/xalanc/XalanDOM/XalanDOMString.cpp xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp
--- xml-xalan.orig/c/src/xalanc/XalanDOM/XalanDOMString.cpp 2005-08-08 17:25:52.000000000 +0200
+++ xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp 2008-01-04 23:17:08.000000000 +0100
@@ -26,6 +26,7 @@
#include <cstdlib>
+#include <cstring>
diff -urp xml-xalan.orig/c/src/xalanc/XalanExe/XalanExe.cpp xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp
--- xml-xalan.orig/c/src/xalanc/XalanExe/XalanExe.cpp 2005-04-29 23:39:46.000000000 +0200
+++ xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp 2008-01-04 23:23:09.000000000 +0100
@@ -24,6 +24,7 @@
#else
#include <iostream>
#endif
+#include <cstring>
diff -urp xml-xalan.orig/c/src/xalanc/XMLSupport/FormatterToHTML.cpp xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.cpp
--- xml-xalan.orig/c/src/xalanc/XMLSupport/FormatterToHTML.cpp 2005-06-30 23:52:35.000000000 +0200
+++ xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.cpp 2008-01-04 23:23:26.000000000 +0100
@@ -26,6 +26,7 @@
#include <cassert>
+#include <cstring>
diff -urp xml-xalan.orig/c/src/xalanc/XSLT/ElemNumber.cpp xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp
--- xml-xalan.orig/c/src/xalanc/XSLT/ElemNumber.cpp 2005-07-26 22:09:17.000000000 +0200
+++ xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp 2008-01-04 23:24:01.000000000 +0100
@@ -15,6 +15,7 @@
*/
#include "ElemNumber.hpp"
+#include <cstring>
#include <xercesc/sax/AttributeList.hpp>
diff -urpxml-xalan/c/src/xalanc.orig/PlatformSupport/DoubleSupport.cpp xml-xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp
--- xml-xalan/c/src/xalanc.orig/PlatformSupport/DoubleSupport.cpp 2010-02-12 11:11:30.000000000 +0000
+++ xml-xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp 2010-02-12 11:12:15.000000000 +0000
@@ -19,9 +19,7 @@
#include <clocale>
#include <cmath>
-#if !defined(XALAN_NO_STD_NUMERIC_LIMITS)
-#include <limits>
-#endif
+#include <climits>
#include "DOMStringHelper.hpp"

File diff suppressed because it is too large Load Diff

2
xalan-c.rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
# These are not real spelling errors...
addFilter(r'spelling-error .* en_US (stylesheet) ')

View File

@ -1,85 +1,133 @@
Name: xalan-c
Version: 1.11.0
Release: 19%{?dist}
Summary: Xalan XSLT processor for C
Release: 22%{?dist}
Summary: Xalan XSLT processor for C/C++
License: ASL 2.0
URL: http://xml.apache.org/xalan-c/
Source0: http://www.us.apache.org/dist/xalan/xalan-c/sources/xalan_c-1.11-src.tar.gz
URL: https://xalan.apache.org/%{name}/
%global tag Xalan-C_%(echo '%{version}' | tr . _)
%global tar_name %{tag}
%global release_url https://github.com/apache/%{name}/archive/
Source0: %{release_url}/%{tar_name}.tar.gz
Patch0: xalan-c-1.10.0-escaping.patch
BuildRequires: make
BuildRequires: gnulib-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: xerces-c-devel
%global so_version %(echo %{version} | cut -d . -f -2 | tr -d .)
# For EPEL
%global _hardened_build 1
%description
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
other XML document types.
The Apache Xalan-C++ Project provides a library and a command line program to
transform XML documents using a stylesheet that conforms to XSLT 1.0 standards.
Xalan is a project of the Apache Software Foundation.
%package devel
Summary: Header files, libraries and development documentation for %{name}
Requires: %{name} = %{version}-%{release}
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
%package doc
Summary: Documentation for Xalan XSLT processor for C
Summary: Documentation for %{name}
# Doxygen HTML help is not suitable for packaging due to a minified JavaScript
# bundle inserted by Doxygen itself. See discussion at
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555.
#
# Normally, we would enable the Doxygen PDF documentation as a lesser
# substitute, but building it fails with:
# ! TeX capacity exceeded, sorry [pool size=5905151].
%description doc
Documentation for %{name}.
Documentation for xalan-c. See https://apache.github.io/xalan-c/ for full HTML
documentation.
%prep
%setup -q -n xalan-c-1.11/c
%patch0 -p2 -b .escaping
find -type d -name CVS -print0 | xargs -0 rm -rf
chmod 644 NOTICE
%autosetup -n %{name}-%{tar_name} -p2
# Update config.guess for new architectures
cp /usr/lib/rpm/config.guess config.guess
# https://github.com/apache/xalan-c/pull/35
chmod a-x NOTICE
# Update config.guess/config.sub for new architectures (aarch64)
cp -vp \
%{_datadir}/gnulib/build-aux/config.guess \
%{_datadir}/gnulib/build-aux/config.sub \
./
%build
export XALANCROOT="${PWD}"
export XERCESROOT=%{_includedir}/xercesc/
COMMONARGS="-plinux -cgcc -xg++ -minmem"
%ifarch alpha %{power64} s390x sparc64 x86_64 aarch64
./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
%else
./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
%endif
# _smp_mflags do not work
make
./runConfigure ${COMMONARGS} -b%{__isa_bits} -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
# Parallel build does not work
%global _smp_mflags %{nil}
%make_build all tests
%install
export XALANCROOT="${PWD}"
export XERCESROOT=%{_includedir}/xercesc/
make install DESTDIR=%{buildroot}
%make_install
# Required for EPEL:
%ldconfig_scriptlets
%check
env LD_LIBRARY_PATH=$PWD/lib ./bin/testXPath
# env LD_LIBRARY_PATH=$PWD/lib ./bin/ThreadTest crashes; how inauspicious!
%files
%doc LICENSE KEYS NOTICE
%license LICENSE
%{_bindir}/Xalan
%{_libdir}/libxalan*.so.*
%{_libdir}/libxalanMsg.so.%{so_version}
%{_libdir}/libxalanMsg.so.%{so_version}.*
%{_libdir}/libxalan-c.so.%{so_version}
%{_libdir}/libxalan-c.so.%{so_version}.*
%files devel
%{_libdir}/libxalan*.so
%{_libdir}/libxalanMsg.so
%{_libdir}/libxalan-c.so
%{_includedir}/xalanc/
%files doc
%doc readme.html xdocs samples
%license LICENSE
%doc KEYS
%doc NOTICE
%doc README
%doc readme.html
%doc samples
%changelog
* Wed Sep 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.11.0-22
- Drop Doxygen-generated HTML documentation
* Thu Dec 10 2020 Benjamin A. Beasley <code@musicinmybrain.net> - 1.11.0-21
- Fixes for API documentation build
- Ensure we compile with additional hardening flags even on EPEL
* Wed Dec 9 2020 Benjamin A. Beasley <code@musicinmybrain.net> - 1.11.0-20
- Build API documentation with Doxygen
- Update summaries and descriptions from upstream
- Enable at least the XPath tests
- Drop unused old tarball and patches from source RPM
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-19
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild