tizen 2.3.1 release
[apps/home/ug-wifi-direct.git] / packaging / libug-setting-wifidirect-efl.spec
1 #sbs-git:slp/apps/u/ug-wifi-di/rect libug-setting-wifidirect-efl 0.3.4 82f07b22ef73127a446c49e00b8dca37010b3ee2
2 %define PREFIX /usr/apps/setting-wifidirect-efl
3
4 Name:       libug-setting-wifidirect-efl
5 Summary:    Wi-Fi Direct setting UI gadget
6 Version:    1.11.47
7 Release:    1
8 Group:      App/Network
9 License:    Flora-1.0
10 Source0:    %{name}-%{version}.tar.gz
11 Requires(post): /sbin/ldconfig
12 Requires(post): /usr/bin/sqlite3
13 Requires(post): sys-assert
14 Requires(postun): /sbin/ldconfig
15 BuildRequires:  cmake
16 BuildRequires:  edje-tools
17 BuildRequires:  gettext-tools
18 BuildRequires:  pkgconfig(dlog)
19 BuildRequires:  pkgconfig(vconf)
20 BuildRequires:  pkgconfig(appcore-efl)
21 BuildRequires:  pkgconfig(bundle)
22 BuildRequires:  pkgconfig(ui-gadget-1)
23 BuildRequires:  pkgconfig(capi-network-wifi-direct)
24 BuildRequires:  pkgconfig(network)
25 BuildRequires:  pkgconfig(capi-network-tethering)
26 BuildRequires:  pkgconfig(utilX)
27 BuildRequires:  pkgconfig(elementary)
28 BuildRequires:  pkgconfig(edje)
29 BuildRequires:  pkgconfig(evas)
30 BuildRequires:  pkgconfig(ecore)
31 BuildRequires:  pkgconfig(ethumb)
32 BuildRequires:  pkgconfig(glib-2.0)
33 BuildRequires:  pkgconfig(efreet)
34 #BuildRequires:  pkgconfig(dbus-1)
35 #BuildRequires:  pkgconfig(edbus)
36 BuildRequires:  pkgconfig(aul)
37 BuildRequires:  pkgconfig(appsvc)
38 BuildRequires:  pkgconfig(capi-appfw-application)
39 BuildRequires:  pkgconfig(capi-system-runtime-info)
40 BuildRequires:  pkgconfig(capi-system-device)
41 #BuildRequires:  pkgconfig(capi-system-sensor)
42 BuildRequires:  pkgconfig(notification)
43 BuildRequires:  pkgconfig(feedback)
44 BuildRequires:  pkgconfig(deviced)
45 BuildRequires:  pkgconfig(efl-assist)
46 BuildRequires:  pkgconfig(utilX)
47 BuildRequires:  pkgconfig(capi-ui-efl-util)
48 BuildRequires:  model-build-features
49 BuildRequires:  cmake
50 BuildRequires:  gettext-devel
51 BuildRequires:  hash-signer
52
53 %description
54 wifi direct client library (Shared Library)
55
56
57 %package -n org.tizen.wifi-direct-popup
58 Summary:    Wifi-Wirect system popup
59 License:    Flora-1.0
60 Requires:   %{name} = %{version}-%{release}
61
62
63 %description -n org.tizen.wifi-direct-popup
64 Wi-Fi Direct system popup.
65
66
67
68 %prep
69 %setup -q
70
71 %build
72 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
73 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
74 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
75 %cmake . -DCMAKE_INSTALL_PREFIX=$PREFIX \
76 %if 0%{?model_build_feature_wlan_concurrent_mode} == 1
77         -DMODEL_BUILD_FEATURE_WLAN_CONCURRENT_MODE=1 \
78 %endif
79
80 make %{?jobs:-j%jobs}
81
82 %install
83 rm -rf %{buildroot}
84 %make_install
85 %define tizen_sign 1
86 %define tizen_sign_base /usr/apps/org.tizen.wifi-direct-popup
87 %define tizen_sign_level platform
88 %define tizen_author_sign 1
89 %define tizen_dist_sign 1
90 #%__strip %{buildroot}/usr/ug/lib/libug-setting-wifidirect-efl.so.0.1.0
91 #%__strip %{buildroot}/usr/apps/org.tizen.wifi-direct-popup/bin/wifi-direct-popup
92
93 mkdir -p %{buildroot}/usr/share/license
94 cp %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}/usr/share/license/%{name}
95 cp %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}/usr/share/license/org.tizen.wifi-direct-popup
96
97 %post
98 mkdir -p /usr/apps/setting-wifidirect-efl/bin/ -m 777
99 chown -R 5000:5000 /usr/apps/setting-wifidirect-efl/bin/
100 chsmack -a "_" /usr/apps/setting-wifidirect-efl/bin/
101
102 ln -sf /usr/bin/ug-client /usr/apps/setting-wifidirect-efl/bin/ug-setting-wifidirect-efl
103 ln -sf /usr/apps/setting-wifidirect-efl/lib/libug-setting-wifidirect-efl.so /usr/apps/setting-wifidirect-efl/lib/libug-ug-setting-wifidirect-efl.so
104
105 %post -n org.tizen.wifi-direct-popup
106
107
108 %postun
109
110
111 %files
112 %manifest setting-wifidirect-efl.manifest
113 %defattr(-,root,root,-)
114 /usr/apps/setting-wifidirect-efl/lib/ug/*
115 /usr/apps/setting-wifidirect-efl/res/edje/*
116 #/usr/ug/res/locale/*/*/*
117 #/usr/apps/setting-wifidirect-efl/data/locale/*/*/*
118 %{_datadir}/locale/*/LC_MESSAGES/*.mo
119 /usr/share/license/%{name}
120 /usr/share/packages/setting-wifidirect-efl.xml
121 /usr/apps/setting-wifidirect-efl/shared/res/tables/setting-wifidirect-efl_ChangeableColorTable.xml
122 /usr/apps/setting-wifidirect-efl/shared/res/tables/setting-wifidirect-efl_FontInfoTable.xml
123 /usr/apps/setting-wifidirect-efl/shared/icons/*
124
125 %files -n org.tizen.wifi-direct-popup
126 %manifest org.tizen.wifi-direct-popup.manifest
127 %defattr(-,root,root,-)
128 /usr/apps/org.tizen.wifi-direct-popup/bin/*
129 /usr/apps/org.tizen.wifi-direct-popup/res/images/*
130 /usr/apps/org.tizen.wifi-direct-popup/res/edje/*
131 /usr/apps/org.tizen.wifi-direct-popup/res/locale/*/*/*
132 #%{_datadir}/locale/*/LC_MESSAGES/*.mo
133 /usr/apps/org.tizen.wifi-direct-popup/author-signature.xml
134 /usr/apps/org.tizen.wifi-direct-popup/signature1.xml
135 #/usr/share/applications/org.tizen.wifi-direct-popup.desktop
136 #for appfw new manifest
137 /usr/share/packages/org.tizen.wifi-direct-popup.xml
138 /usr/share/license/org.tizen.wifi-direct-popup
139 %{_sysconfdir}/smack/accesses.d/org.tizen.wifi-direct-popup.efl
140