Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(libtzplatform-config)
+# There are not ready for .so files of tv/wearable aarch64 and x86_64
+%if "%{?profile}" == "wearable" || "%{?profile}" == "tv"
+ExcludeArch: aarch64 x86_64
+%endif
+
%if %{_support_weblog}
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(json-glib-1.0)
Requires: %{name}-bin = %{version}-%{release}
Requires: libpush-compat = %{version}-%{release}
Recommends: libpush-profile_common = %{version}-%{release}
-Provides: libpush.so.0
%description -n libpush
Push service client library
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/pushd.path
%endif
+%ifarch %{ix86} || %{arm}
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || tv || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%install_service multi-user.target.wants pushd.service
%endif
+%endif //%ifarch %{ix86} || %{arm}
+
mkdir -p %{buildroot}/usr/share/licenses/%{name}
cp -f LICENSE %{buildroot}/usr/share/licenses/%{name}
%ifarch aarch64
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if mobile || ivi || common || "undefined"
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
-pushd aarch64/lib/
+pushd aarch64/lib64/
for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
popd
pushd aarch64/bin/
%endif
%endif
-%endif //%ifarch aarch64
-
%ifarch %{ix86}
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
%ifarch x86_64
-
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if mobile || ivi || common || "undefined"
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
pushd x86_64/lib64/
for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
popd
%endif
%endif
-%endif //%ifarch x86_64
-
%post bin
mkdir -p %{TZ_SYS_GLOBALUSER_DB}
sqlite3 %{TZ_SYS_GLOBALUSER_DB}/.push.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
ln -sf ../pushd.path %{_unitdir}/multi-user.target.wants/
%endif
+
+%ifarch %{ix86} || %{arm}
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if tv || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%endif
+%endif //%ifarch %{ix86} || %{arm}
+
%files -n libpush
%manifest libpush.manifest
+# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# if mobile || ivi || common || "undefined"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%attr(755,root,root) %{_libdir}/libpush.so*
+%exclude %{_libdir}/libpush.so*.tv
+%exclude %{_libdir}/libpush.so*.wearable
+%endif
%files -n libpush-devel
%{_includedir}/*.h
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
%files -n libpush-profile_common
-%manifest libpush.manifest
-%attr(755,root,root) %{_libdir}/libpush.so*
-%exclude %{_libdir}/libpush.so*.tv
-%exclude %{_libdir}/libpush.so*.wearable
+# default .so files are housed in the main pkg.
%files bin-profile_common
%{_bindir}/pushd
%endif
+%ifarch %{ix86} || %{arm}
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if tv || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%endif
+%endif //%ifarch %{ix86} || %{arm}
+
%changelog
* Sat Nov 3 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.26
- Prevent bug fixed(out-of bounds read, dead code,..)