5 Summary: Application Information Library
6 Group: Application Framework/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: ail.manifest
10 BuildRequires: vconf-keys-devel
11 BuildRequires: pkgconfig(db-util)
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(libsmack)
14 BuildRequires: pkgconfig(sqlite3)
15 BuildRequires: pkgconfig(vconf)
16 BuildRequires: pkgconfig(xdgmime)
17 BuildRequires: pkgconfig(libtzplatform-config)
18 Provides: libail = %{version}-%{release}
19 Requires: libcap-tools
22 Application Information Library package
25 Summary: Application Information Library Development files
26 Requires: libail = %{version}-%{release}
27 Requires: pkgconfig(libtzplatform-config)
28 Requires: pkgconfig(libsmack)
31 Application Information Library Development files package
40 %if 0%{?tizen_build_binary_release_type_eng}
41 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
42 export CXXFLAGS="$CXXFLAGS ?DTIZEN_ENGINEER_MODE"
43 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
46 %cmake . -DTZ_SYS_RW_DESKTOP_APP=%TZ_SYS_RW_DESKTOP_APP \
50 %__make %{?_smp_mflags}
57 # Create tizenglobalapp user needed for global installation
58 useradd -d %TZ_SYS_RW_APP -m %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root
60 #mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
62 #ln -s .config/xwalk-service/applications/
64 vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
65 vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
66 vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
67 chsmack -a User %TZ_SYS_CONFIG/db/ail
68 chsmack -a User %TZ_SYS_CONFIG/db/ail/ail_info
69 chsmack -a User %TZ_SYS_CONFIG/db/menuscreen
70 chsmack -a User %TZ_SYS_CONFIG/db/menuscreen/desktop
71 chsmack -a User %TZ_SYS_CONFIG/db/menu_widget
72 chsmack -a User %TZ_SYS_CONFIG/db/menu_widget/language
74 mkdir -p %{TZ_SYS_RO_DESKTOP_APP}
75 mkdir -p %{TZ_SYS_RW_DESKTOP_APP}
76 mkdir -p %{TZ_SYS_RW_APP}
79 chsmack -a '*' %{TZ_SYS_DB}
80 chsmack -a '*' %{TZ_SYS_RW_APP}
81 chsmack -a '*' %{TZ_SYS_RW_DESKTOP_APP}
82 chsmack -a '*' %{TZ_SYS_RO_DESKTOP_APP}
84 chmod g+w %{TZ_SYS_RW_DESKTOP_APP}
85 chmod g+w %{TZ_SYS_RO_DESKTOP_APP}
86 chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_RW_DESKTOP_APP}
87 chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_RO_DESKTOP_APP}
88 chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_RW_APP}
89 chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_DB}
91 ail_initdb 2>/dev/null
92 chsmack -a '*' %{TZ_SYS_DB}/.app_info.db*
97 rm -f %{TZ_SYS_DB}/.app_info.db*
101 %manifest %{name}.manifest
103 %attr(06775,root,root) %{_bindir}/ail_initdb
104 %attr(0775,root,root) %{_bindir}/ail_initdb_user
106 %{_bindir}/ail_desktop
107 %{_bindir}/ail_filter
109 %{_bindir}/ail_package
110 %{_datadir}/install-info/*
111 %{_libdir}/libail.so.0
112 %{_libdir}/libail.so.0.1.0
115 %manifest %{name}.manifest
118 %{_libdir}/pkgconfig/ail.pc