Rebase for icu-59.1 61/133461/1
authorAnas Nashif <anas.nashif@intel.com>
Fri, 23 Nov 2012 04:11:47 +0000 (20:11 -0800)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 12 Jun 2017 06:47:59 +0000 (15:47 +0900)
Change-Id: I1dc8f575ee5854fb0c5f2b465ed4630df7ff0ac0
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
.gitignore [deleted file]
packaging/PACKAGES [deleted file]
packaging/README [deleted file]
packaging/icu.changes [new file with mode: 0644]
packaging/icu.manifest [new file with mode: 0644]
packaging/icu.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 372885a..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright (C) 2016 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-Makefile
-*.o
-*.d
-bin/
-*.1
-*.8
-*.ao
-*.dylib
-lib/
-bin64/
-lib64/
-bin32uwp/
-lib32uwp/
-bin64uwp/
-lib64uwp/
-commondata/
-
-icudefs.mk
-pkgdata.inc
-common/svchook.mk
-config.log
-config.status
-config/Makefile.inc
-config/icu-config
-config/icu*.pc
-config/icucross.inc
-config/icucross.mk
-config/pkgdata.inc
-config/pkgdataMakefile
-data/build-dir
-data/build-local
-data/icupkg.inc
-data/out/
-data/data/
-data/packagedata
-data/pkgdataMakefile
-extra/uconv/pkgdata.inc
-extra/uconv/pkgdataMakefile
-extra/uconv/uconvmsg/
-samples/cal/icucal
-samples/date/icudate
-stubdata/libicudata.so*
-test/testdata/pkgdataMakefile
-tools/ctestfw/libicutest.so*
-tools/gentest/gentest
-tools/icuinfo/icuinfo
-*.lib
-*.dll
-*.exp
-/source/common/svchook.mk
-/source/config/Makefile.inc
-/source/config/icu-config
-/source/config/icu-i18n.pc
-/source/config/icu-io.pc
-/source/config/icu-uc.pc
-/source/config/icu.pc
-/source/config/icucross.inc
-/source/config/icucross.mk
-/source/config/pkgdataMakefile
-/source/data/build-dir
-/source/data/build-local
-/source/data/icupkg.inc
-/source/data/out/
-/source/data/packagedata
-/source/data/pkgdataMakefile
-/source/extra/uconv/pkgdataMakefile
-/source/extra/uconv/uconvmsg/
-/source/samples/cal/icucal
-/source/samples/date/icudate
-/source/test/cintltst/cintltst
-/source/test/intltest/intltest
-/source/test/iotest/iotest
-/source/test/testdata/out/
-/source/test/testdata/pkgdataMakefile
-/source/tools/gentest/gentest
-/source/tools/icuinfo/icuinfo
-
-*.ncb
-*.opt
-*.suo
-*.sdf
-*.opensdf
-ipch
-.vs
-Debug
-*.db
-*.opendb
-
diff --git a/packaging/PACKAGES b/packaging/PACKAGES
deleted file mode 100644 (file)
index d69f3b6..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-Copyright (C) 2016 and later: Unicode, Inc. and others.
-License & terms of use: http://www.unicode.org/copyright.html
-Copyright (C) 2000-2003, International Business Machines
-Corporation and others.  All Rights Reserved.
-ICU is packaged into a number of small, interdependent packages. This
-file describes what these packages are, what their name should be
-like, and what their contents are. It is useful as a reference and a
-guide when packaging ICU on a new system.
-
-+ List of ICU packages.
-
-ICU is distributed as the following packages:
-
-- ICU libraries. This package contains the runtime libraries needed by
-applications that use ICU. All the other packages require this package
-to be installed.
-- ICU. This package contains the converters data, the timezones data,
-and all the ICU tools.
-- ICU locales. This package adds locales and break data.
-- ICU development. This package contains the files necessary to build
-applications that use ICU, i.e. header files, links to shared
-libraries used by the linker, static libraries, etc... It also
-contains sample applications and documentation.
-- ICU docs. This package contains further documentation for ICU,
-including a complete API reference.
-- ICU data. This package contains the source for the compiled data
-contained by the ICU package.
-- ICU international data. This package contains the source for the
-compiled data contained by the ICU locales package.
-
-In this file, we will refer to Autoconf variables as in $(bindir). In
-addition to these, we will use the following variables to denote
-ICU-specific directories or information:
-
-  VERSION       ICU's dotted version number, e.g. 1.6.0.1 as of this
-               writing.
-
-  ICUDATADIR   The directory where portable ICU data are. This is
-               defined as $(datadir)/icu/$(VERSION).
-  ICULIBDIR    The directory where platform-specific ICU data
-               are. This is defined as $(libdir)/icu/$(VERSION).
-  ICUSYSCONFDIR        The directory where ICU configuration files are. This
-               is defined as $(sysconfdir)/icu.
-
-When referring to libraries, .so will be used to denote the extension
-of a shared library, and .a to denote the extension of a static
-library. These extensions will actually be different on some platforms.
-
-+ Configuration and compilation of ICU
-
-ICU should be configured with the following options:
-
-  --with-data-packaging=files
-  --disable-rpath
-  --enable-shared
-  --enable-static
-  --without-samples
-
-in addition to platform-specific settings (like a specific mandir or
-sysconfdir). Note that the use of --disable-rpath assumes that the
-packaging is made for a standard location, or that the package
-installation/deinstallation will correctly manage the configuration
-of the system's dyanmic loader. This is the right way of doing things.
-
-The configure script invokation should also be done with
-
-  CFLAGS="-O2"
-
-set, as in:
-
-  $ CFLAGS="-O2" ./configure ...
-
-The files packaging mode is chosen because it offers the maximum
-flexibility. Packages can be split easily, and system administrators
-can add converters, aliases, and other resources with little
-effort. Ideally, the ICU build will be modified to allow for distributing a
-libicudata.so with all the converters and locales, but indexes and aliases
-as separate files. But for now, this is the easiest way to get started.
-
-+ The ICU libraries package
-
-The ICU libraries package is typically named `libicuXX' where XX is
-the major number of ICU's libraries. This number is ICU's version
-number multiplied by 10 and rounded down to the nearest integer (it is
-also the value of the LIB_VERSION_MAJOR configure substitution
-variable). For example, for ICU 1.6.0.1, it is 16, so the package name
-is `libicu16'. The major version is part of the package name to allow
-for the simultaneous installation of different ICU releases.
-
-This package contains:
-
-- All the shared libraries, and their major number symbolic link, but
-not the .so symbolic link that is only used at link time (this one is
-part of the development package). These are $(libdir)/libicu*.so.* and
-$(libdir)/libustdio.so.* at the time of this writing.
-
-+ The ICU package
-
-The ICU package is simply named `icu'.  It provides data used by the ICU
-libraries package and commands to create and manipulate that data.
-
-This package contains:
-
-- The Unicode data files (uprops.dat and unames.dat as of this writing).
-- The time zones data files (tz.dat).
-- All the binary data files for converters (.cnv files).
-- All the ICU commands.
-- The manual pages for ICU commands and file formats.
-
-+ The ICU locales package
-
-The ICU locales package is named `icu-locales'. It provides data used by
-internationalization support in ICU.
-
-This package contains:
-
-- All the data for locales in ICU (.dat files).
-- All the break data for specific locales (.brk files).
-
-+ The ICU development package
-
-The ICU developpment package is named `libicu-dev'. It provides all
-the files necessary to write applications that use ICU, along with
-examples and some documentation.
-
-This package contains:
-
-- The /usr/include/unicode directory which contains all the ICU
-headers.
-- The .so symbolic links used by the linker to link against the
-latest version of the libraries.
-- A sample Makefile fragment that can be included by applications
-using ICU, to faciliate their building, along with a platform-specific
-configuration file included by this fragment.
-- The sample applications from the ICU source tree, in an appropriate
-location for the system that the package is installed on (for example,
-on Debian, in /usr/share/doc/libicu-dev/examples).
-
-This package depends on the ICU libraries package with the exact same
-version, since it provides .so symbolic links to the latest libraries.
-
-+ The ICU docs package
-
-The ICU docs package is named `libicu-doc'. It contains the files
-generated by doxygen when the `make doc' command is executed, in a
-location appropriate for the system that the package is installed on.
-
-+ The ICU data package
-
-The ICU data package is named `icu-data'. It contains source files for
-the data found in the ICU package. These files are installed in
-$(ICUDATADIR).
-
-+ The ICU international data package
-
-The ICU data package is named `icu-i18ndata'. It contains source files for
-the dat founf in the ICU locales package. These files are installed in
-$(ICUDATADIR).
-
-----
-Yves Arrouye <yves@realnames.com>
diff --git a/packaging/README b/packaging/README
deleted file mode 100644 (file)
index 538e56d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Copyright (C) 2016 and later: Unicode, Inc. and others.
-License & terms of use: http://www.unicode.org/copyright.html
-Copyright (C) 2000-2003, International Business Machines
-Corporation and others.  All Rights Reserved.
-
-This directory contains information, input files and scripts for
-packaging ICU using specific packaging tools. We assume that the
-packager is familiar with the tools and procedures needed to build a
-package for a given packaging method (for example, how to use
-dpkg-buildpackage(1) on Debian GNU/Linux, or rpm(8) on distributions that
-use RPM packages).
-
-Please read the file PACKAGES if you are interested in packaging ICU
-yourself. It describes what the different packages should be, and what
-their contents are.
diff --git a/packaging/icu.changes b/packaging/icu.changes
new file mode 100644 (file)
index 0000000..8ae7b20
--- /dev/null
@@ -0,0 +1,13 @@
+* Wed May 27 2015 Sangyoon Jang <s89.jang@samsung.com> upstream/4.8.1.1-13-gbe44479
+- Fix spec file
+
+* Thu 26 Sep 2013 Karol Lewandowski <k.lewandowsk@samsung.com>
+- hardcode package version due to OBS export not working well with version substitution macros
+
+* Fri Sep 06 2013 Anas Nashif <anas.nashif@intel.com> accepted/tizen/20130710.220328@cb142d0
+- fix stray configure call
+- resetting manifest requested domain to floor
+
+* Mon Mar 18 2013 Anas Nashif <anas.nashif@intel.com> upstream/4.8.1.1@3fb7803
+- Fixed package groups
+
diff --git a/packaging/icu.manifest b/packaging/icu.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/icu.spec b/packaging/icu.spec
new file mode 100644 (file)
index 0000000..610ea29
--- /dev/null
@@ -0,0 +1,115 @@
+%define run_tests 0
+%if %{run_tests}
+    # check is defined off at .rpmmacros file.
+    %define check %%check
+%endif
+
+Name:      icu
+Version:   57.1
+Release:   1
+Summary:   International Components for Unicode
+Group:     System/Libraries
+License:   ICU and Unicode-TOU and BSD-2.0
+URL:       http://www.icu-project.org/
+Source0:   %{name}-%{version}.tar.gz
+Source1001:    icu.manifest
+BuildRequires: doxygen
+BuildRequires: autoconf
+
+%description
+Tools and utilities for developing with icu.
+
+%package -n libicu
+Summary: International Components for Unicode - libraries
+
+%description -n libicu
+The International Components for Unicode (ICU) libraries provide
+robust and full-featured Unicode services on a wide variety of
+platforms. ICU supports the most current version of the Unicode
+standard, and they provide support for supplementary Unicode
+characters (needed for GB 18030 repertoire support).
+As computing environments become more heterogeneous, software
+portability becomes more important. ICU lets you produce the same
+results across all the various platforms you support, without
+sacrificing performance. It offers great flexibility to extend and
+customize the supplied services.
+
+%package  -n libicu-devel
+Summary:  Development files for International Components for Unicode
+Requires: libicu = %{version}-%{release}
+Requires: pkgconfig
+
+%description -n libicu-devel
+Includes and definitions for developing with icu.
+
+%prep
+%setup -q -n %{name}
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS="$CFLAGS -D_TIZEN_FEATURE_"
+export CXXFLAGS="$CXXFLAGS -D_TIZEN_FEATURE_"
+
+cd source
+%configure --enable-static=no \
+            --enable-renaming=no \
+            --enable-shared \
+            --enable-plugins \
+            --enable-samples=no
+make %{?_smp_mflags}
+
+%check
+%if %{run_tests}
+    pushd source
+    %__make check || exit 0
+    popd
+%endif
+
+%install
+cd source
+%make_install
+
+# bugs of rpmdeps
+chmod +x %{buildroot}/%{_libdir}/lib*.so.*
+
+%remove_docs
+
+
+%post -n libicu -p /sbin/ldconfig
+
+%postun -n libicu -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+
+%files -n libicu
+%manifest %{name}.manifest
+%license LICENSE
+%{_libdir}/*.so*
+%{_bindir}/derb
+%{_bindir}/genbrk
+%{_bindir}/gencfu
+%{_bindir}/gencnval
+%{_bindir}/gendict
+%{_bindir}/genrb
+%{_bindir}/makeconv
+%{_bindir}/pkgdata
+%{_bindir}/uconv
+%{_bindir}/icuinfo
+%{_bindir}/icu-config
+%{_sbindir}/*
+%dir %{_datadir}/icu/%{version}
+%{_datadir}/icu/%{version}/config/mh-linux
+%{_datadir}/icu/%{version}/install-sh
+%{_datadir}/icu/%{version}/LICENSE
+%{_datadir}/icu/%{version}/mkinstalldirs
+
+%files -n libicu-devel
+%manifest %{name}.manifest
+%license LICENSE
+%{_includedir}/layout
+%{_includedir}/unicode
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/icu-*.pc
+%{_libdir}/%{name}