Add default pin number
[profile/tv/apps/native/settings.git] / packaging / org.tizen.settings-tv-ref.spec
1 Name:       org.tizen.settings-tv-ref
2 Summary:    Setting Reference Application
3 Version:    0.2
4 Release:    1
5 Group:      Applications/Native Applications
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1:    %{name}.manifest
9 BuildRequires:  cmake
10 BuildRequires:  gettext-tools
11 BuildRequires:  edje-bin
12 BuildRequires:  pkgconfig(capi-appfw-application)
13 BuildRequires:  pkgconfig(elementary)
14 BuildRequires:  pkgconfig(ecore)
15 BuildRequires:  pkgconfig(edje)
16 BuildRequires:  pkgconfig(dlog)
17 BuildRequires:  pkgconfig(aul)
18 BuildRequires:  pkgconfig(eina)
19 BuildRequires:  pkgconfig(ui-gadget-1)
20 BuildRequires:  pkgconfig(json-glib-1.0)
21 BuildRequires:  pkgconfig(capi-system-info)
22 BuildRequires:  pkgconfig(capi-network-wifi)
23 BuildRequires:  pkgconfig(capi-network-connection)
24 BuildRequires:  pkgconfig(capi-media-sound-manager)
25 BuildRequires:  pkgconfig(capi-network-wifi-direct)
26 BuildRequires:  gettext-devel
27 BuildRequires:  vconf
28 #BuildRequires: pkgconfig(capi-appfw-tvcontext)
29 #BuildRequires:  pkgconfig(capi-system-tvtimer)
30 #BuildRequires: pkgconfig(tv-service)
31 #BuildRequires: pkgconfig(tv-player-core)
32
33 %define _packagedir /usr/apps/%{name}
34 %define _bindir %{_packagedir}/bin
35 %define _resdir %{_packagedir}/res
36 %define _imgdir %{_packagedir}/res/images
37 %define _edjedir %{_packagedir}/res/edje
38 %define _localedir %{_packagedir}/res/locale
39 %define _manifestdir /usr/share/packages
40 %define _jsonoutputdir %{_resdir}/json
41 %define _uglibdir /usr/ug/lib
42 %define _desktop_icondir /usr/share/icons
43 %define _ugedjedir /usr/ug/res/edje
44 %define _jsonhelperfile %{_jsonoutputdir}/helper.json
45
46 %description
47 Description: settings-tv-ref application
48
49 %prep
50 %setup -q
51 cp %{SOURCE1} .
52
53 %build
54 cmake . \
55         -DCMAKE_INSTALL_PREFIX=%{_packagedir} \
56         -DPACKAGE_NAME=%{name} \
57         -DBINDIR=%{_bindir} \
58         -DIMAGEDIR=%{_imgdir} \
59         -DEDJEDIR=%{_edjedir} \
60         -DLOCALEDIR=%{_localedir} \
61         -DMANIFESTDIR=%{_manifestdir} \
62         -DVERSION=%{version} \
63         -DJSONOUTPUTDIR=%{_jsonoutputdir} \
64         -DUGLIBDIR=%{_uglibdir} \
65         -DDESKTOP_ICONDIR=%{_desktop_icondir} \
66         -DDESKTOP_ICON=%{name}.png \
67         -DDESKTOP_ICON_4X2=%{name}_4x2.png \
68         -DJSONHELPERFILE=%{_jsonhelperfile}
69 make %{?jobs:-j%jobs}
70
71 %install
72 rm -rf %{buildroot}
73 %make_install
74
75 %post
76 /sbin/ldconfig
77 vconftool set -t string db/menu/system/change_pin "0000" -f
78
79 %postun -p /sbin/ldconfig
80
81 %clean
82 rm -rf %{buildroot}
83
84 %files
85 %manifest %{name}.manifest
86 %defattr(-,root,root,-)
87 %{_bindir}/*
88 %{_manifestdir}/%{name}.xml
89 %{_edjedir}/*
90 %{_resdir}/json/*.json
91 %{_uglibdir}/*
92 %{_desktop_icondir}/%{name}.png
93 %{_desktop_icondir}/%{name}_4x2.png
94 %{_ugedjedir}/*