1 #%if "%{run_tests}" == "1"
2 # %define check %%check
5 Name: capi-system-system-settings
6 Summary: A System Settings library in Tizen Native API
9 Group: System/System Info
11 Source0: %{name}-%{version}.tar.gz
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(vconf)
15 BuildRequires: pkgconfig(aul)
16 BuildRequires: pkgconfig(fontconfig)
17 BuildRequires: pkgconfig(libxml-2.0)
18 BuildRequires: pkgconfig(pkgmgr)
19 BuildRequires: pkgconfig(pkgmgr-info)
20 BuildRequires: pkgconfig(libtzplatform-config)
21 BuildRequires: pkgconfig(alarm-service)
22 BuildRequires: pkgconfig(uuid)
23 BuildRequires: pkgconfig(capi-media-metadata-extractor)
24 BuildRequires: pkgconfig(capi-system-info)
25 BuildRequires: pkgconfig(libsystemd)
27 BuildRequires: pkgconfig(json-glib-1.0)
28 BuildRequires: pkgconfig(glib-2.0)
29 BuildRequires: pkgconfig(capi-appfw-app-manager)
30 BuildRequires: pkgconfig(capi-appfw-package-manager)
32 Requires(post): /sbin/ldconfig
33 Requires(postun): /sbin/ldconfig
36 System setting api for get,set configuration
39 Summary: A System Settings library in Tizen Native API (Development)
40 Group: System/System Info
41 Requires: %{name} = %{version}-%{release}
42 Requires: pkgconfig(capi-base-common)
45 System setting api for get,set configuration
52 %define tizen_profile_name mobile
56 %if "%{?tizen_profile_name}" == "wearable"
57 export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
58 export CXXFLAGS="$CXXFLAGS -DTIZEN_WEARABLE"
59 export FFLAGS="$FFLAGS -DTIZEN_WEARABLE"
61 export CFLAGS="$CFLAGS -DTIZEN_MOBILE"
62 export CXXFLAGS="$CXXFLAGS -DTIZEN_MOBILE"
63 export FFLAGS="$FFLAGS -DTIZEN_MOBILE"
66 %if 0%{?sec_build_binary_debug_enable}
67 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
68 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
69 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
72 %if 0%{?tizen_build_binary_release_type_eng}
73 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
74 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
75 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
80 export CFLAGS+="$CFLAGS -DSETTING_ARCH_64"
81 export CXXFLAGS+="$CXXFLAGS -DSETTING_ARCH_64"
82 export FFLAGS+="$FFLAGS -DSETTING_ARCH_64"
86 export CFLAGS+="$CFLAGS -DSETTING_ARCH_64"
87 export CXXFLAGS+="$CXXFLAGS -DSETTING_ARCH_64"
88 export FFLAGS+="$FFLAGS -DSETTING_ARCH_64"
93 VERSION=`echo %{version} | grep Version: | awk '{ print $2 }'`
94 RELEASE=`echo %{version} | grep Version: | awk '{ print $2 }'`
95 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
97 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DCMAKE_LIBDIR=%{_libdir} \
98 -DCMAKE_INCLUDEDIR=%{_includedir} \
99 -DTZ_SYS_DATA=%{TZ_SYS_DATA} \
100 -DTZ_SYS_ETC=%{TZ_SYS_ETC} \
101 -DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
102 -DTZ_SYS_SHARE=%{TZ_SYS_SHARE} \
103 -DSETTING_DEF_RES=%{TZ_SYS_GLOBALUSER_DATA}/settings \
104 %if 0%{?thread_number}
105 -DN_THREADS=%{thread_number} \
107 %if "%{run_tests}" == "1"
108 -DCMAKE_BUILD_TYPE=UNITTEST \
110 -DGCOV_PREFIX="%{buildroot}" \
111 -DGCOV_PREFIX_STRIP=1
118 make %{?jobs:-j%jobs}
124 %post -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
130 %manifest %{name}.manifest
132 %if "%{run_tests}" == "1"
133 /usr/local/bin/system-setting-unittest
135 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_setting_platform.c.gcno
136 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_settings.c.gcno
137 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_settings_json.c.gcno
138 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_settings_ringtones.c.gcno
139 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_settings_vconf.c.gcno
140 /usr/src/packages/BUILD/%{name}-%{version}/CMakeFiles/%{name}.dir/src/system_settings_multi_callback.c.gcno
141 /usr/src/packages/BUILD/%{name}-%{version}/system-settings-util/CMakeFiles/system-settings-util.dir/src/system_settings_util.c.gcno
144 # /usr/local/bin/test_system_settings
145 #/usr/local/bin/test_system_settings_gui
148 %manifest %{name}.manifest
150 %{_includedir}/system/*.h
151 %{_includedir}/system_settings_util.h
152 %{_libdir}/pkgconfig/*.pc