%{?mingw_package_header} %global underscore_version %(echo %{version} | sed 's/\\./_/g') %global dash_version %(echo %{version} | sed 's/\\./-/g') %global lib_version 71 Name: mingw-icu Version: 71.1 Release: 1%{?dist} Summary: MinGW compilation of International Components for Unicode Tools License: MIT and UCD and Public Domain URL: http://icu-project.org Source0: https://github.com/unicode-org/icu/releases/download/release-%{dash_version}/icu4c-%{underscore_version}-src.tgz # Patch to fix the build from # https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-icu Patch0: icu4c_mingwbuild.patch BuildArch: noarch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-binutils BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-binutils %description ICU is a set of C and C++ libraries that provides robust and full-featured Unicode and locale support. The library provides calendar support, conversions for many character sets, language sensitive collation, date and time formatting, support for many locales, message catalogs and resources, message formatting, normalization, number and currency formatting, time zone support, transliteration, and word, line, and sentence breaking, etc. # Win32 %package -n mingw32-icu Summary: MinGW compilation of International Components for Unicode Tools %description -n mingw32-icu ICU is a set of C and C++ libraries that provides robust and full-featured Unicode and locale support. The library provides calendar support, conversions for many character sets, language sensitive collation, date and time formatting, support for many locales, message catalogs and resources, message formatting, normalization, number and currency formatting, time zone support, transliteration, and word, line, and sentence breaking, etc. # Win64 %package -n mingw64-icu Summary: MinGW compilation of International Components for Unicode Tools %description -n mingw64-icu ICU is a set of C and C++ libraries that provides robust and full-featured Unicode and locale support. The library provides calendar support, conversions for many character sets, language sensitive collation, date and time formatting, support for many locales, message catalogs and resources, message formatting, normalization, number and currency formatting, time zone support, transliteration, and word, line, and sentence breaking, etc. %{?mingw_debug_package} %prep %autosetup -p1 -n icu %build pushd source mkdir -p nativebuild pushd nativebuild ../configure --enable-static --disable-shared # Parallel build occasionally broken %make_build || make popd %mingw_configure \ --enable-shared --disable-static \ --with-cross-build=$(pwd)/nativebuild \ --with-data-packaging=library %mingw_make_build popd %install pushd source %mingw_make_install popd # remove unneded files rm -fr %{buildroot}%{mingw32_mandir} rm -fr %{buildroot}%{mingw64_mandir} rm %{buildroot}%{mingw32_bindir}/icu-config rm %{buildroot}%{mingw64_bindir}/icu-config rm %{buildroot}%{mingw32_libdir}/icu/Makefile.inc rm %{buildroot}%{mingw64_libdir}/icu/Makefile.inc rm %{buildroot}%{mingw32_libdir}/icu/pkgdata.inc rm %{buildroot}%{mingw64_libdir}/icu/pkgdata.inc # Win32 %files -n mingw32-icu %license license.html %{mingw32_bindir}/escapesrc.exe %{mingw32_bindir}/genrb.exe %{mingw32_bindir}/gencnval.exe %{mingw32_bindir}/uconv.exe %{mingw32_bindir}/gencmn.exe %{mingw32_bindir}/makeconv.exe %{mingw32_bindir}/genbrk.exe %{mingw32_bindir}/gensprep.exe %{mingw32_bindir}/pkgdata.exe %{mingw32_bindir}/icuexportdata.exe %{mingw32_bindir}/icupkg.exe %{mingw32_bindir}/derb.exe %{mingw32_bindir}/genccode.exe %{mingw32_bindir}/gendict.exe %{mingw32_bindir}/gencfu.exe %{mingw32_bindir}/gennorm2.exe %{mingw32_bindir}/icuinfo.exe %{mingw32_bindir}/icuio%{lib_version}.dll %{mingw32_bindir}/icuuc%{lib_version}.dll %{mingw32_bindir}/icui18n%{lib_version}.dll %{mingw32_bindir}/icutu%{lib_version}.dll %{mingw32_bindir}/icudata%{lib_version}.dll %{mingw32_bindir}/icutest%{lib_version}.dll %{mingw32_libdir}/libicudata.dll.a %{mingw32_libdir}/libicui18n.dll.a %{mingw32_libdir}/libicuuc.dll.a %{mingw32_libdir}/libicuio.dll.a %{mingw32_libdir}/libicutest.dll.a %{mingw32_libdir}/libicutu.dll.a %{mingw32_libdir}/pkgconfig/icu-i18n.pc %{mingw32_libdir}/pkgconfig/icu-io.pc %{mingw32_libdir}/pkgconfig/icu-uc.pc %{mingw32_includedir}/unicode %{mingw32_libdir}/icu %{mingw32_datadir}/icu # Win64 %files -n mingw64-icu %license license.html %{mingw64_bindir}/escapesrc.exe %{mingw64_bindir}/genrb.exe %{mingw64_bindir}/gencnval.exe %{mingw64_bindir}/uconv.exe %{mingw64_bindir}/gencmn.exe %{mingw64_bindir}/makeconv.exe %{mingw64_bindir}/genbrk.exe %{mingw64_bindir}/gensprep.exe %{mingw64_bindir}/pkgdata.exe %{mingw64_bindir}/icuexportdata.exe %{mingw64_bindir}/icupkg.exe %{mingw64_bindir}/derb.exe %{mingw64_bindir}/genccode.exe %{mingw64_bindir}/gendict.exe %{mingw64_bindir}/gencfu.exe %{mingw64_bindir}/gennorm2.exe %{mingw64_bindir}/icuinfo.exe %{mingw64_bindir}/icuio%{lib_version}.dll %{mingw64_bindir}/icuuc%{lib_version}.dll %{mingw64_bindir}/icui18n%{lib_version}.dll %{mingw64_bindir}/icutu%{lib_version}.dll %{mingw64_bindir}/icudata%{lib_version}.dll %{mingw64_bindir}/icutest%{lib_version}.dll %{mingw64_libdir}/libicudata.dll.a %{mingw64_libdir}/libicui18n.dll.a %{mingw64_libdir}/libicuuc.dll.a %{mingw64_libdir}/libicuio.dll.a %{mingw64_libdir}/libicutest.dll.a %{mingw64_libdir}/libicutu.dll.a %{mingw64_libdir}/pkgconfig/icu-i18n.pc %{mingw64_libdir}/pkgconfig/icu-io.pc %{mingw64_libdir}/pkgconfig/icu-uc.pc %{mingw64_includedir}/unicode %{mingw64_libdir}/icu %{mingw64_datadir}/icu %changelog * Thu Aug 04 2022 Sandro Mani - 71.1-1 - Update to 71.1 * Thu Jul 21 2022 Fedora Release Engineering - 69.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 25 2022 Sandro Mani - 69.1-4 - Rebuild with mingw-gcc-12 * Thu Jan 20 2022 Fedora Release Engineering - 69.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 69.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat May 22 2021 Sandro Mani - 69.1-1 - Update to 69.1 * Tue Jan 26 2021 Fedora Release Engineering - 67.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 67.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 18 2020 Sandro Mani - 67.1-1 - Update to 67.1 * Wed Jan 29 2020 Fedora Release Engineering - 65.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 05 2019 Sandro Mani - 65.1-1 - Update to 65.1 * Tue Oct 08 2019 Sandro Mani - 64.2-3 - Rebuild (Changes/Mingw32GccDwarf2) * Mon Sep 23 2019 Richard W.M. Jones - 64.2-2 - Bump and rebuild for RHBZ#1736119. * Tue Aug 13 2019 Sandro Mani - 64.2-1 - Update to 64.2 * Thu Jul 25 2019 Fedora Release Engineering - 57.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 57.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 57.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 57.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 57.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 57.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Oct 24 2016 Kalev Lember - 57.1-1 - Update to 57.1 - Don't set group tags - Use license macro * Thu Feb 04 2016 Fedora Release Engineering - 50.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 50.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 50.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 29 2014 Erik van Pienbroek - 50.1.2-3 - Fix CVE-2013-2924 (RHBZ #1015595) * Sat Aug 03 2013 Fedora Release Engineering - 50.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jun 16 2013 Paweł Forysiuk - 50.1.2-1 - Update to 50.1.2 to match native version - Drop icu-config script * Sun Jan 27 2013 Paweł Forysiuk - 49.1.2-2 - Properly package icudata library * Sun Dec 30 2012 Pawel Forysiuk - 49.1.2-1 - Update to new upstream version * Fri Jul 20 2012 Fedora Release Engineering - 4.8.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Mar 18 2012 Erik van Pienbroek - 4.8.1.1-5 - Added win64 support - Use mingw macros without leading underscore - Use %%global instead of %%define * Mon Feb 27 2012 Kalev Lember - 4.8.1.1-4 - Added Erik van Pienbroek's patches to fix build with the mingw-w64 toolchain * Mon Feb 27 2012 Erik van Pienbroek - 4.8.1.1-3 - Rebuild against the mingw-w64 toolchain * Tue Feb 07 2012 Forysiuk Paweł - 4.8.1.1-2 - Fix icu4c-4_6_1-crossbuild.patch to compile cleanly - Minor packaging cleanup * Tue Feb 07 2012 Forysiuk Paweł - 4.8.1.1-1 - Initial release based on openSUSE mingw32-icu package