6 License: Apache-2.0 and ICU
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(icu-i18n)
10 BuildRequires: pkgconfig(capi-base-common)
11 BuildRequires: pkgconfig(dlog)
13 Requires(post): /sbin/ldconfig
14 Requires(postun): /sbin/ldconfig
17 The base utils library for internationalization and localization
20 License: Apache-2.0 and ICU
21 Summary: The Base Utils Library (Development)
23 Requires: %{name} = %{version}-%{release}
26 The base utils library for internationalization and localization (Development)
32 #export CFLAGS="$CFLAGS -Wall -Werror -Wno-unused-function"
33 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
34 -DPKG_NAME=%{name} -DPKG_VERSION=%{version} \
35 %if "%{profile}" == "wearable"
36 -DTIZEN_WEARABLE=YES \
38 %if "%{profile}" == "mobile"
47 mkdir -p %{buildroot}/usr/share/license
48 cp LICENSE %{buildroot}/usr/share/license/%{name}
49 cat LICENSE.ICU >> %{buildroot}/usr/share/license/%{name}
51 %post -p /sbin/ldconfig
53 %postun -p /sbin/ldconfig
56 %manifest capi-base-utils.manifest
57 %{_libdir}/libbase-utils-i18n.so*
58 /usr/share/license/%{name}
61 %defattr(-,root,root,-)
62 %{_includedir}/base/utils_i18n_ucalendar.h
63 %{_includedir}/base/utils_i18n_udate.h
64 %{_includedir}/base/utils_i18n_udatepg.h
65 %{_includedir}/base/utils_i18n_ulocale.h
66 %{_includedir}/base/utils_i18n_unumber.h
67 %{_includedir}/base/utils_i18n_uchar.h
68 %{_includedir}/base/utils_i18n_ucollator.h
69 %{_includedir}/base/utils_i18n_unormalization.h
70 %{_includedir}/base/utils_i18n_usearch.h
71 %{_includedir}/base/utils_i18n_ustring.h
72 %{_includedir}/base/utils_i18n_timezone.h
73 %{_includedir}/base/utils_i18n_types.h
74 %{_includedir}/base/utils_i18n_uenumeration.h
75 %{_includedir}/base/utils_i18n_uset.h
76 %{_includedir}/base/utils_i18n_ubrk.h
77 %{_includedir}/base/utils_i18n.h
78 %{_libdir}/pkgconfig/*.pc