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
84 SMACK User::App::Shared true
102 while read s1 s2 s3; do
105 SMACK) c="$s2"; t="$s3";;
107 *) echo "$s1 ${m:-700} ${c:-_} ${t:-false}";;
111 while read dirname mode context transmute; do
112 mkdir -p -m "$mode" "$dirname"
113 if [ "$transmute" = true ]; then
114 chsmack -a "$context" "$dirname"
116 chsmack -t -a "$context" "$dirname"
120 ##############################################
121 # END - setting of predefined directories (also /etc/skel)
122 ##############################################
124 %post -n %{libname} -p /sbin/ldconfig
126 %postun -n %{libname} -p /sbin/ldconfig
129 %manifest %{name}.manifest
131 %config %{_sysconfdir}/tizen-platform.conf
134 %manifest %{name}.manifest
137 %files -n %{libname}-devel
138 %manifest %{name}.manifest
141 %{_libdir}/pkgconfig/*.pc
143 %config %{_sysconfdir}/rpm/macros.tizen-platform
146 %files -n %{name}-tools
147 %manifest %{name}.manifest