public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icu] f45: define the tzdata path as /usr/share/icu/tzdata/le
@ 2026-11-03  8:17 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-03  8:17 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/icu
            Branch : f45
            Commit : d42d5c572d45e775d69edfa761f094011b4472f8
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-11-03T07:13:04+01:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/icu/c/d42d5c572d45e775d69edfa761f094011b4472f8?branch=f45

            Log:
            define the tzdata path as /usr/share/icu/tzdata/le
  or /usr/share/icu/tzdata/be on Big Endian

recommends icu-tzdata for updated time zones

---
diff --git a/icu.spec b/icu.spec
index 1e0d17b..754a6dc 100644
--- a/icu.spec
+++ b/icu.spec
@@ -39,6 +39,7 @@ Tools and utilities for developing with icu.
 
 %package -n lib%{name}
 Summary: International Components for Unicode - libraries
+Recommends: icu-tzdata
 
 %description -n lib%{name}
 The International Components for Unicode (ICU) libraries provide
@@ -86,8 +87,11 @@ CFLAGS='%optflags -fno-strict-aliasing'
 CXXFLAGS='%optflags -fno-strict-aliasing'
 # Endian: BE=0 LE=1
 %if ! 0%{?endian}
-CPPFLAGS='-DU_IS_BIG_ENDIAN=1'
+CPPFLAGS='-DU_TIMEZONE_FILES_DIR=%{_datadir}/%{name}/tzdata/be -DU_IS_BIG_ENDIAN=1'
+%else
+CPPFLAGS='-DU_TIMEZONE_FILES_DIR=%{_datadir}/%{name}/tzdata/le'
 %endif
+export CPPFLAGS
 
 #rhbz856594 do not use --disable-renaming or cope with the mess
 OPTIONS='--with-data-packaging=library --disable-samples'
@@ -172,6 +176,7 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l
 %license LICENSE
 %doc icu4c/readme.html
 %{_libdir}/*.so.*
+%dir %{_datadir}/%{name}
 
 %files -n lib%{name}-devel
 %license LICENSE
@@ -184,7 +189,6 @@ LD_LIBRARY_PATH=lib:stubdata:tools/ctestfw:$LD_LIBRARY_PATH bin/uconv -l
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/%{name}
-%dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/%{version}
 %{_datadir}/%{name}/%{version}/install-sh
 %{_datadir}/%{name}/%{version}/mkinstalldirs

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03  8:17 [rpms/icu] f45: define the tzdata path as /usr/share/icu/tzdata/le Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox