Compare commits

..

15 commits

Author SHA1 Message Date
Benjamin A. Beasley
f21d05ef49 Add a SourceLicense field 2024-12-14 08:08:01 -05:00
Benjamin A. Beasley
9f124b497f Add a man page for the Xalan command-line tool 2024-04-05 13:22:32 -04:00
Benjamin A. Beasley
d560232797 Split libraries into a -libs subpackage separate from the command-line tool 2024-04-05 13:22:32 -04:00
Benjamin A. Beasley
c5b5aa7250 Make the -doc subpackage noarch 2024-04-05 13:22:32 -04:00
Benjamin A. Beasley
f2d51a9404 Add an rpmlintrc file
[skip changelog]
2024-04-05 13:22:32 -04:00
Benjamin A. Beasley
3cb349ac5f Convert some stray CRNL line endings 2024-04-05 13:22:32 -04:00
Benjamin A. Beasley
86cd3616f1 Do not install README.md in the base package, only in -doc 2024-04-05 13:22:31 -04:00
Benjamin A. Beasley
27ef2e4037 Do not install KEYS 2024-04-05 13:22:31 -04:00
Benjamin A. Beasley
369c548037 Treat CREDITS and NOTICE as additional license files 2024-04-05 13:22:31 -04:00
Benjamin A. Beasley
b23aae75d5 Save some space in the -doc subpackage by hardlinking duplicate files 2024-04-05 13:22:31 -04:00
Benjamin A. Beasley
c1ab286eef Switch URL from HTTP to HTTPS 2024-04-05 13:22:30 -04:00
Benjamin A. Beasley
f4e32bbb92 Put the GitHub URL in its own macro
[skip changelog]
2024-04-05 13:22:08 -04:00
Benjamin A. Beasley
a4f5818966 Trivially simplify one files list 2024-04-05 13:22:08 -04:00
Benjamin A. Beasley
1a0a944d7f Indicate dirs. in files list with trailing slashes 2024-04-05 13:22:08 -04:00
Benjamin A. Beasley
24acd886b3 Update License to SPDX 2024-04-05 13:22:08 -04:00
3 changed files with 4 additions and 59 deletions

View file

@ -1,20 +0,0 @@
Index: xalan/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp
===================================================================
--- xalan.orig/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp 2025-10-22 08:05:45.403631397 -0400
+++ xalan/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp 2025-10-22 08:18:14.821542155 -0400
@@ -320,13 +320,13 @@
{
XalanUnicodeChar value = decodeUTF16SurrogatePair(ch, theChars[i+1], getMemoryManager());
- if (this->m_isPresentable(value))
+ if (m_predicate(value))
{
write(value);
}
else
{
- this->writeNumberedEntityReference(value);
+ writeNumericCharacterReference(value);
}
++i;

View file

@ -1,15 +0,0 @@
>= ICU 75 needs C++17, see https://bugs.gentoo.org/934471.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,9 +32,9 @@ if (POLICY CMP0067)
cmake_policy(SET CMP0067 NEW)
endif(POLICY CMP0067)
-# Try C++14, then fall back to C++11 and C++98. Used for feature tests
+# Try C++17, then fall back to C++14, then C++11, and C++98. Used for feature tests
# for optional features.
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 17)
# Use folders (for IDE project grouping)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

View file

@ -1,5 +1,4 @@
%bcond icu 1
%bcond_without icu
Name: xalan-c
Version: 1.12.0
# The soversion is made from the major and minor version numbers, e.g. 112 for
@ -17,7 +16,7 @@ Summary: Xalan XSLT processor for C/C++
License: Apache-2.0
SourceLicense: %{license} AND libtiff
URL: https://apache.github.io/xalan-c/
%global tag Xalan-C_%{gsub %{version} . _}
%global tag Xalan-C_%(echo '%{version}' | tr . _)
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global forgeurl https://github.com/apache/xalan-c/
%global releaseurl %{forgeurl}/releases/download/%{tag}
@ -27,21 +26,6 @@ Source2: %{releaseurl}/KEYS
# Man page hand-written for Fedora in groff_man(7) format based on Xalan -?
Source3: Xalan.1
# ICU 75 needs C++17
# https://bugs.gentoo.org/934471
#
# Fixes:
#
# [FTBFS] with icu-76.1
# https://bugzilla.redhat.com/show_bug.cgi?id=2332317
#
# Note that this patch is too trivial for there to be any need to associate a
# license with it; the patch merely adjusts the value of CMAKE_CXX_STANDARD
# from 14 to 17.
Patch: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/xalan-c/files/xalan-c-1.12-icu-75.patch
Patch: gcc_15_fixes.patch
BuildRequires: gnupg2
BuildRequires: cmake
# Either make or ninja is supported.
@ -106,7 +90,7 @@ documentation.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{tar_name} -p 1
%autosetup -n %{tar_name}
# https://github.com/apache/xalan-c/pull/35
chmod -v a-x NOTICE
@ -124,12 +108,8 @@ find docs samples src -type f -exec file '{}' '+' |
xargs dos2unix --keepdate
%conf
export CMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%build
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%cmake_build