diff --git a/README.md b/README.md index 07c211f..ca3b931 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # icu44 +ICU is a set of C/C++ and Java 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 zones support, transliteration, word, line and sentence breaking, etc. + +This package contains the Unicode character database and derived properties, along with converters and time zones data. + diff --git a/icu-4.4-ctestfw-makefilein.patch b/icu-4.4-ctestfw-makefilein.patch new file mode 100644 index 0000000..cbe1eb2 --- /dev/null +++ b/icu-4.4-ctestfw-makefilein.patch @@ -0,0 +1,31 @@ +--- icu/source/tools/ctestfw/Makefile.in ++++ icu/source/tools/ctestfw/Makefile.in +@@ -79,6 +79,28 @@ + install-local: install-library + + install-library: all-local ++ $(MKINSTALLDIRS) $(DESTDIR)$(libdir) ++ifneq ($(ENABLE_STATIC),) ++ $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) ++endif ++ifneq ($(ENABLE_SHARED),) ++ $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) ++ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) ++ cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) ++ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) ++ cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) ++endif ++endif ++ifneq ($(IMPORT_LIB_EXT),) ++ $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) ++ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) ++ cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) ++endif ++ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) ++ cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) ++endif ++endif ++endif + + dist-local: + diff --git a/icu-4.4.1-arm_assembly.patch b/icu-4.4.1-arm_assembly.patch new file mode 100644 index 0000000..f1aebbe --- /dev/null +++ b/icu-4.4.1-arm_assembly.patch @@ -0,0 +1,16 @@ +diff -Nru icu.orig//source/tools/toolutil/pkg_genc.c icu/source/tools/toolutil/pkg_genc.c +--- icu.orig//source/tools/toolutil/pkg_genc.c 2010-04-28 15:27:46.000000000 +0000 ++++ icu/source/tools/toolutil/pkg_genc.c 2010-07-13 11:57:46.000000000 +0000 +@@ -118,10 +118,10 @@ + } assemblyHeader[] = { + {"gcc", + ".globl %s\n" +- "\t.section .note.GNU-stack,\"\",@progbits\n" ++ "\t.section .note.GNU-stack,\"\",%%progbits\n" + "\t.section .rodata\n" + "\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */ +- "\t.type %s,@object\n" ++ "\t.type %s,%%object\n" + "%s:\n\n", + + ".long ","",HEX_0X diff --git a/icu44.spec b/icu44.spec new file mode 100644 index 0000000..7de8a4c --- /dev/null +++ b/icu44.spec @@ -0,0 +1,146 @@ +%define libname libicu44 +%define pkgver %(echo %version | tr '.' '_') + +Name: icu44 +Version: 4.4.2 +Release: 1mamba +Summary: Set of C/C++ and Java libraries for Unicode support +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.icu-project.org +Source: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{pkgver}-src.tgz +Patch0: icu-4.4-ctestfw-makefilein.patch +Patch1: icu-4.4.1-arm_assembly.patch +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +Requires: %{libname} = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +ICU is a set of C/C++ and Java 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 zones support, transliteration, word, line and sentence breaking, etc. + +This package contains the Unicode character database and derived properties, along with converters and time zones data. + +%package -n %{libname} +Group: System/Libraries +Summary: Set of C/C++ and Java libraries for Unicode support + +%description -n %{libname} +ICU is a set of C/C++ and Java libraries that provides robust and full-featured Unicode support, software internationalization and globalization (i18n/g11n). +ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software. + +This package contains the runtime libraries for ICU. + +%package -n %{libname}-devel +Group: Development/Libraries +Summary: Static libraries and headers for ICU +Requires: %{libname} = %{version} + +%description -n %{libname}-devel +ICU is a set of C/C++ and Java libraries that provides robust and full-featured Unicode support, software internationalization and globalization (i18n/g11n). +ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n icu +#%patch0 -p1 +%patch1 -p1 + +%build +cd source + +%configure \ + --enable-shared \ + --enable-static \ + --disable-samples + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C source + +# fix wrong libraries permissions +chmod +x %{buildroot}%{_libdir}/*.so.* + +rm -f %{buildroot}%{_datadir}/icu/%{version}/license.html + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/derb +%{_bindir}/gen* +%{_bindir}/icuinfo +%{_bindir}/makeconv +%{_bindir}/pkgdata +%{_bindir}/uconv +%{_sbindir}/gen* +%{_sbindir}/icupkg +%{_mandir}/man?/* +%doc license.html readme.html + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n %{libname}-devel +%defattr(-,root,root) +%{_bindir}/icu-config +%dir %{_datadir}/icu +%dir %{_datadir}/icu/%{version} +%dir %{_datadir}/icu/%{version}/config +%{_datadir}/icu/%{version}/mkinstalldirs +%{_datadir}/icu/%{version}/config/mh-linux +%{_datadir}/icu/%{version}/install-sh +%dir %{_includedir}/layout +%dir %{_includedir}/unicode +%{_includedir}/layout/*.h +%{_includedir}/unicode/*.h +%{_libdir}/*.a +%{_libdir}/*.so +%dir %{_libdir}/icu +%dir %{_libdir}/icu/%{version} +%{_libdir}/icu/current +%{_libdir}/icu/%{version}/Makefile.inc +%{_libdir}/icu/Makefile.inc +%{_libdir}/icu/%{version}/pkgdata.inc +%{_libdir}/icu/pkgdata.inc + +%changelog +* Sun Jan 20 2013 Silvan Calarco 4.4.2-1mamba +- update to 4.4.2 +- legacy package + +* Mon Jul 12 2010 Silvan Calarco 4.4.1-1mamba +- update to 4.4.1 + +* Tue Jun 29 2010 Silvan Calarco 4.4-2mamba +- added patch to fix install of libtestfw library required by icutest tool + +* Tue Mar 23 2010 Silvan Calarco 4.4-1mamba +- update to 4.4 + +* Tue Dec 09 2008 Silvan Calarco 4.0-1mamba +- update to 4.0 + +* Thu Oct 18 2007 Silvan Calarco 3.8-1mamba +- update to 3.8 + +* Thu Jan 12 2006 Stefano Cotta Ramusino 3.2-2qilnx +- fixed license + +* Tue May 31 2005 Davide Madrisan 3.2-1qilnx +- package created by autospec