]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # todo: | |
3 | # - system libical | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without kerberos5 # build without kerberos5 support | |
7 | %bcond_without ldap # build without ldap support | |
8 | # | |
9 | %define basever 1.10 | |
10 | %define apiver 1.2 | |
11 | Summary: Evolution data server | |
12 | Summary(pl.UTF-8): Serwer danych Evolution | |
13 | Name: evolution-data-server | |
14 | Version: 1.10.3.1 | |
15 | Release: 1 | |
16 | License: GPL | |
17 | Group: Libraries | |
18 | Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.10/%{name}-%{version}.tar.bz2 | |
19 | # Source0-md5: c6f804ac25f7c75dc9502b739bf99301 | |
20 | Patch0: %{name}-as_needed-fix.patch | |
21 | URL: http://www.ximian.com/products/ximian_evolution/ | |
22 | BuildRequires: ORBit2-devel >= 1:2.14.7 | |
23 | BuildRequires: autoconf >= 2.52 | |
24 | BuildRequires: automake | |
25 | BuildRequires: bison | |
26 | BuildRequires: db-devel | |
27 | BuildRequires: gnome-common >= 2.18.0 | |
28 | BuildRequires: gnome-keyring-devel >= 0.8.1 | |
29 | BuildRequires: gtk-doc >= 1.8 | |
30 | %{?with_kerberos5:BuildRequires: krb5-devel} | |
31 | BuildRequires: intltool >= 0.35.5 | |
32 | BuildRequires: libglade2-devel >= 1:2.6.0 | |
33 | BuildRequires: libgnomeui-devel >= 2.18.1 | |
34 | BuildRequires: libsoup-devel >= 2.2.100 | |
35 | BuildRequires: libstdc++-devel | |
36 | BuildRequires: libtool | |
37 | BuildRequires: nspr-devel | |
38 | BuildRequires: nss-devel | |
39 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} | |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: rpmbuild(macros) >= 1.304 | |
42 | Requires(post,postun): scrollkeeper | |
43 | Requires: %{name}-libs = %{version}-%{release} | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %define schemadir /usr/share/openldap/schema | |
47 | ||
48 | %description | |
49 | The Evolution data server for the calendar and addressbook. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
53 | ||
54 | %package -n openldap-schema-evolutionperson | |
55 | Summary: evolutionperson LDAP schema | |
56 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
57 | Group: Networking/Daemons | |
58 | Requires(post,postun): sed >= 4.0 | |
59 | Requires: openldap-servers | |
60 | ||
61 | %description -n openldap-schema-evolutionperson | |
62 | This package contains evolutionperson.schema for openldap server. | |
63 | ||
64 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 | |
65 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. | |
66 | ||
67 | %package libs | |
68 | Summary: Evolution Data Server library | |
69 | Summary(pl.UTF-8): Biblioteka Evolution Data Server | |
70 | Group: Libraries | |
71 | Requires: libgnomeui >= 2.18.1 | |
72 | Requires: libsoup >= 2.2.100 | |
73 | ||
74 | %description libs | |
75 | This package contains Evolution Data Server library. | |
76 | ||
77 | %description libs -l pl.UTF-8 | |
78 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
79 | ||
80 | %package devel | |
81 | Summary: Evolution data server development files | |
82 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-libs = %{version}-%{release} | |
85 | %{?with_kerberos5:Requires: krb5-devel} | |
86 | # for all but libegroupwise | |
87 | Requires: GConf2-devel >= 2.18.0.1 | |
88 | Requires: ORBit2-devel >= 1:2.14.7 | |
89 | Requires: glib2-devel >= 1:2.12.11 | |
90 | Requires: libgnomeui-devel >= 2.18.1 | |
91 | Requires: libxml2-devel >= 1:2.6.27 | |
92 | # for libegroupwise | |
93 | Requires: libsoup-devel >= 2.2.100 | |
94 | ||
95 | %description devel | |
96 | This package contains the files necessary to develop applications | |
97 | using Evolution's data server libraries. | |
98 | ||
99 | %description devel -l pl.UTF-8 | |
100 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
101 | korzystających z bibliotek serwera danych Evolution. | |
102 | ||
103 | %package static | |
104 | Summary: Evolution data server static libraries | |
105 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
106 | Group: Development/Libraries | |
107 | Requires: %{name}-devel = %{version}-%{release} | |
108 | ||
109 | %description static | |
110 | Evolution data server static libraries. | |
111 | ||
112 | %description static -l pl.UTF-8 | |
113 | Statyczne biblioteki serwera danych Evolution. | |
114 | ||
115 | %package apidocs | |
116 | Summary: e-d-s API documentation | |
117 | Summary(pl.UTF-8): Dokumentacja API e-d-s | |
118 | Group: Documentation | |
119 | Requires: gtk-doc-common | |
120 | ||
121 | %description apidocs | |
122 | e-d-s API documentation. | |
123 | ||
124 | %description apidocs -l pl.UTF-8 | |
125 | Dokumentacja API e-d-s. | |
126 | ||
127 | %prep | |
128 | %setup -q | |
129 | %patch0 -p1 | |
130 | ||
131 | %build | |
132 | %{__glib_gettextize} | |
133 | %{__intltoolize} | |
134 | %{__libtoolize} | |
135 | %{__aclocal} | |
136 | %{__autoheader} | |
137 | %{__autoconf} | |
138 | %{__automake} | |
139 | ||
140 | cd calendar/libical | |
141 | %{__libtoolize} | |
142 | %{__aclocal} | |
143 | %{__autoheader} | |
144 | %{__autoconf} | |
145 | %{__automake} | |
146 | cd ../.. | |
147 | %configure \ | |
148 | %{?with_kerberos5:--with-krb5=%{_prefix}} \ | |
149 | %{!?with_kerberos5:--with-krb5=no} \ | |
150 | %{?with_ldap:--with-openldap=yes} \ | |
151 | %{!?with_ldap:--with-openldap=no} \ | |
152 | --enable-gnome-keyring=yes \ | |
153 | --enable-gtk-doc \ | |
154 | --enable-static \ | |
155 | --with-nspr-includes=%{_includedir}/nspr \ | |
156 | --with-nspr-libs=%{_libdir} \ | |
157 | --with-nss-includes=%{_includedir}/nss \ | |
158 | --with-nss-libs=%{_libdir} \ | |
159 | --with-libdb=%{_libdir} | |
160 | ||
161 | %{__make} \ | |
162 | HTML_DIR=%{_gtkdocdir} \ | |
163 | GTKHTML_DATADIR=%{_datadir}/idl | |
164 | ||
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
168 | %{__make} install \ | |
169 | DESTDIR=$RPM_BUILD_ROOT \ | |
170 | GTKHTML_DATADIR=%{_datadir}/idl \ | |
171 | HTML_DIR=%{_gtkdocdir} \ | |
172 | pkgconfigdir=%{_pkgconfigdir} | |
173 | ||
174 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} | |
175 | ||
176 | install -d $RPM_BUILD_ROOT%{schemadir} | |
177 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
178 | ||
179 | %find_lang %{name} --all-name | |
180 | ||
181 | %clean | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
184 | %post | |
185 | %scrollkeeper_update_post | |
186 | ||
187 | %postun | |
188 | %scrollkeeper_update_postun | |
189 | ||
190 | %post libs -p /sbin/ldconfig | |
191 | %postun libs -p /sbin/ldconfig | |
192 | ||
193 | %post -n openldap-schema-evolutionperson | |
194 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
195 | %service -q ldap restart | |
196 | ||
197 | %postun -n openldap-schema-evolutionperson | |
198 | if [ "$1" = "0" ]; then | |
199 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
200 | %service -q ldap restart | |
201 | fi | |
202 | ||
203 | %files -f %{name}.lang | |
204 | %defattr(644,root,root,755) | |
205 | %doc AUTHORS ChangeLog NEWS* README | |
206 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
207 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
208 | %dir %{_libdir}/%{name}-%{apiver} | |
209 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
210 | %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever} | |
211 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so | |
212 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
213 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
214 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
215 | %{_libdir}/bonobo/servers/* | |
216 | ||
217 | %if %{with ldap} | |
218 | %{_datadir}/%{name}-%{basever}/*.schema | |
219 | %endif | |
220 | ||
221 | %dir %{_datadir}/%{name}-%{basever} | |
222 | %{_datadir}/%{name}-%{basever}/glade | |
223 | %{_datadir}/%{name}-%{basever}/weather | |
224 | %{_datadir}/%{name}-%{basever}/zoneinfo | |
225 | %{_pixmapsdir}/%{name} | |
226 | ||
227 | %files -n openldap-schema-evolutionperson | |
228 | %defattr(644,root,root,755) | |
229 | %{schemadir}/*.schema | |
230 | ||
231 | %files libs | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
234 | %{_datadir}/idl/%{name}-%{apiver} | |
235 | ||
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/*.so | |
239 | %{_libdir}/*.la | |
240 | %{_includedir}/* | |
241 | %{_pkgconfigdir}/* | |
242 | ||
243 | %files static | |
244 | %defattr(644,root,root,755) | |
245 | %{_libdir}/*.a | |
246 | ||
247 | %files apidocs | |
248 | %defattr(644,root,root,755) | |
249 | %{_gtkdocdir}/* |