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}
24 Provides: capi-base-utils-devel-profile_ivi
25 Provides: capi-base-utils-devel-profile_tv
26 Provides: capi-base-utils-devel-profile_wearable
29 The base utils library for internationalization and localization (Development)
31 %package devel-support-deprecated
32 License: Apache-2.0 and ICU
33 Summary: The Base Utils Library (Development)
35 Requires: capi-base-utils-devel = %{version}-%{release}
36 Provides: capi-base-utils-devel-profile_common
37 Provides: capi-base-utils-devel-profile_mobile
39 %description devel-support-deprecated
40 The base utils library for internationalization and localization (Development)
41 with support of deprecated APIs for mobile/common/common-iot profiles in
49 #export CFLAGS="$CFLAGS -Wall -Werror -Wno-unused-function"
51 #internally, using headers with additional deprecated API does not affect those who do not want deprecated APIs.
52 cp src/include/deprecated/utils_i18n_timezone.h src/include/
53 cp src/include/deprecated/utils_i18n_usearch.h src/include/
54 cp src/include/deprecated/utils_i18n_ustring.h src/include/
56 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
57 -DPKG_NAME=%{name} -DPKG_VERSION=%{version} \
64 mkdir -p %{buildroot}/usr/share/license
65 cp LICENSE %{buildroot}/usr/share/license/%{name}
66 cat LICENSE.ICU >> %{buildroot}/usr/share/license/%{name}
68 %post -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
73 ln -s %{_includedir}/base/cleaned/utils_i18n_timezone.h %{_includedir}/base/
74 ln -s %{_includedir}/base/cleaned/utils_i18n_usearch.h %{_includedir}/base/
75 ln -s %{_includedir}/base/cleaned/utils_i18n_ustring.h %{_includedir}/base/
78 rm %{_includedir}/base/utils_i18n_timezone.h
79 rm %{_includedir}/base/utils_i18n_usearch.h
80 rm %{_includedir}/base/utils_i18n_ustring.h
82 %post devel-support-deprecated
83 rm %{_includedir}/base/utils_i18n_timezone.h
84 rm %{_includedir}/base/utils_i18n_usearch.h
85 rm %{_includedir}/base/utils_i18n_ustring.h
86 ln -s %{_includedir}/base/deprecated/utils_i18n_timezone.h %{_includedir}/base/
87 ln -s %{_includedir}/base/deprecated/utils_i18n_usearch.h %{_includedir}/base/
88 ln -s %{_includedir}/base/deprecated/utils_i18n_ustring.h %{_includedir}/base/
90 %postun devel-support-deprecated
91 rm %{_includedir}/base/utils_i18n_timezone.h
92 rm %{_includedir}/base/utils_i18n_usearch.h
93 rm %{_includedir}/base/utils_i18n_ustring.h
94 ln -s %{_includedir}/base/cleaned/utils_i18n_timezone.h %{_includedir}/base/
95 ln -s %{_includedir}/base/cleaned/utils_i18n_usearch.h %{_includedir}/base/
96 ln -s %{_includedir}/base/cleaned/utils_i18n_ustring.h %{_includedir}/base/
99 %manifest capi-base-utils.manifest
100 %{_libdir}/libbase-utils-i18n.so*
101 /usr/share/license/%{name}
104 %defattr(-,root,root,-)
105 %{_includedir}/base/utils_i18n*.h
106 %{_includedir}/base/cleaned/utils_i18n*.h
107 %{_libdir}/pkgconfig/*.pc
109 %files devel-support-deprecated
110 %defattr(-,root,root,-)
111 %{_includedir}/base/deprecated/utils_i18n*.h