Compare commits

..

37 commits

Author SHA1 Message Date
Fedora Release Engineering
aad66176c9 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:59:57 +00:00
Cristian Le
4c6e699188 Allow to build with CMake 4.0 (rhbz#2381639) 2026-06-08 08:23:31 +00:00
František Zatloukal
69abae99b7 Rebuilt for icu 78.3 2026-06-08 09:53:33 +02:00
Fedora Release Engineering
4a34ca4c7b Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:26:25 +00:00
Marcin Juszkiewicz
d090728567 Fix build with GCC 15.
Patch taken from the Debian project.

Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
2025-11-26 10:17:49 +01:00
František Zatloukal
0e6a5472ca Rebuilt for icu 77.1 2025-08-06 09:58:42 +02:00
Fedora Release Engineering
5146b0b2cd Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:36:44 +00:00
Fedora Release Engineering
d75ac1f2c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 15:23:42 +00:00
Benjamin A. Beasley
4feb6e480a Build as C++17 instead of C++14
- This is needed for ICU 75 compatibility; it fixes RHBZ#2332317.
2024-12-13 14:14:31 -05:00
Benjamin A. Beasley
1ce79f1f2e Add a SourceLicense field 2024-12-13 14:14:31 -05:00
Benjamin A. Beasley
12a0a5d16d Invoke %cmake in %conf rather than in %build 2024-11-03 07:06:59 -05:00
6952d6f21d Rebuild for xerces-c 3.3 2024-10-18 14:08:38 +01:00
Fedora Release Engineering
3ee7711344 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:40:58 +00:00
Benjamin A. Beasley
1026f8758b Add a man page for the Xalan command-line tool 2024-04-05 11:33:13 -04:00
Benjamin A. Beasley
865b071569 Split libraries into a -libs subpackage separate from the command-line tool 2024-04-05 11:13:22 -04:00
Benjamin A. Beasley
df6bef35ef Make the -doc subpackage noarch 2024-04-05 10:54:09 -04:00
Benjamin A. Beasley
2a9ee9a725 Add an rpmlintrc file
[skip changelog]
2024-04-05 10:53:36 -04:00
Benjamin A. Beasley
329bf982f9 Convert some stray CRNL line endings 2024-04-05 10:47:18 -04:00
Benjamin A. Beasley
907fdb70b5 Do not install README.md in the base package, only in -doc 2024-04-05 10:43:01 -04:00
Benjamin A. Beasley
53aa39d24b Do not install KEYS 2024-04-05 10:43:00 -04:00
Benjamin A. Beasley
0b91f9cbc1 Treat CREDITS and NOTICE as additional license files 2024-04-05 10:42:40 -04:00
Benjamin A. Beasley
21057a2f3f Save some space in the -doc subpackage by hardlinking duplicate files 2024-04-05 10:38:06 -04:00
Benjamin A. Beasley
e643033a29 Switch URL from HTTP to HTTPS 2024-02-27 08:46:46 -05:00
Benjamin A. Beasley
3a8edd582c F39+: Form release tag name without a subshell
[skip changelog]
2024-02-27 08:45:47 -05:00
Benjamin A. Beasley
e6a89aacd4 Put the GitHub URL in its own macro
[skip changelog]
2024-02-27 08:45:26 -05:00
3c013e931d Rebuild for ICU 74 2024-01-31 20:27:05 +00:00
Fedora Release Engineering
f27faf6993 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 09:18:08 +00:00
Fedora Release Engineering
1ce3c9018f Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:29:38 +00:00
František Zatloukal
55784e1b49 Rebuilt for ICU 73.2 2023-07-11 22:23:28 +02:00
Benjamin A. Beasley
6d018f8a3e Use new (rpm 4.17.1+) bcond style 2023-06-18 12:11:59 -04:00
Fedora Release Engineering
ca4c1ee033 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 07:07:19 +00:00
4af08bbc23 Rebuild for ICU 72 2022-12-31 03:51:03 +00:00
Benjamin A. Beasley
13e310aacc Trivially simplify one files list 2022-12-22 13:06:35 -05:00
Benjamin A. Beasley
a867aba389 Indicate dirs. in files list with trailing slashes 2022-12-22 13:06:30 -05:00
Benjamin A. Beasley
c6181b337e Update License to SPDX 2022-11-29 14:35:47 -05:00
František Zatloukal
18d7d7789d Rebuilt for ICU 71.1 2022-08-01 15:13:06 +02:00
Fedora Release Engineering
76e334d3cb Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:45:29 +00:00
3 changed files with 59 additions and 4 deletions

20
gcc_15_fixes.patch Normal file
View file

@ -0,0 +1,20 @@
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;

15
xalan-c-1.12-icu-75.patch Normal file
View file

@ -0,0 +1,15 @@
>= 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,4 +1,5 @@
%bcond_without icu
%bcond icu 1
Name: xalan-c
Version: 1.12.0
# The soversion is made from the major and minor version numbers, e.g. 112 for
@ -16,7 +17,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_%(echo '%{version}' | tr . _)
%global tag Xalan-C_%{gsub %{version} . _}
%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}
@ -26,6 +27,21 @@ 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.
@ -90,7 +106,7 @@ documentation.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{tar_name}
%autosetup -n %{tar_name} -p 1
# https://github.com/apache/xalan-c/pull/35
chmod -v a-x NOTICE
@ -108,8 +124,12 @@ find docs samples src -type f -exec file '{}' '+' |
xargs dos2unix --keepdate
%build
%conf
export CMAKE_POLICY_VERSION_MINIMUM=3.5
%cmake %{?with_icu:-Dtranscoder=icu} -GNinja
%build
%cmake_build