1 %define libname libtzplatform-config
4 Name: tizen-platform-config
7 Summary: Tizen Platform Configuration
9 Url: http://www.tizen.org
10 Group: System/Configuration
11 Source0: %{name}-%{version}.tar.gz
12 Source1: %{name}-rpmlintrc
13 Source1001: %{name}.manifest
14 BuildRequires: tizen-platform-wrapper >= 2
16 Requires(post): coreutils
18 # the main package only contains a config file but other dependent packages
19 # will contain binary. So, we can't build a noarch package and have to avoid
20 # a rpmlint warning using a filter in xxx-rpmlintrc
23 Tizen Platform Configuration - variables definitions
25 %package -n %{libname}
26 Summary: Tizen Platform Configuration - helper library
27 Group: System/Libraries
29 Requires: %{name} = %{version}
30 %description -n %{libname}
31 Tizen Platform Configuration - helper library to lookup Tizen variables easily
33 %package -n %{libname}-devel
34 Summary: Tizen Platform Configuration - helper libray headers, RPM macros
35 Group: Development/Libraries
37 Requires: %{libname} = %{version}
38 %description -n %{libname}-devel
39 Tizen Platform Configuration - helper library headers to include in source code,
40 RPM macros to call in spec files
42 %package -n %{name}-tools
43 Summary: Tizen Platform Configuration - tools
44 Group: System/Utilities
46 Requires: %{libname} = %{version}
47 %description -n %{name}-tools
48 Tizen Platform Configuration - helper program to lookup Tizen variables easily
55 %reconfigure --enable-static
56 %__make %{?_smp_mflags}
65 ##############################################
66 # BEGIN - setting of predefined directories (also /etc/skel)
67 ##############################################
69 HOME="%{_sysconfdir}/skel"
70 . "%{_sysconfdir}/tizen-platform.conf"
73 SMACK System::Shared true
88 SMACK User::Home false
96 $TZ_SYS_RW_ICONS/default
97 $TZ_SYS_RW_ICONS/default/small
99 SMACK User::App::Shared true
112 $TZ_USER_HOME/.pki/nssdb
113 $TZ_USER_APP/xwalk-service
115 SMACK System::Shared true
119 while read s1 s2 s3; do
122 SMACK) c="$s2"; t="$s3";;
124 *) echo "$s1 ${m:-700} ${c:-_} ${t:-false}";;
128 while read dirname mode context transmute; do
129 mkdir -p -m "$mode" "$dirname"
130 if [ "$transmute" = true ]; then
131 chsmack -a "$context" -t "$dirname"
133 chsmack -a "$context" "$dirname"
137 ##############################################
138 # END - setting of predefined directories (also /etc/skel)
139 ##############################################
141 %post -n %{libname} -p /sbin/ldconfig
143 %postun -n %{libname} -p /sbin/ldconfig
146 %manifest %{name}.manifest
148 %config %{_sysconfdir}/tizen-platform.conf
151 %manifest %{name}.manifest
154 %files -n %{libname}-devel
155 %manifest %{name}.manifest
158 %{_libdir}/pkgconfig/*.pc
160 %config %{_sysconfdir}/rpm/macros.tizen-platform
163 %files -n %{name}-tools
164 %manifest %{name}.manifest