diff options
author | JuWan Kim <juwan.kim@samsung.com> | 2015-01-29 15:32:02 +0900 |
---|---|---|
committer | JuWan Kim <juwan.kim@samsung.com> | 2015-01-29 15:32:02 +0900 |
commit | 339eab3ada8582d1b6ff443f4518412a7e5ba158 (patch) | |
tree | 213aef3a174c7c8749e07cdd31ec3e009c0d3161 /packaging | |
parent | 587374dec12d7d1bfe0732e8bb2cda2bc6f5f900 (diff) | |
download | settings-339eab3ada8582d1b6ff443f4518412a7e5ba158.tar.gz settings-339eab3ada8582d1b6ff443f4518412a7e5ba158.tar.bz2 settings-339eab3ada8582d1b6ff443f4518412a7e5ba158.zip |
Base code / protex done / build check done (32/64bit)submit/tizen_tv/20150129.095141accepted/tizen/tv/20150130.000900
Change-Id: Ie572ec19fc5afdad3c7018201036b71bd43193c8
Signed-off-by: JuWan Kim <juwan.kim@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/org.tizen.settings-tv-ref.spec | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/packaging/org.tizen.settings-tv-ref.spec b/packaging/org.tizen.settings-tv-ref.spec new file mode 100644 index 0000000..c2697e7 --- /dev/null +++ b/packaging/org.tizen.settings-tv-ref.spec @@ -0,0 +1,159 @@ +Name: org.tizen.settings-tv-ref +Summary: Setting Reference Application +Version: 0.1 +Release: 1 +Group: Applications/Native Applications +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gettext-tools +BuildRequires: edje-bin +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(ecore) +BuildRequires: pkgconfig(ecore-x) +BuildRequires: pkgconfig(edje) +BuildRequires: pkgconfig(utilX) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(aul) +BuildRequires: pkgconfig(eina) +BuildRequires: pkgconfig(ui-gadget-1) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(capi-system-info) +BuildRequires: pkgconfig(capi-network-wifi) +BuildRequires: pkgconfig(capi-network-connection) +BuildRequires: pkgconfig(capi-media-sound-manager) +BuildRequires: pkgconfig(wifi-direct) +BuildRequires: pkgconfig(sysman) +BuildRequires: gettext-devel +BuildRequires: vconf +#BuildRequires: pkgconfig(capi-appfw-tvcontext) +#BuildRequires: pkgconfig(capi-system-tvtimer) +#BuildRequires: pkgconfig(tv-service) +#BuildRequires: pkgconfig(tv-player-core) + +%define _packagedir /usr/apps/%{name} +%define _bindir %{_packagedir}/bin +%define _resdir %{_packagedir}/res +%define _imgdir %{_packagedir}/res/images +%define _edjedir %{_packagedir}/res/edje +%define _localedir %{_packagedir}/res/locale +%define _manifestdir /usr/share/packages +%define _jsonoutputdir %{_resdir}/json +%define _uglibdir /usr/ug/lib +%define _desktop_icondir /usr/share/icons/default/small +%define _ugedjedir /usr/ug/res/edje +%define _jsonhelperfile %{_jsonoutputdir}/helper.json + +%description +Description: settings-tv-ref application + +%prep +%setup -q + +%build +cmake . \ + -DCMAKE_INSTALL_PREFIX=%{_packagedir} \ + -DPACKAGE_NAME=%{name} \ + -DBINDIR=%{_bindir} \ + -DIMAGEDIR=%{_imgdir} \ + -DEDJEDIR=%{_edjedir} \ + -DLOCALEDIR=%{_localedir} \ + -DMANIFESTDIR=%{_manifestdir} \ + -DVERSION=%{version} \ + -DJSONOUTPUTDIR=%{_jsonoutputdir} \ + -DUGLIBDIR=%{_uglibdir} \ + -DDESKTOP_ICONDIR=%{_desktop_icondir} \ + -DDESKTOP_ICON=%{name}.png \ + -DDESKTOP_ICON_4X2=%{name}_4x2.png \ + -DJSONHELPERFILE=%{_jsonhelperfile} +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%post +# Set vconf values with -g/-u options +GOPTION="-g 6514" + +# Network +vconftool $GOPTION set -t string db/menu/network/wired_dns "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wired_gateway "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wired_ip_mode "Obtain automatically" +vconftool $GOPTION set -t string db/menu/network/wired_dns_mode "Obtain automatically" +vconftool $GOPTION set -t string db/menu/network/wired_ip "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wired_subnet "0.0.0.0" + +vconftool $GOPTION set -t string db/menu/network/wireless_dns "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wireless_gateway "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wireless_ip_mode "Obtain automatically" +vconftool $GOPTION set -t string db/menu/network/wireless_dns_mode "Obtain automatically" +vconftool $GOPTION set -t string db/menu/network/wireless_ip "0.0.0.0" +vconftool $GOPTION set -t string db/menu/network/wireless_subnet "0.0.0.0" + +# Proxy +vconftool $GOPTION set -t int db/menu/proxy/method 0 +vconftool $GOPTION set -t string db/menu/proxy/ip "0.0.0.0" +vconftool $GOPTION set -t string db/menu/proxy/url "" + +# Broadcasting +vconftool $GOPTION set -t bool db/menu/broadcasting/channel_lock 0 + +# Time +vconftool $GOPTION set -t int db/menu/system/time/clock/clock_mode 0 +vconftool $GOPTION set -t int db/menu/system/time/sleeptimer/value 0 +vconftool $GOPTION set -t int db/menu/system/time/sleeptimer/timer_id 0 +vconftool $GOPTION set -t string db/menu/system/time/ontimer1/setup "OFF" +vconftool $GOPTION set -t string db/menu/system/time/ontimer1/time "12:00" +vconftool $GOPTION set -t int db/menu/system/time/ontimer1/volume 20 +vconftool $GOPTION set -t string db/menu/system/time/ontimer1/external "TV" +vconftool $GOPTION set -t string db/menu/system/time/ontimer1/channel "30-01" +vconftool $GOPTION set -t string db/menu/system/ontimer1/channel_svcid "00" +vconftool $GOPTION set -t int db/menu/system/time/ontimer1/timer_id 0 +vconftool $GOPTION set -t int db/menu/system/clock/24hour_mode 0 + +vconftool $GOPTION set -t string db/menu/system/change_pin "0000" +vconftool $GOPTION set -t int db/menu/subtitle/subtitlelanguage 0 + +# FIXME: need to check below + +# Font +vconftool $GOPTION set -t int db/setting/font_size "1" +vconftool $GOPTION set -t int db/setting/font_type "0" + +# TimeAndData +vconftool $GOPTION set -t bool db/setting/automatic_time_update "1" +vconftool $GOPTION set -t int db/menu_widget/regionformat_time1224 "1" +vconftool $GOPTION set -t int db/setting/date_format "0" +vconftool $GOPTION set -t int db/setting/weekofday_format "0" +vconftool $GOPTION set -t string db/setting/timezone "+9" + +# LanguageAndRegion +vconftool $GOPTION set -t int db/setting/lang "9" +vconftool $GOPTION set -t string db/menu_widget/language "en_US.UTF-8" +vconftool $GOPTION set -t string db/menu_widget/regionformat "en_US.UTF-8" + +# Devoptions +vconftool $GOPTION -i set -t int db/setting/devoption/bgprocess "0" + + +chmod -R 777 /var/kdb/db/menu/ + +%postun -p /sbin/ldconfig + +%clean +rm -rf %{buildroot} + +%files +%manifest org.tizen.settings-tv-ref.manifest +%defattr(-,root,root,-) +%{_bindir}/* +%{_manifestdir}/%{name}.xml +%{_edjedir}/* +%{_resdir}/json/*.json +%{_uglibdir}/* +%{_desktop_icondir}/%{name}.png +%{_desktop_icondir}/%{name}_4x2.png +%{_ugedjedir}/* |