%def_disable snapshot
%define real_ver_major 74
%define real_ver_minor 2
%define real_ver %{real_ver_major}.%{real_ver_minor}
%def_without doc
%define __isa_bits %(s="%_lib"; s=${s#lib}; echo "${s:-32}")
%if "%__isa_bits" == "32"
%def_disable check
%endif
Name: icu
Version: %(echo %real_ver_major | sed -e 's|\(.\)|\1.|').%real_ver_minor
Release: alt1
Epoch: 1
Summary: International Components for Unicode
Group: System/Libraries
License: ICU and BSD-3-Clause and Unicode-TOU and naist-2003
Url: http://www.icu-project.org/
%if_disabled snapshot
Source: https://github.com/unicode-org/%name/releases/download/release-%{real_ver_major}-%{real_ver_minor}/icu4c-%{real_ver_major}_%{real_ver_minor}-src.tgz
%else
Vcs: https://github.com/unicode-org/icu.git
Source: icu-%version.tar
%endif
Source1: LICENSE-Unicode-v3
Patch: icu-6.3.1-alt-e2k.patch
BuildRequires(pre): rpm-build-python3
BuildRequires: autoconf-archive gcc-c++ libstdc++-devel python3-base
%{?_with_doc:BuildRequires: doxygen}
%define libicu libicu%real_ver_major
%description
ICU is a C++ and C library that provides robust and full-featured Unicode
support
%package utils
Summary: International Components for Unicode (utilities)
Group: Text tools
Requires: %libicu = %EVR
Provides: icu = %version
Obsoletes: icu < %version
%description utils
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains the utilites for compiling and developing
programs with ICU
%package -n %libicu
Summary: International Components for Unicode (libraries)
Group: System/Libraries
Provides: libicu = %EVR
Obsoletes: libicu < %EVR
%description -n %libicu
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains the runtime libraries for ICU
%package -n libicu-devel
Summary: International Components for Unicode (development files)
Group: Development/C++
Requires: %libicu = %EVR
Requires: icu-utils = %EVR
%description -n libicu-devel
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains the development files for ICU.
%package samples
Summary: Sample programs for ICU
Group: Development/Other
Requires: libicu-devel = %EVR
BuildArch: noarch
%description samples
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains sample code for ICU.
%prep
%setup -c
%setup -DT -n %name-%version/icu
cp %SOURCE1 ../LICENSE
%ifarch %e2k
%patch -p2
%add_optflags -finput-charset=utf8
%endif
sed -ri '/^LDFLAGSICUDT=/ s,-nodefaultlibs -nostdlib,,' source/config/mh-linux
# switch to zone1970.tab
sed -i 's|zone\.tab|zone1970.tab|' source/tools/tzcode/*
%build
export PYTHON=%__python3
%add_optflags %(getconf LFS_CFLAGS)
cd source
%autoreconf
%configure \
--disable-samples \
--disable-static \
--with-data-packaging=library
%make_build
%install
cd source
%makeinstall_std
cp -a samples %buildroot%_datadir/icu
%check
cd source
%make -k check VERBOSE=1
%files utils
%_bindir/*
%exclude %_bindir/icu-config
%_sbindir/*
%exclude %_man1dir/icu-config.1*
%_man1dir/*
%_man8dir/*
%files -n %libicu
%_libdir/*.so.*
%doc LICENSE readme.html
%files -n libicu-devel
%_includedir/*
%_bindir/icu-config
%_libdir/*.so
%_libdir/icu
%_pkgconfigdir/*.pc
%dir %_datadir/icu
%_datadir/icu/%real_ver
%_man1dir/icu-config.1*
%doc *.html *.css
%files samples
%_datadir/icu/samples
%changelog
* Wed Dec 13 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.4.2-alt1
- 7.4.2
* Tue Oct 31 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.4.1-alt1
- 7.4.1
* Tue Oct 31 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.3.2-alt1.1
- disabled %%check
* Wed Jun 14 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.3.2-alt1
- 73.2
* Thu Apr 27 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.3.1-alt2
- applied upstream fix:
"ICU-22356 Use ConstChar16Ptr to safely cast from UChar* to char16_t*."
(ALT #45979)
* Thu Apr 20 2023 Yuri N. Sedunov <aris@altlinux.org> 1:7.3.1-alt1
- 7.3.1
* Sun Oct 23 2022 Yuri N. Sedunov <aris@altlinux.org> 1:7.2.1-alt1
- 72.1
* Sun Apr 17 2022 Yuri N. Sedunov <aris@altlinux.org> 1:7.1.1-alt1
- 7.1.1
* Sun Jun 27 2021 Yuri N. Sedunov <aris@altlinux.org> 1:6.9.1-alt2
- applied patch for ICU-21613: "Fix undefined behaviour in ComplexUnitsConverter::applyRounder"
(fixed build for mipsel and riscv64)
* Wed Jun 09 2021 Yuri N. Sedunov <aris@altlinux.org> 1:6.9.1-alt1
- 6.9.1
* Fri May 29 2020 Yuri N. Sedunov <aris@altlinux.org> 1:6.7.1-alt2
- source/config/mh-linux:
cleaned LDFLAGSICUDT to avoid linking problems on armh
* Sun May 10 2020 Yuri N. Sedunov <aris@altlinux.org> 1:6.7.1-alt1
- 6.7.1
* Tue Mar 17 2020 Yuri N. Sedunov <aris@altlinux.org> 1:6.6.1-alt1
- 6.6.1
- fixed License tag
* Sun Oct 06 2019 Yuri N. Sedunov <aris@altlinux.org> 1:6.5.1-alt1
- 6.5.1
* Fri Apr 19 2019 Yuri N. Sedunov <aris@altlinux.org> 1:6.4.2-alt1
- 6.4.2
* Sat Apr 06 2019 Yuri N. Sedunov <aris@altlinux.org> 1:6.4.1-alt1
- 6.4.1
* Fri Mar 29 2019 Yuri N. Sedunov <aris@altlinux.org> 1:6.3.1-alt2
- mike@: fixed build on e2k
* Sat Oct 20 2018 Yuri N. Sedunov <aris@altlinux.org> 1:6.3.1-alt1
- 6.3.1
* Sat Jun 23 2018 Yuri N. Sedunov <aris@altlinux.org> 1:6.2.1-alt1
- 6.2.1
* Thu Jan 04 2018 Yuri N. Sedunov <aris@altlinux.org> 1:6.0.2-alt1
- 6.0.2
* Thu Jan 12 2017 Michael Shigorin <mike@altlinux.org> 1:5.6.1-alt1.1.1
- BOOTSTRAP: drop unused BR: doxygen
* Tue Mar 15 2016 Yuri N. Sedunov <aris@altlinux.org> 1:5.6.1-alt1.1
- fixed altbug #31778
* Mon Feb 08 2016 Yuri N. Sedunov <aris@altlinux.org> 1:5.6.1-alt1
- 5.6.1 (ALT #30950)
* Mon May 13 2013 Dmitry V. Levin <ldv@altlinux.org> 1:5.1.1-alt3
- Renamed libicu to libicu50 (closes: #28941).
* Thu Dec 27 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 1:5.1.1-alt2
- fixed ABI breakage in previous release
* Wed Dec 19 2012 Valery Inozemtsev <shrek@altlinux.ru> 1:5.1.1-alt1
- 5.1.1
* Wed Nov 14 2012 Yuri N. Sedunov <aris@altlinux.org> 1:5.1-alt2
- disabled C++ 2011 test (https://bugs.gentoo.org/show_bug.cgi?id=439892)
* Tue Nov 06 2012 Valery Inozemtsev <shrek@altlinux.ru> 1:5.1-alt1
- 5.1
* Wed Oct 17 2012 Valery Inozemtsev <shrek@altlinux.ru> 1:4.8.1.1-alt2
- support locale and fix NaN in cromium (loses: #2599)
* Tue Jan 03 2012 Valery Inozemtsev <shrek@altlinux.ru> 1:4.8.1.1-alt1
- 4.8.1.1
* Wed Jul 20 2011 Valery Inozemtsev <shrek@altlinux.ru> 1:4.8.1-alt1
- 4.8.1
* Fri May 27 2011 Valery Inozemtsev <shrek@altlinux.ru> 1:4.8-alt1
- 4.8
* Sat Mar 12 2011 Valery Inozemtsev <shrek@altlinux.ru> 1:4.6.1-alt1
- 4.6.1
* Tue Feb 15 2011 Alexey Tourbin <at@altlinux.ru> 1:4.6-alt2
- rebuilt for debuginfo
* Sun Dec 05 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.6-alt1
- 4.6
* Wed Nov 24 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.4.2-alt1
- 4.4.2
* Sat Oct 23 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.4.1-alt2
- rebuild
* Mon May 03 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.4.1-alt1
- 4.4.1
* Wed Mar 17 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.4-alt1
- 4.4 release
* Wed Mar 10 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.4-alt0.rc1
- 4.4 RC1
* Sun Jan 17 2010 Valery Inozemtsev <shrek@altlinux.ru> 1:4.3.3-alt1
- 4.3.3
* Thu Jul 02 2009 Valery Inozemtsev <shrek@altlinux.ru> 1:4.2.1-alt1
- 4.2.1
* Tue Jun 02 2009 Valery Inozemtsev <shrek@altlinux.ru> 1:4.2.0.1-alt1
- 4.2.0.1
* Sun May 10 2009 Valery Inozemtsev <shrek@altlinux.ru> 1:4.2-alt1
- 4.2
* Fri May 08 2009 Valery Inozemtsev <shrek@altlinux.ru> 1:4.0.1-alt2
- fixed build with gcc 4.4
* Sat Jan 17 2009 Valery Inozemtsev <shrek@altlinux.ru> 1:4.0.1-alt1
- 4.0.1
* Fri Nov 21 2008 Valery Inozemtsev <shrek@altlinux.ru> 1:4.0-alt2
- removed obsolete %%post_ldconfig/%%postun_ldconfig calls
* Sun Jul 06 2008 Valery Inozemtsev <shrek@altlinux.ru> 1:4.0-alt1
- 4.0 release
* Tue Jul 01 2008 Valery Inozemtsev <shrek@altlinux.ru> 4.0.d03-alt1
- 4.0.d03:
+ CLDR 1.6 update, Unicode 5.1 update, ICU4J charset
* Sun Jun 08 2008 Valery Inozemtsev <shrek@altlinux.ru> 4.0.d02-alt1
- 4.0.d02
* Fri Jan 25 2008 Valery Inozemtsev <shrek@altlinux.ru> 3.8.1-alt2
- fixed CVE-2007-4770, CVE-2007-4771
* Mon Dec 24 2007 Valery Inozemtsev <shrek@altlinux.ru> 3.8.1-alt1
- 3.8.1:
+ Updated time zone data to Olson 2007j
+ Updated to CLDR 1.5.1 data
+ Various string search fixes
+ Various collation fixes
+ Various time zone parsing, formatting and calculation fixes
+ Various font layout engine fixes
+ Various platform specific fixes
+ Improved BiDi implementation to handle multiple levels
- update URL
* Wed Dec 05 2007 Valery Inozemtsev <shrek@altlinux.ru> 3.8-alt2
- setBreakType to public
* Sat Oct 27 2007 Valery Inozemtsev <shrek@altlinux.ru> 3.8-alt1
- 3.8
* Mon Nov 06 2006 Valery Inozemtsev <shrek@altlinux.ru> 3.6-alt1
- 3.6
* Mon May 22 2006 Valery Inozemtsev <shrek@altlinux.ru> 3.4.1-alt1
- Updated to 3.4.1
* Mon Sep 19 2005 Mikhail Zabaluev <mhz@altlinux.ru> 3.4-alt1
- Updated to 3.4
- Removed binaries from the samples directory
- Added URL
* Thu Feb 10 2005 Mikhail Zabaluev <mhz@altlinux.ru> 3.2-alt1
- Updated to 3.2
- Major spec cleanup
- Introduced samples subpackage
* Tue Jan 18 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.0-alt3.1
- Rebuilt with libstdc++.so.6.
* Tue Sep 21 2004 Pavel S. Mironchik <tibor@altlinux.ru> 3.0-alt3
- Fixed dependece
* Tue Sep 7 2004 Pavel S. Mironchik <tibor@altlinux.ru> 3.0-alt2
- fixed [Bug 5048]
* Mon Aug 9 2004 Pavel S. Mironchik <tibor@altlinux.ru> 3.0-alt1
- release
* Thu Apr 29 2004 Pavel S. Mironchik <tibor@altlinux.ru> 2.8-alt1
- initial build for Sisyphus