]>
Commit | Line | Data |
---|---|---|
8a5a422a | 1 | # |
2 | # todo: | |
b7c830de | 3 | # - system libical |
b7c830de | 4 | # |
69577d81 | 5 | # Conditional build: |
51160b41 | 6 | %bcond_without kerberos5 # build without kerberos5 support |
7 | %bcond_without ldap # build without ldap support | |
69577d81 | 8 | # |
c22a020a | 9 | %define basever 1.12 |
e2ebc190 | 10 | %define apiver 1.2 |
11b4e6b5 | 11 | Summary: Evolution data server |
7628f827 | 12 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 13 | Name: evolution-data-server |
df83f2ab | 14 | Version: 1.12.3 |
483474c5 | 15 | Release: 1 |
11b4e6b5 | 16 | License: GPL |
17 | Group: Libraries | |
c22a020a | 18 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/1.12/%{name}-%{version}.tar.bz2 |
df83f2ab | 19 | # Source0-md5: 9a04e379c34ad538764866dfd4eb2931 |
a33049a0 | 20 | Patch0: %{name}-ntlm-ldap.patch |
c22a020a PZ |
21 | URL: http://www.gnome.org/projects/evolution/ |
22 | BuildRequires: ORBit2-devel >= 1:2.14.8 | |
353eadf1 JB |
23 | BuildRequires: autoconf >= 2.52 |
24 | BuildRequires: automake | |
e2ebc190 | 25 | BuildRequires: bison |
8f24fc3c | 26 | BuildRequires: cyrus-sasl-devel |
353eadf1 | 27 | BuildRequires: db-devel |
ea3ad516 MB |
28 | BuildRequires: gnome-common >= 2.20.0 |
29 | BuildRequires: gnome-keyring-devel >= 2.20.0 | |
042cdced | 30 | BuildRequires: gtk-doc >= 1.8 |
66e2b260 | 31 | %{?with_kerberos5:BuildRequires: krb5-devel} |
c22a020a PZ |
32 | BuildRequires: intltool >= 0.36.1 |
33 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
ea3ad516 | 34 | BuildRequires: libgnomeui-devel >= 2.20.0 |
042cdced | 35 | BuildRequires: libsoup-devel >= 2.2.100 |
e2c48f95 | 36 | BuildRequires: libstdc++-devel |
353eadf1 | 37 | BuildRequires: libtool |
94fa296c | 38 | BuildRequires: nspr-devel |
4e7b9656 | 39 | BuildRequires: nss-devel |
a33049a0 | 40 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} |
8f24fc3c | 41 | BuildRequires: openssl-devel |
353eadf1 | 42 | BuildRequires: pkgconfig |
7937d160 | 43 | BuildRequires: rpmbuild(macros) >= 1.304 |
483474c5 | 44 | BuildRequires: sed >= 4.0 |
1434f1e6 | 45 | Requires(post,postun): scrollkeeper |
73b9c62c | 46 | Requires: %{name}-libs = %{version}-%{release} |
b11884f3 | 47 | # sr@Latn vs. sr@latin |
48 | Conflicts: glibc-misc < 6:2.7 | |
353eadf1 | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 50 | |
9b5d553a ER |
51 | %define schemadir /usr/share/openldap/schema |
52 | ||
11b4e6b5 | 53 | %description |
353eadf1 JB |
54 | The Evolution data server for the calendar and addressbook. |
55 | ||
5f6b5ac6 JR |
56 | %description -l pl.UTF-8 |
57 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 58 | |
9b5d553a ER |
59 | %package -n openldap-schema-evolutionperson |
60 | Summary: evolutionperson LDAP schema | |
7628f827 | 61 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
62 | Group: Networking/Daemons |
63 | Requires(post,postun): sed >= 4.0 | |
64 | Requires: openldap-servers | |
65 | ||
66 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
67 | This package contains evolutionperson.schema for openldap server. |
68 | ||
5f6b5ac6 | 69 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 70 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 71 | |
0931c5d7 JB |
72 | %package libs |
73 | Summary: Evolution Data Server library | |
7628f827 | 74 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
0931c5d7 | 75 | Group: Libraries |
ea3ad516 | 76 | Requires: libgnomeui >= 2.20.0 |
042cdced | 77 | Requires: libsoup >= 2.2.100 |
0931c5d7 JB |
78 | |
79 | %description libs | |
80 | This package contains Evolution Data Server library. | |
81 | ||
5f6b5ac6 JR |
82 | %description libs -l pl.UTF-8 |
83 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 84 | |
11b4e6b5 | 85 | %package devel |
86 | Summary: Evolution data server development files | |
7628f827 | 87 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
11b4e6b5 | 88 | Group: Development/Libraries |
0931c5d7 | 89 | Requires: %{name}-libs = %{version}-%{release} |
66e2b260 | 90 | %{?with_kerberos5:Requires: krb5-devel} |
6de52a0d | 91 | # for all but libegroupwise |
ea3ad516 | 92 | Requires: GConf2-devel >= 2.20.0 |
c22a020a | 93 | Requires: ORBit2-devel >= 1:2.14.8 |
ea3ad516 MB |
94 | Requires: glib2-devel >= 1:2.14.1 |
95 | Requires: libgnomeui-devel >= 2.20.0 | |
c22a020a | 96 | Requires: libxml2-devel >= 1:2.6.29 |
6de52a0d | 97 | # for libegroupwise |
042cdced | 98 | Requires: libsoup-devel >= 2.2.100 |
11b4e6b5 | 99 | |
100 | %description devel | |
46c4d742 | 101 | This package contains the files necessary to develop applications |
102 | using Evolution's data server libraries. | |
11b4e6b5 | 103 | |
5f6b5ac6 | 104 | %description devel -l pl.UTF-8 |
353eadf1 | 105 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 106 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 107 | |
8a5a422a | 108 | %package static |
109 | Summary: Evolution data server static libraries | |
7628f827 | 110 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
8a5a422a | 111 | Group: Development/Libraries |
f1e06abe | 112 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 113 | |
114 | %description static | |
115 | Evolution data server static libraries. | |
116 | ||
5f6b5ac6 | 117 | %description static -l pl.UTF-8 |
353eadf1 JB |
118 | Statyczne biblioteki serwera danych Evolution. |
119 | ||
ac5ccf41 | 120 | %package apidocs |
121 | Summary: e-d-s API documentation | |
7628f827 | 122 | Summary(pl.UTF-8): Dokumentacja API e-d-s |
ac5ccf41 | 123 | Group: Documentation |
124 | Requires: gtk-doc-common | |
125 | ||
126 | %description apidocs | |
127 | e-d-s API documentation. | |
128 | ||
5f6b5ac6 | 129 | %description apidocs -l pl.UTF-8 |
ac5ccf41 | 130 | Dokumentacja API e-d-s. |
131 | ||
11b4e6b5 | 132 | %prep |
4ff8ccbf | 133 | %setup -q |
a33049a0 | 134 | %patch0 -p1 |
11b4e6b5 | 135 | |
483474c5 MB |
136 | sed -i -e s#sr\@Latn#sr\@latin# po/LINGUAS |
137 | mv po/sr\@{Latn,latin}.po | |
138 | ||
11b4e6b5 | 139 | %build |
df83f2ab | 140 | %{__gtkdocize} |
8f8bf49b | 141 | %{__glib_gettextize} |
142 | %{__intltoolize} | |
46c4d742 | 143 | %{__libtoolize} |
9179bf1f | 144 | %{__aclocal} |
46c4d742 | 145 | %{__autoheader} |
146 | %{__autoconf} | |
147 | %{__automake} | |
0f23eebb | 148 | |
149 | cd calendar/libical | |
150 | %{__libtoolize} | |
151 | %{__aclocal} | |
152 | %{__autoheader} | |
153 | %{__autoconf} | |
154 | %{__automake} | |
155 | cd ../.. | |
a33049a0 JR |
156 | |
157 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
158 | # which depend on Cyrus SASL and OpenSSL. | |
159 | if pkg-config openssl ; then | |
160 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
161 | else | |
162 | LIBS="-lsasl2 -lssl -lcrypto" | |
163 | fi | |
164 | export LIBS | |
165 | ||
46c4d742 | 166 | %configure \ |
51160b41 | 167 | %{?with_kerberos5:--with-krb5=%{_prefix}} \ |
168 | %{!?with_kerberos5:--with-krb5=no} \ | |
a33049a0 JR |
169 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
170 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 171 | %{!?with_ldap:--with-openldap=no} \ |
aeafa52e | 172 | --enable-gnome-keyring=yes \ |
8a5a422a | 173 | --enable-gtk-doc \ |
174 | --enable-static \ | |
94fa296c | 175 | --with-nspr-includes=%{_includedir}/nspr \ |
176 | --with-nspr-libs=%{_libdir} \ | |
177 | --with-nss-includes=%{_includedir}/nss \ | |
aeafa52e | 178 | --with-nss-libs=%{_libdir} \ |
179 | --with-libdb=%{_libdir} | |
52730793 | 180 | |
46c4d742 | 181 | %{__make} \ |
b7c830de | 182 | HTML_DIR=%{_gtkdocdir} \ |
4ff8ccbf | 183 | GTKHTML_DATADIR=%{_datadir}/idl |
11b4e6b5 | 184 | |
185 | %install | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | %{__make} install \ | |
46c4d742 | 189 | DESTDIR=$RPM_BUILD_ROOT \ |
190 | GTKHTML_DATADIR=%{_datadir}/idl \ | |
b7c830de | 191 | HTML_DIR=%{_gtkdocdir} \ |
46c4d742 | 192 | pkgconfigdir=%{_pkgconfigdir} |
193 | ||
e2ebc190 | 194 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} |
94fa296c | 195 | |
9b5d553a ER |
196 | install -d $RPM_BUILD_ROOT%{schemadir} |
197 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
198 | ||
46c4d742 | 199 | %find_lang %{name} --all-name |
11b4e6b5 | 200 | |
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
46c4d742 | 204 | %post |
8f8bf49b | 205 | %scrollkeeper_update_post |
11b4e6b5 | 206 | |
46c4d742 | 207 | %postun |
8f8bf49b | 208 | %scrollkeeper_update_postun |
11b4e6b5 | 209 | |
73b9c62c | 210 | %post libs -p /sbin/ldconfig |
211 | %postun libs -p /sbin/ldconfig | |
212 | ||
9b5d553a | 213 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
214 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
215 | %service -q ldap restart | |
9b5d553a ER |
216 | |
217 | %postun -n openldap-schema-evolutionperson | |
218 | if [ "$1" = "0" ]; then | |
7937d160 ER |
219 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
220 | %service -q ldap restart | |
9b5d553a ER |
221 | fi |
222 | ||
46c4d742 | 223 | %files -f %{name}.lang |
11b4e6b5 | 224 | %defattr(644,root,root,755) |
46c4d742 | 225 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 226 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
227 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
e2ebc190 | 228 | %dir %{_libdir}/%{name}-%{apiver} |
229 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
230 | %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever} | |
231 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so | |
232 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
233 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
234 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
46c4d742 | 235 | %{_libdir}/bonobo/servers/* |
e2ebc190 | 236 | |
be45f956 | 237 | %if %{with ldap} |
e3a9d40d | 238 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 239 | %endif |
240 | ||
e2ebc190 | 241 | %dir %{_datadir}/%{name}-%{basever} |
242 | %{_datadir}/%{name}-%{basever}/glade | |
243 | %{_datadir}/%{name}-%{basever}/weather | |
042cdced | 244 | %{_pixmapsdir}/%{name} |
46c4d742 | 245 | |
9b5d553a ER |
246 | %files -n openldap-schema-evolutionperson |
247 | %defattr(644,root,root,755) | |
248 | %{schemadir}/*.schema | |
249 | ||
0931c5d7 JB |
250 | %files libs |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
15b94064 | 253 | %{_datadir}/idl/%{name}-%{apiver} |
0931c5d7 | 254 | |
46c4d742 | 255 | %files devel |
11b4e6b5 | 256 | %defattr(644,root,root,755) |
46c4d742 | 257 | %attr(755,root,root) %{_libdir}/*.so |
258 | %{_libdir}/*.la | |
259 | %{_includedir}/* | |
260 | %{_pkgconfigdir}/* | |
8a5a422a | 261 | |
262 | %files static | |
263 | %defattr(644,root,root,755) | |
264 | %{_libdir}/*.a | |
ac5ccf41 | 265 | |
266 | %files apidocs | |
267 | %defattr(644,root,root,755) | |
268 | %{_gtkdocdir}/* |