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"
41 %if "%{profile}" == "common"
44 %if "%{profile}" == "common_iot"
54 mkdir -p %{buildroot}/usr/share/license
55 cp LICENSE %{buildroot}/usr/share/license/%{name}
56 cat LICENSE.ICU >> %{buildroot}/usr/share/license/%{name}
58 %post -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
63 %manifest capi-base-utils.manifest
64 %{_libdir}/libbase-utils-i18n.so*
65 /usr/share/license/%{name}
68 %defattr(-,root,root,-)
69 %{_includedir}/base/utils_i18n*.h
70 %{_libdir}/pkgconfig/*.pc