1 %define libname libtzplatform-config
4 Name: tizen-platform-config
7 Summary: Tizen Platform Configuration
8 License: MIT and LGPL-2.0+
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-config-meta
17 BuildRequires: coreutils
19 Requires(post): coreutils
21 # the main package only contains a config file but other dependent packages
22 # will contain binary. So, we can't build a noarch package and have to avoid
23 # a rpmlint warning using a filter in xxx-rpmlintrc
26 Tizen Platform Configuration - variables definitions
28 %package -n %{libname}
29 Summary: Tizen Platform Configuration - helper library
30 Group: System/Libraries
32 Requires: %{name} = %{version}
33 %description -n %{libname}
34 Tizen Platform Configuration - helper library to lookup Tizen variables easily
36 %package -n %{libname}-devel
37 Summary: Tizen Platform Configuration - helper libray headers, RPM macros
38 Group: Development/Libraries
40 Requires: %{libname} = %{version}
41 %description -n %{libname}-devel
42 Tizen Platform Configuration - helper library headers to include in source code,
43 RPM macros to call in spec files
45 %package -n %{name}-tools
46 Summary: Tizen Platform Configuration - tools
47 Group: System/Utilities
49 Requires: %{libname} = %{version}
50 %description -n %{name}-tools
51 Tizen Platform Configuration - helper program to lookup Tizen variables easily
58 %reconfigure --enable-static
59 %__make %{?_smp_mflags}
66 rm %{buildroot}%{_libdir}/*.a
69 ##############################################
70 # BEGIN - setting of predefined directories (also /etc/skel)
71 ##############################################
74 . "%{_sysconfdir}/tizen-platform.conf"
77 SMACK System::Shared true
93 SMACK User::Home false
100 $TZ_SYS_RW_ICONS/default
101 $TZ_SYS_RW_ICONS/default/small
104 SMACK User::App::Shared true
119 $TZ_USER_HOME/.pki/nssdb
120 $TZ_USER_APP/xwalk-service
122 SMACK System::Shared true
125 SMACK System::Shared false
133 SMACK User::App::Shared true
137 while read s1 s2 s3; do
140 SMACK) c="$s2"; t="$s3";;
142 *) echo "$s1 ${m:-700} ${c:-_} ${t:-false}";;
146 while read dirname mode context transmute; do
147 if [ -e "$dirname" ]; then
148 chmod "$mode" "$dirname"
150 mkdir -p -m "$mode" "$dirname"
152 if [ "$transmute" = true ]; then
153 chsmack -a "$context" -t "$dirname"
155 chsmack -a "$context" "$dirname"
158 ln -s $TZ_SYS_MEDIASHARED $TZ_USER_MEDIASHARED
160 ##############################################
161 # END - setting of predefined directories (also /etc/skel)
162 ##############################################
164 %post -n %{libname} -p /sbin/ldconfig
166 %postun -n %{libname} -p /sbin/ldconfig
169 %manifest %{name}.manifest
170 %license LICENSE.MIT LICENSE.LGPL-2.0+
171 %config %{_sysconfdir}/tizen-platform.conf
174 %manifest %{name}.manifest
175 %license LICENSE.LGPL-2.0+
178 %files -n %{libname}-devel
179 %manifest %{name}.manifest
181 %{_libdir}/pkgconfig/*.pc
183 %config %{_sysconfdir}/rpm/macros.tizen-platform
185 %files -n %{name}-tools
186 %manifest %{name}.manifest
187 %license LICENSE.LGPL-2.0+