Applied the media server
[apps/core/preloaded/email.git] / packaging / org.tizen.email.spec
1 Name:       org.tizen.email
2 Summary:    email application
3 Version:    0.0.10
4 Release:    1
5 Group:      devel
6 License:    Flora
7 Source0:    %{name}-%{version}.tar.gz
8 Requires(post): /usr/bin/vconftool
9 BuildRequires:  cmake
10 BuildRequires:  edje-tools
11 BuildRequires:  embryo-bin
12 BuildRequires:  gettext-tools
13 BuildRequires:  libug-contacts-devel
14 BuildRequires:  pkgconfig(icu-i18n)
15 BuildRequires:  pkgconfig(appcore-common)
16 BuildRequires:  pkgconfig(appcore-efl)
17 BuildRequires:  pkgconfig(email-service)
18 BuildRequires:  pkgconfig(ecore)
19 BuildRequires:  pkgconfig(glib-2.0)
20 BuildRequires:  pkgconfig(elementary)
21 BuildRequires:  pkgconfig(db-util)
22 BuildRequires:  pkgconfig(sysman)
23 BuildRequires:  pkgconfig(utilX)
24 BuildRequires:  pkgconfig(ewebkit2)
25 BuildRequires:  pkgconfig(dlog)
26 BuildRequires:  pkgconfig(ui-gadget-1)
27 BuildRequires:  pkgconfig(bundle)
28 BuildRequires:  pkgconfig(edbus)
29 BuildRequires:  pkgconfig(efreet)
30 BuildRequires:  pkgconfig(capi-appfw-application)
31 BuildRequires:  pkgconfig(capi-base-common)
32 BuildRequires:  pkgconfig(contacts-service)
33 BuildRequires:  pkgconfig(ethumb)
34 BuildRequires:  pkgconfig(libmedia-utils)
35 BuildRequires:  pkgconfig(calendar-service2)
36 BuildRequires:  pkgconfig(drm-client)
37 BuildRequires:  pkgconfig(status)
38 BuildRequires:  pkgconfig(capi-media-metadata-extractor)
39 BuildRequires:  pkgconfig(capi-media-image-util)
40 BuildRequires:  pkgconfig(capi-content-media-content)
41 BuildRequires:  pkgconfig(libexif)
42 BuildRequires:  pkgconfig(libxml-2.0)
43 Requires: email-service
44
45
46 %description
47 Description: email application
48
49 %prep
50 %setup -q
51
52 %build
53
54 %define _usrdir /usr
55 %define _ugdir %{_usrdir}/ug
56 %define _appdir %{_usrdir}/apps
57 %define _pkgdir %{_appdir}/%{name}
58 %define _libdir %{_pkgdir}/lib
59 %define _sharedir %{_usrdir}/share
60
61 export CFLAGS="${CFLAGS} -fPIC -Wall -g"
62 export CXXFLAGS="${CXXFLAGS} -fPIC -Wall -g"
63 export LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,-zdefs"
64
65 cmake . -DCMAKE_INSTALL_PREFIX=%{_pkgdir}
66
67 #make %{?jobs:-j%jobs}
68 make
69
70 %install
71 rm -rf %{buildroot}
72 mkdir -p %{buildroot}/usr/share/license
73
74 %make_install
75
76
77 %post
78 /usr/bin/vconftool set -t int    file/private/org.tizen.email/defaultaccount "1" -g 6514
79 /usr/bin/vconftool set -t int    file/private/org.tizen.email/slot_size "50" -g 6514
80 /usr/bin/vconftool set -t int    file/private/org.tizen.email/spam_rule_changed "0" -g 6514
81 /usr/bin/vconftool set -t int    file/private/org.tizen.email/threadlist "1" -g 6514
82 /usr/bin/vconftool set -t string file/private/org.tizen.email/aol_sending_address   "smtp.aol.com" -g 6514
83 /usr/bin/vconftool set -t int    file/private/org.tizen.email/aol_sending_port      "587" -g 6514
84 /usr/bin/vconftool set -t int    file/private/org.tizen.email/aol_sending_ssl       "0" -g 6514
85 /usr/bin/vconftool set -t int    file/private/org.tizen.email/aol_receiving_type    "2" -g 6514
86 /usr/bin/vconftool set -t string file/private/org.tizen.email/aol_receiving_address "imap.aol.com" -g 6514
87 /usr/bin/vconftool set -t int    file/private/org.tizen.email/aol_receiving_port    "143" -g 6514
88 /usr/bin/vconftool set -t int    file/private/org.tizen.email/aol_receiving_ssl     "0" -g 6514
89 /usr/bin/vconftool set -t string file/private/org.tizen.email/gmail_sending_address   "smtp.gmail.com" -g 6514
90 /usr/bin/vconftool set -t int    file/private/org.tizen.email/gmail_sending_port      "465" -g 6514
91 /usr/bin/vconftool set -t int    file/private/org.tizen.email/gmail_sending_ssl       "1" -g 6514
92 /usr/bin/vconftool set -t int    file/private/org.tizen.email/gmail_receiving_type    "2" -g 6514
93 /usr/bin/vconftool set -t string file/private/org.tizen.email/gmail_receiving_address "imap.gmail.com" -g 6514
94 /usr/bin/vconftool set -t int    file/private/org.tizen.email/gmail_receiving_port    "993" -g 6514
95 /usr/bin/vconftool set -t int    file/private/org.tizen.email/gmail_receiving_ssl     "1" -g 6514
96 /usr/bin/vconftool set -t string file/private/org.tizen.email/yahoo_sending_address   "smtp.mail.yahoo.co.kr" -g 6514
97 /usr/bin/vconftool set -t int    file/private/org.tizen.email/yahoo_sending_port      "465" -g 6514
98 /usr/bin/vconftool set -t int    file/private/org.tizen.email/yahoo_sending_ssl       "1" -g 6514
99 /usr/bin/vconftool set -t int    file/private/org.tizen.email/yahoo_receiving_type    "1" -g 6514
100 /usr/bin/vconftool set -t string file/private/org.tizen.email/yahoo_receiving_address "pop.mail.yahoo.co.kr" -g 6514
101 /usr/bin/vconftool set -t int    file/private/org.tizen.email/yahoo_receiving_port    "995" -g 6514
102 /usr/bin/vconftool set -t int    file/private/org.tizen.email/yahoo_receiving_ssl     "1" -g 6514
103 /usr/bin/vconftool set -t string file/private/org.tizen.email/hotmail_sending_address   "smtp.live.com" -g 6514
104 /usr/bin/vconftool set -t int    file/private/org.tizen.email/hotmail_sending_port      "587" -g 6514
105 /usr/bin/vconftool set -t int    file/private/org.tizen.email/hotmail_sending_ssl       "2" -g 6514
106 /usr/bin/vconftool set -t int    file/private/org.tizen.email/hotmail_receiving_type    "1" -g 6514
107 /usr/bin/vconftool set -t string file/private/org.tizen.email/hotmail_receiving_address "pop3.live.com" -g 6514
108 /usr/bin/vconftool set -t int    file/private/org.tizen.email/hotmail_receiving_port    "995" -g 6514
109 /usr/bin/vconftool set -t int    file/private/org.tizen.email/hotmail_receiving_ssl     "1" -g 6514
110
111 chown -R 5000:5000 %{_pkgdir}/data
112
113 mkdir -p %{_ugdir}/bin/
114 ln -sf /usr/bin/ug-client %{_ugdir}/bin/email-composer-efl
115
116
117 %files
118 %manifest org.tizen.email.manifest
119 %defattr(-,root,root,-)
120 %exclude %{_sharedir}/process-info/email.ini
121 %{_libdir}/libemail-common.so
122 %{_ugdir}/lib/libug-email-composer-efl.so
123 %{_ugdir}/lib/libug-email-viewer-efl.so
124 %{_ugdir}/lib/libug-email-account-efl.so
125 %{_ugdir}/lib/libug-email-mailbox-efl.so
126 %{_ugdir}/lib/libug-email-setting-efl.so
127 %{_pkgdir}/res/edje/email-viewer-theme.edj
128 %{_pkgdir}/res/edje/email-setting-theme.edj
129 %{_pkgdir}/res/edje/email-account-theme.edj
130 %{_pkgdir}/res/edje/email-effect-layout.edj
131 %{_pkgdir}/res/edje/email-composer-view.edj
132 %{_pkgdir}/res/edje/email-mailbox-theme.edj
133 %{_pkgdir}/res/locale/*/LC_MESSAGES/*
134 %{_pkgdir}/res/images/*
135 %{_pkgdir}/bin/email
136 %{_pkgdir}/data/_email_default.html
137 %{_pkgdir}/res/xml/sp_list.xml
138 %{_sharedir}/packages/org.tizen.email.xml
139 /opt/usr/share/account/org.tizen.email.account.xml
140 %{_sharedir}/icons/default/small/org.tizen.email.png
141 %{_sharedir}/license/%{name}/LICENSE
142