email_0.0.13 package upload
[apps/core/preloaded/email.git] / packaging / org.tizen.email.spec
1 Name:       org.tizen.email
2 Summary:    Native email application
3 Version:    0.0.13
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-service2)
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(notification)
39 BuildRequires: pkgconfig(capi-media-metadata-extractor)
40 BuildRequires: pkgconfig(capi-media-image-util)
41 BuildRequires: pkgconfig(capi-content-media-content)
42 BuildRequires: pkgconfig(libexif)
43 BuildRequires: pkgconfig(libxml-2.0)
44 Requires: email-service
45 Requires: libug-worldclock-efl
46
47
48 %description
49 Description: Native email application
50
51 %prep
52 %setup -q
53
54 %build
55
56 %define _usrdir /usr
57 %define _ugdir %{_usrdir}/ug
58 %define _appdir %{_usrdir}/apps
59 %define _pkgdir %{_appdir}/%{name}
60 %define _libdir %{_pkgdir}/lib
61 %define _sharedir %{_usrdir}/share
62
63 export CFLAGS="${CFLAGS} -fPIC -Wall -g"
64 export CXXFLAGS="${CXXFLAGS} -fPIC -Wall -g"
65 export LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,-zdefs"
66
67 cmake . -DCMAKE_INSTALL_PREFIX=%{_pkgdir}
68
69 #make %{?jobs:-j%jobs}
70 make
71
72 %install
73 rm -rf %{buildroot}
74 mkdir -p %{buildroot}/usr/share/license
75
76 %make_install
77
78 %post
79 /usr/bin/vconftool set -t int    file/private/org.tizen.email/defaultaccount "1" -g 6514
80 /usr/bin/vconftool set -t int    file/private/org.tizen.email/slot_size "50" -g 6514
81 /usr/bin/vconftool set -t int    file/private/org.tizen.email/spam_rule_changed "0" -g 6514
82 /usr/bin/vconftool set -t int    file/private/org.tizen.email/threadlist "1" -g 6514
83
84 chown -R 5000:5000 %{_pkgdir}/data
85
86 mkdir -p %{_ugdir}/bin/
87 ln -sf /usr/bin/ug-client %{_ugdir}/bin/email-composer-efl
88 ln -sf /usr/bin/ug-client %{_ugdir}/bin/email-setting-efl
89
90 %files
91 %manifest org.tizen.email.manifest
92 %defattr(-,root,root,-)
93 %exclude %{_sharedir}/process-info/email.ini
94 %{_libdir}/libemail-common.so
95 %{_ugdir}/lib/libug-email-composer-efl.so
96 %{_ugdir}/lib/libug-email-viewer-efl.so
97 %{_ugdir}/lib/libug-email-account-efl.so
98 %{_ugdir}/lib/libug-email-mailbox-efl.so
99 %{_ugdir}/lib/libug-email-setting-efl.so
100 %{_pkgdir}/res/edje/email-viewer-theme.edj
101 %{_pkgdir}/res/edje/email-setting-theme.edj
102 %{_pkgdir}/res/edje/email-account-theme.edj
103 %{_pkgdir}/res/edje/email-effect-layout.edj
104 %{_pkgdir}/res/edje/email-composer-view.edj
105 %{_pkgdir}/res/edje/email-mailbox-theme.edj
106 %{_pkgdir}/res/locale/*/LC_MESSAGES/*
107 %{_pkgdir}/res/images/*
108 %{_pkgdir}/res/xml/sp_list.xml
109 %{_pkgdir}/bin/email
110 %{_pkgdir}/data/_email_default.html
111 %{_sharedir}/packages/org.tizen.email.xml
112 /opt/usr/share/account/email-setting-efl.account.xml
113 %{_sharedir}/icons/default/small/org.tizen.email.png
114 %{_sharedir}/license/%{name}/LICENSE
115