%define version_dash %{gsub %{version} %. -} %define version_underscore %{gsub %{version} %. _} Name: icu Version: 77.1 Release: 2.stillos.1%{?dist} Summary: Compatibility runtime libraries for ICU 77 License: Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-Clause AND NAIST-2003 AND LicenseRef-Fedora-Public-Domain URL: http://site.icu-project.org/ Source0: https://github.com/unicode-org/icu/releases/download/release-%{version_dash}/icu4c-%{version_underscore}-src.tgz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: python3 Patch4: gennorm2-man.patch Patch5: icuinfo-man.patch Patch6: 3496.patch %description This source package builds a parallel-installable ICU 77 runtime compatibility package for Fedora 44 GNOME components rebuilt on AlmaLinux/RHEL 10. It intentionally does not ship the normal libicu, icu, libicu-devel, or libicu-doc packages, so AlmaLinux base libicu 74 continues to satisfy platform packages such as boost, samba, and vte. %package -n libicu77 Summary: International Components for Unicode 77 compatibility libraries Obsoletes: libicu = 77.1-1.stillos.1%{?dist} %description -n libicu77 The International Components for Unicode (ICU) 77 runtime libraries. This package is parallel-installable with AlmaLinux/RHEL 10 libicu 74 and exists only to satisfy binaries that were built against ICU 77. %{!?endian: %global endian %(%{__python3} -c "import sys;print (0 if sys.byteorder=='big' else 1)")} %prep %autosetup -p1 -n icu %build pushd source CFLAGS='%optflags -fno-strict-aliasing' CXXFLAGS='%optflags -fno-strict-aliasing' %if ! 0%{?endian} CPPFLAGS='-DU_IS_BIG_ENDIAN=1' %endif OPTIONS='--with-data-packaging=library --disable-samples' %configure $OPTIONS sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' -i common/unicode/uconfig.h sed -i -r 's|(PKGDATA_OPTS = )|\1-v |' data/Makefile %make_build %install %make_install %{?_smp_mflags} -C source chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.* rm -rf \ $RPM_BUILD_ROOT%{_bindir} \ $RPM_BUILD_ROOT%{_sbindir} \ $RPM_BUILD_ROOT%{_includedir} \ $RPM_BUILD_ROOT%{_mandir} \ $RPM_BUILD_ROOT%{_datadir}/icu \ $RPM_BUILD_ROOT%{_libdir}/icu \ $RPM_BUILD_ROOT%{_libdir}/pkgconfig rm -f $RPM_BUILD_ROOT%{_libdir}/*.so %check true %files -n libicu77 %license LICENSE license.html %doc readme.html %{_libdir}/*.so.77* %changelog * Wed Jun 03 2026 stillHQ - 77.1-2.stillos.1 - Build ICU 77 as a parallel-installable runtime compatibility package