|
|
0a1210 |
%?mingw_package_header
|
|
|
0a1210 |
|
|
|
0a1210 |
%global underscore_version %(echo %{version} | sed 's/\\./_/g')
|
|
|
0a1210 |
%global lib_version %(echo %{version} | cut -d \. -f 1)
|
|
|
0a1210 |
|
|
|
0a1210 |
Name: mingw-icu
|
|
|
0a1210 |
Version: 57.1
|
|
|
0a1210 |
Release: 5%{?dist}
|
|
|
0a1210 |
Summary: MinGW compilation of International Components for Unicode Tools
|
|
|
0a1210 |
|
|
|
0a1210 |
License: MIT and UCD and Public Domain
|
|
|
0a1210 |
URL: http://icu-project.org
|
|
|
0a1210 |
Source0: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{underscore_version}-src.tgz
|
|
|
0a1210 |
|
|
|
0a1210 |
# Patch to fix the build from
|
|
|
0a1210 |
# https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-icu
|
|
|
0a1210 |
Patch0: icu4c-56_1-crossbuild.patch
|
|
|
0a1210 |
|
|
|
0a1210 |
BuildArch: noarch
|
|
|
0a1210 |
ExclusiveArch: %{ix86} x86_64
|
|
|
0a1210 |
|
|
|
0a1210 |
BuildRequires: mingw32-filesystem >= 95
|
|
|
0a1210 |
BuildRequires: mingw32-gcc
|
|
|
0a1210 |
BuildRequires: mingw32-gcc-c++
|
|
|
0a1210 |
BuildRequires: mingw32-binutils
|
|
|
0a1210 |
|
|
|
0a1210 |
BuildRequires: mingw64-filesystem >= 95
|
|
|
0a1210 |
BuildRequires: mingw64-gcc
|
|
|
0a1210 |
BuildRequires: mingw64-gcc-c++
|
|
|
0a1210 |
BuildRequires: mingw64-binutils
|
|
|
0a1210 |
|
|
|
0a1210 |
%description
|
|
|
0a1210 |
ICU is a set of C and C++ libraries that provides robust and
|
|
|
0a1210 |
full-featured Unicode and locale support. The library provides calendar
|
|
|
0a1210 |
support, conversions for many character sets, language sensitive
|
|
|
0a1210 |
collation, date and time formatting, support for many locales, message
|
|
|
0a1210 |
catalogs and resources, message formatting, normalization, number and
|
|
|
0a1210 |
currency formatting, time zone support, transliteration, and word,
|
|
|
0a1210 |
line, and sentence breaking, etc.
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
# Win32
|
|
|
0a1210 |
%package -n mingw32-icu
|
|
|
0a1210 |
Summary: MinGW compilation of International Components for Unicode Tools
|
|
|
0a1210 |
|
|
|
0a1210 |
%description -n mingw32-icu
|
|
|
0a1210 |
ICU is a set of C and C++ libraries that provides robust and
|
|
|
0a1210 |
full-featured Unicode and locale support. The library provides calendar
|
|
|
0a1210 |
support, conversions for many character sets, language sensitive
|
|
|
0a1210 |
collation, date and time formatting, support for many locales, message
|
|
|
0a1210 |
catalogs and resources, message formatting, normalization, number and
|
|
|
0a1210 |
currency formatting, time zone support, transliteration, and word,
|
|
|
0a1210 |
line, and sentence breaking, etc.
|
|
|
0a1210 |
|
|
|
0a1210 |
# Win64
|
|
|
0a1210 |
%package -n mingw64-icu
|
|
|
0a1210 |
Summary: MinGW compilation of International Components for Unicode Tools
|
|
|
0a1210 |
|
|
|
0a1210 |
%description -n mingw64-icu
|
|
|
0a1210 |
ICU is a set of C and C++ libraries that provides robust and
|
|
|
0a1210 |
full-featured Unicode and locale support. The library provides calendar
|
|
|
0a1210 |
support, conversions for many character sets, language sensitive
|
|
|
0a1210 |
collation, date and time formatting, support for many locales, message
|
|
|
0a1210 |
catalogs and resources, message formatting, normalization, number and
|
|
|
0a1210 |
currency formatting, time zone support, transliteration, and word,
|
|
|
0a1210 |
line, and sentence breaking, etc.
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
%?mingw_debug_package
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
%prep
|
|
|
0a1210 |
%setup -q -n icu
|
|
|
0a1210 |
|
|
|
0a1210 |
%patch0 -p1 -b .crossbuild
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
%build
|
|
|
0a1210 |
pushd source
|
|
|
0a1210 |
|
|
|
0a1210 |
mkdir -p nativebuild
|
|
|
0a1210 |
pushd nativebuild
|
|
|
0a1210 |
../configure --enable-static --disable-shared
|
|
|
0a1210 |
make %{?_smp_mflags} || make
|
|
|
0a1210 |
popd
|
|
|
0a1210 |
|
|
|
0a1210 |
%mingw_configure \
|
|
|
0a1210 |
--enable-shared --disable-static \
|
|
|
0a1210 |
--with-cross-build=$(pwd)/nativebuild \
|
|
|
0a1210 |
--with-data-packaging=library
|
|
|
0a1210 |
|
|
|
0a1210 |
%mingw_make %{?_smp_mflags}
|
|
|
0a1210 |
|
|
|
0a1210 |
popd
|
|
|
0a1210 |
|
|
|
0a1210 |
%install
|
|
|
0a1210 |
pushd source
|
|
|
0a1210 |
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
0a1210 |
popd
|
|
|
0a1210 |
|
|
|
0a1210 |
find $RPM_BUILD_ROOT -name "*.dll" -type l -delete
|
|
|
0a1210 |
|
|
|
0a1210 |
for i in $RPM_BUILD_ROOT%{mingw32_libdir}/*.dll ; \
|
|
|
0a1210 |
do mv $i $RPM_BUILD_ROOT%{mingw32_bindir}/; done
|
|
|
0a1210 |
for i in $RPM_BUILD_ROOT%{mingw64_libdir}/*.dll ; \
|
|
|
0a1210 |
do mv $i $RPM_BUILD_ROOT%{mingw64_bindir}/; done
|
|
|
0a1210 |
|
|
|
0a1210 |
# remove unneded files
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw32_mandir}
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw64_mandir}
|
|
|
0a1210 |
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw32_bindir}/icu-config
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw64_bindir}/icu-config
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw32_libdir}/icu/Makefile.inc
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw64_libdir}/icu/Makefile.inc
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw32_libdir}/icu/pkgdata.inc
|
|
|
0a1210 |
rm -fr $RPM_BUILD_ROOT%{mingw64_libdir}/icu/pkgdata.inc
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
# Win32
|
|
|
0a1210 |
%files -n mingw32-icu
|
|
|
0a1210 |
%license license.html
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw32_bindir}/genrb.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gencnval.exe
|
|
|
0a1210 |
%{mingw32_bindir}/uconv.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gencmn.exe
|
|
|
0a1210 |
%{mingw32_bindir}/makeconv.exe
|
|
|
0a1210 |
%{mingw32_bindir}/genbrk.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gensprep.exe
|
|
|
0a1210 |
%{mingw32_bindir}/pkgdata.exe
|
|
|
0a1210 |
%{mingw32_bindir}/icupkg.exe
|
|
|
0a1210 |
%{mingw32_bindir}/derb.exe
|
|
|
0a1210 |
%{mingw32_bindir}/genccode.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gendict.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gencfu.exe
|
|
|
0a1210 |
%{mingw32_bindir}/gennorm2.exe
|
|
|
0a1210 |
%{mingw32_bindir}/icuinfo.exe
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw32_bindir}/icuio%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icuuc%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icule%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icui18n%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icutu%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icudata%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/iculx%{lib_version}.dll
|
|
|
0a1210 |
%{mingw32_bindir}/icutest%{lib_version}.dll
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw32_libdir}/libicule.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicudata.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicui18n.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicuuc.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libiculx.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicuio.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicutest.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/libicutu.dll.a
|
|
|
0a1210 |
%{mingw32_libdir}/pkgconfig/icu-i18n.pc
|
|
|
0a1210 |
%{mingw32_libdir}/pkgconfig/icu-io.pc
|
|
|
0a1210 |
%{mingw32_libdir}/pkgconfig/icu-le.pc
|
|
|
0a1210 |
%{mingw32_libdir}/pkgconfig/icu-lx.pc
|
|
|
0a1210 |
%{mingw32_libdir}/pkgconfig/icu-uc.pc
|
|
|
0a1210 |
%{mingw32_includedir}/layout
|
|
|
0a1210 |
%{mingw32_includedir}/unicode
|
|
|
0a1210 |
%{mingw32_libdir}/icu
|
|
|
0a1210 |
%{mingw32_datadir}/icu
|
|
|
0a1210 |
|
|
|
0a1210 |
# Win64
|
|
|
0a1210 |
%files -n mingw64-icu
|
|
|
0a1210 |
%license license.html
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw64_bindir}/genrb.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gencnval.exe
|
|
|
0a1210 |
%{mingw64_bindir}/uconv.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gencmn.exe
|
|
|
0a1210 |
%{mingw64_bindir}/makeconv.exe
|
|
|
0a1210 |
%{mingw64_bindir}/genbrk.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gensprep.exe
|
|
|
0a1210 |
%{mingw64_bindir}/pkgdata.exe
|
|
|
0a1210 |
%{mingw64_bindir}/icupkg.exe
|
|
|
0a1210 |
%{mingw64_bindir}/derb.exe
|
|
|
0a1210 |
%{mingw64_bindir}/genccode.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gendict.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gencfu.exe
|
|
|
0a1210 |
%{mingw64_bindir}/gennorm2.exe
|
|
|
0a1210 |
%{mingw64_bindir}/icuinfo.exe
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw64_bindir}/icuio%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icuuc%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icule%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icui18n%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icutu%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icudata%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/iculx%{lib_version}.dll
|
|
|
0a1210 |
%{mingw64_bindir}/icutest%{lib_version}.dll
|
|
|
0a1210 |
|
|
|
0a1210 |
%{mingw64_libdir}/libicule.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicudata.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicui18n.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicuuc.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libiculx.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicuio.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicutest.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/libicutu.dll.a
|
|
|
0a1210 |
%{mingw64_libdir}/pkgconfig/icu-i18n.pc
|
|
|
0a1210 |
%{mingw64_libdir}/pkgconfig/icu-io.pc
|
|
|
0a1210 |
%{mingw64_libdir}/pkgconfig/icu-le.pc
|
|
|
0a1210 |
%{mingw64_libdir}/pkgconfig/icu-lx.pc
|
|
|
0a1210 |
%{mingw64_libdir}/pkgconfig/icu-uc.pc
|
|
|
0a1210 |
%{mingw64_includedir}/layout
|
|
|
0a1210 |
%{mingw64_includedir}/unicode
|
|
|
0a1210 |
%{mingw64_libdir}/icu
|
|
|
0a1210 |
%{mingw64_datadir}/icu
|
|
|
0a1210 |
|
|
|
0a1210 |
|
|
|
0a1210 |
%changelog
|
|
|
0a1210 |
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 57.1-5
|
|
|
0a1210 |
- ExclusiveArch: i686, x86_64
|
|
|
0a1210 |
- Related: rhbz#1615874
|
|
|
0a1210 |
|
|
|
0a1210 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-4
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-3
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-2
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Mon Oct 24 2016 Kalev Lember <klember@redhat.com> - 57.1-1
|
|
|
0a1210 |
- Update to 57.1
|
|
|
0a1210 |
- Don't set group tags
|
|
|
0a1210 |
- Use license macro
|
|
|
0a1210 |
|
|
|
0a1210 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 50.1.2-6
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 50.1.2-5
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 50.1.2-4
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Thu May 29 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 50.1.2-3
|
|
|
0a1210 |
- Fix CVE-2013-2924 (RHBZ #1015595)
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 50.1.2-2
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sun Jun 16 2013 Paweł Forysiuk <tuxator@o2.pl> - 50.1.2-1
|
|
|
0a1210 |
- Update to 50.1.2 to match native version
|
|
|
0a1210 |
- Drop icu-config script
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sun Jan 27 2013 Paweł Forysiuk <tuxator@o2.pl> - 49.1.2-2
|
|
|
0a1210 |
- Properly package icudata library
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sun Dec 30 2012 Pawel Forysiuk <tuxator@o2.pl> - 49.1.2-1
|
|
|
0a1210 |
- Update to new upstream version
|
|
|
0a1210 |
|
|
|
0a1210 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.1.1-6
|
|
|
0a1210 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0a1210 |
|
|
|
0a1210 |
* Sun Mar 18 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 4.8.1.1-5
|
|
|
0a1210 |
- Added win64 support
|
|
|
0a1210 |
- Use mingw macros without leading underscore
|
|
|
0a1210 |
- Use %%global instead of %%define
|
|
|
0a1210 |
|
|
|
0a1210 |
* Mon Feb 27 2012 Kalev Lember <kalevlember@gmail.com> - 4.8.1.1-4
|
|
|
0a1210 |
- Added Erik van Pienbroek's patches to fix build with the mingw-w64 toolchain
|
|
|
0a1210 |
|
|
|
0a1210 |
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 4.8.1.1-3
|
|
|
0a1210 |
- Rebuild against the mingw-w64 toolchain
|
|
|
0a1210 |
|
|
|
0a1210 |
* Tue Feb 07 2012 Forysiuk Paweł <tuxator@o2.pl> - 4.8.1.1-2
|
|
|
0a1210 |
- Fix icu4c-4_6_1-crossbuild.patch to compile cleanly
|
|
|
0a1210 |
- Minor packaging cleanup
|
|
|
0a1210 |
|
|
|
0a1210 |
* Tue Feb 07 2012 Forysiuk Paweł <tuxator@o2.pl> - 4.8.1.1-1
|
|
|
0a1210 |
- Initial release based on openSUSE mingw32-icu package
|