/[packages]/cauldron/evolution/current/SPECS/evolution.spec
ViewVC logotype

Contents of /cauldron/evolution/current/SPECS/evolution.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 159416 - (show annotations) (download)
Sat Oct 29 02:31:25 2011 UTC (10 years, 1 month ago) by fwang
File size: 12117 byte(s)
new version 3.3.1.1
1 %define major_version 3.4
2 %define with_mono 1
3 %{?_without_mono: %{expand: %%global with_mono 0}}
4 %{?_with_mono: %{expand: %%global with_mono 1}}
5
6 %ifarch %arm %mips
7 %define with_mono 0
8 %endif
9
10 %define url_ver %(echo %{version}|cut -d. -f1,2)
11
12 Name: evolution
13 Summary: Integrated GNOME mail client, calendar and address book
14 Version: 3.3.1.1
15 Release: %mkrel 1
16 License: LGPLv2+
17 Group: Networking/Mail
18 Source0: http://download.gnome.org//sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
19 Source2: evolution_48.png
20 Source3: evolution_32.png
21 Source4: evolution_16.png
22 Patch: evolution-2.2.3-no-diagnostics.patch
23 URL: http://www.gnome.org/projects/evolution/
24
25 # (fc) 0.8-5mdk implicit dependency is not enough
26 Requires: evolution-data-server >= %{version}
27 Requires: gtkhtml4 >= 4.1.2
28 Requires: gnupg
29 Suggests: gstreamer0.10-plugins-good
30
31 ### Build Dependencies ###
32 BuildRequires: pkgconfig(atk)
33 BuildRequires: pkgconfig(cairo-gobject)
34 BuildRequires: pkgconfig(camel-1.2) >= %{version}
35 BuildRequires: pkgconfig(clutter-1.0) >= 1.0.0
36 BuildRequires: pkgconfig(clutter-gtk-1.0) >= 0.90
37 BuildRequires: pkgconfig(gail-3.0) >= 3.0.2
38 BuildRequires: pkgconfig(gconf-2.0) >= 2.0.0
39 BuildRequires: pkgconfig(gio-2.0) >= 2.30
40 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.91.3
41 BuildRequires: pkgconfig(gnome-icon-theme) >= 2.30.2.1
42 BuildRequires: pkgconfig(goa-1.0) >= 3.1.1
43 BuildRequires: pkgconfig(gsettings-desktop-schemas) >= 2.91.92
44 BuildRequires: pkgconfig(gstreamer-0.10)
45 BuildRequires: pkgconfig(gtkhtml-editor-4.0)
46 BuildRequires: pkgconfig(gtk+-3.0) >= 3.2.0
47 BuildRequires: pkgconfig(gweather-3.0) >= 2.90.0
48 BuildRequires: pkgconfig(ice)
49 BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.25
50 BuildRequires: pkgconfig(libebackend-1.2) >= %{version}
51 BuildRequires: pkgconfig(libebook-1.2) >= %{version}
52 BuildRequires: pkgconfig(libecal-1.2) >= %{version}
53 BuildRequires: pkgconfig(libedataserver-1.2) >= %{version}
54 BuildRequires: pkgconfig(libedataserverui-3.0) >= %{version}
55 BuildRequires: pkgconfig(libgdata) >= 0.10.0
56 BuildRequires: pkgconfig(libgtkhtml-4.0) >= 4.1.2
57 BuildRequires: pkgconfig(libnotify) >= 0.5.1
58 BuildRequires: pkgconfig(libpst)
59 BuildRequires: pkgconfig(libsoup-gnome-2.4) >= 2.31.2
60 BuildRequires: pkgconfig(libxml-2.0) >= 2.7.3
61 BuildRequires: pkgconfig(mx-1.0)
62 BuildRequires: pkgconfig(nspr)
63 BuildRequires: pkgconfig(nss)
64 BuildRequires: pkgconfig(shared-mime-info) >= 0.22
65 BuildRequires: pkgconfig(sm)
66 BuildRequires: openldap-devel
67 BuildRequires: gtk-doc gnome-doc-utils
68 BuildRequires: intltool
69 BuildRequires: desktop-file-utils
70
71 %description
72 Evolution is the GNOME mailer, calendar, contact manager and
73 communications tool. The tools which make up Evolution will
74 be tightly integrated with one another and act as a seamless
75 personal information-management tool.
76
77 %package -n %{name}-devel
78 Summary: Libraries and include files for developing Evolution components
79 Group: Development/GNOME and GTK+
80 Requires: %{name} = %{version}-%{release}
81 Obsoletes: libevolution0-devel
82
83 %description -n %{name}-devel
84 Evolution is the GNOME mailer, calendar, contact manager and
85 communications tool. The tools which make up Evolution will
86 be tightly integrated with one another and act as a seamless
87 personal information-management tool.
88
89 This package contains the files necessary to develop applications
90 using Evolution's libraries.
91
92 %if %with_mono
93 %package mono
94 Summary: Mono plugin loader for Evolution
95 Group: Communications
96 BuildRequires: pkgconfig(mono-2)
97 Requires: %name = %version
98 Requires: mono
99
100 %description mono
101 Evolution is the GNOME mailer, calendar, contact manager and
102 communications tool. The tools which make up Evolution will
103 be tightly integrated with one another and act as a seamless
104 personal information-management tool.
105
106 This is the Mono plugin loader that adds support for plugins developed
107 with mono.
108 %endif
109
110 %prep
111 %setup -q
112 %patch -p1 -b .diagnostics
113
114 # Remove the welcome email from Novell
115 for inbox in mail/default/*/Inbox; do
116 echo -n "" > $inbox
117 done
118
119 %build
120
121 %configure2_5x \
122 --enable-plugins=experimental \
123 --with-krb5=%{_prefix} --with-krb5-libs=%{_libdir} \
124 --with-openldap=yes --with-static-ldap=no --with-sub-version="-%{release}" \
125 --disable-nm \
126 %if %with_mono
127 --enable-mono=yes
128 %endif
129
130 %make
131
132 %install
133 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
134
135 %makeinstall_std
136
137 mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_liconsdir} %{buildroot}%{_miconsdir}
138 cp -f %{SOURCE2} %{buildroot}%{_liconsdir}/evolution.png
139 cp -f %{SOURCE3} %{buildroot}%{_iconsdir}/evolution.png
140 cp -f %{SOURCE4} %{buildroot}%{_miconsdir}/evolution.png
141
142 desktop-file-install --vendor="" \
143 --remove-category="Office" \
144 --remove-category="Calendar" \
145 --remove-category="ContactManagement" \
146 --add-category="Network" \
147 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/evolution.desktop
148
149 mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
150
151 cat << EOF > %{buildroot}%{_sysconfdir}/xdg/autostart/evolution-alarm-notify.desktop
152 [Desktop Entry]
153 Encoding=UTF-8
154 Name=Evolution Alarm Notifier
155 Comment=Evolution Alarm Notifier
156 Icon=stock_alarm
157 Exec=%{_libdir}/evolution/%{major_version}/evolution-alarm-notify
158 Terminal=false
159 Type=Application
160 OnlyShowIn=GNOME;
161 Categories=TrayIcon;
162 EOF
163
164 #remove unpackaged files
165 find %{buildroot}%{_libdir} -name *.la | xargs rm -f
166 rm -fr %buildroot/var/lib/
167
168 # do not package obsolete mime-info files, evolution doesn't import them on commandline (Mdv bug #53984)
169 rm -fr %{buildroot}/%{_datadir}/mime-info
170
171 %{find_lang} %{name}-%{major_version} --with-gnome --all-name
172
173 %clean
174 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
175
176 %define schemas apps_evolution_eplugin_face apps-evolution-external-editor apps_evolution_email_custom_header apps-evolution-mail-notification apps-evolution-mail-prompts-checkdefault apps_evolution_addressbook apps_evolution_calendar apps_evolution_shell evolution-mail apps-evolution-attachment-reminder apps-evolution-template-placeholders evolution-bogofilter evolution-spamassassin
177
178
179 %preun
180 %preun_uninstall_gconf_schemas %{schemas}
181
182 %files -f %{name}-%{major_version}.lang
183 %doc AUTHORS COPYING ChangeLog NEWS README
184 %{_sysconfdir}/xdg/autostart/*.desktop
185 %_sysconfdir/gconf/schemas/apps-evolution-external-editor.schemas
186 %_sysconfdir/gconf/schemas/apps_evolution_email_custom_header.schemas
187 %_sysconfdir/gconf/schemas/apps-evolution-mail-notification.schemas
188 %_sysconfdir/gconf/schemas/apps-evolution-mail-prompts-checkdefault.schemas
189 %_sysconfdir/gconf/schemas/apps-evolution-template-placeholders.schemas
190 %_sysconfdir/gconf/schemas/apps_evolution_addressbook.schemas
191 %_sysconfdir/gconf/schemas/apps_evolution_eplugin_face.schemas
192 %_sysconfdir/gconf/schemas/apps-evolution-attachment-reminder.schemas
193 %_sysconfdir/gconf/schemas/apps_evolution_calendar.schemas
194 %_sysconfdir/gconf/schemas/apps_evolution_shell.schemas
195 %_sysconfdir/gconf/schemas/evolution-mail.schemas
196 %_sysconfdir/gconf/schemas/evolution-bogofilter.schemas
197 %_sysconfdir/gconf/schemas/evolution-spamassassin.schemas
198 %{_bindir}/*
199 %dir %{_libdir}/evolution
200 %dir %{_libdir}/evolution/%{major_version}
201 %{_libdir}/evolution/%{major_version}/csv2vcard
202 %{_libdir}/evolution/%{major_version}/evolution-addressbook-clean
203 %{_libdir}/evolution/%{major_version}/evolution-addressbook-export
204 %{_libdir}/evolution/%{major_version}/*.so.0*
205 %{_libdir}/evolution/%{major_version}/evolution-backup
206 %{_libdir}/evolution/%{major_version}/evolution-alarm-notify
207 %{_libdir}/evolution/%{major_version}/killev
208 %dir %{_libdir}/evolution/%{major_version}/modules/
209 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-addressbook.*
210 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-calendar.*
211 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-composer-autosave.*
212 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-mail.*
213 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-mailto-handler.*
214 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-plugin-lib.*
215 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-startup-wizard.*
216 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-plugin-manager.*
217 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-offline-alert.*
218 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-online-accounts.*
219 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-bogofilter.*
220 %{_libdir}/evolution/%{major_version}/modules/libevolution-module-spamassassin.*
221 %dir %{_libdir}/evolution/%{major_version}/plugins
222 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-addressbook-file.*
223 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-audio-inline.*
224 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-b*
225 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-c*
226 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-d*
227 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-email-custom-header.so
228 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-evolution-attachment-reminder.so
229 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-evolution-bbdb.*
230 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-evolution-caldav.so
231 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-evolution-google.so
232 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-evolution-webdav*
233 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-external-editor.so
234 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-face*
235 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-imap*
236 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-itip-formatter.*
237 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-m*
238 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-p*
239 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-s*
240 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-t*
241 %{_libdir}/evolution/%{major_version}/plugins/liborg-gnome-v*
242 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-a*
243 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-b*
244 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-c*
245 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-d*
246 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-email-custom-header.eplug
247 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-evolution-attachment-reminder.eplug
248 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-evolution-bbdb.eplug
249 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-evolution-caldav.eplug
250 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-evolution-google.eplug
251 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-evolution-webdav.eplug
252 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-external-editor.*
253 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-face*
254 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-itip-formatter.eplug
255 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-imap*
256 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-mail-notification*
257 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-mail-to-task.eplug
258 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-mailing-list-actions.eplug
259 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-mark-all-read.eplug
260 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-publish-calendar.eplug
261 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-prefer-plain.eplug
262 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-pst-import.eplug
263 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-save-calendar.eplug
264 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-templates.eplug
265 %{_libdir}/evolution/%{major_version}/plugins/org-gnome-vcard-inline.eplug
266 %{_datadir}/applications/*
267 %{_datadir}/evolution
268 %_datadir/icons/hicolor/*/apps/*
269 %{_iconsdir}/*.png
270 %{_liconsdir}/*.png
271 %{_miconsdir}/*.png
272
273 %files -n %{name}-devel
274 %{_includedir}/*
275 %{_libdir}/pkgconfig/*
276 %{_libdir}/evolution/%{major_version}/*.so
277 %_datadir/gtk-doc/html/*
278
279 %if %with_mono
280 %files mono
281 %{_libdir}/evolution/%{major_version}/modules/*mono*
282 %endif
283

  ViewVC Help
Powered by ViewVC 1.1.28