]>
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 |
483474c5 MB |
14 | Version: 1.12.2 |
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 |
483474c5 | 19 | # Source0-md5: 591170d71d7fe998236455c1a23860ca |
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 |
8f8bf49b | 140 | %{__glib_gettextize} |
141 | %{__intltoolize} | |
46c4d742 | 142 | %{__libtoolize} |
9179bf1f | 143 | %{__aclocal} |
46c4d742 | 144 | %{__autoheader} |
145 | %{__autoconf} | |
146 | %{__automake} | |
0f23eebb | 147 | |
148 | cd calendar/libical | |
149 | %{__libtoolize} | |
150 | %{__aclocal} | |
151 | %{__autoheader} | |
152 | %{__autoconf} | |
153 | %{__automake} | |
154 | cd ../.. | |
a33049a0 JR |
155 | |
156 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
157 | # which depend on Cyrus SASL and OpenSSL. | |
158 | if pkg-config openssl ; then | |
159 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
160 | else | |
161 | LIBS="-lsasl2 -lssl -lcrypto" | |
162 | fi | |
163 | export LIBS | |
164 | ||
46c4d742 | 165 | %configure \ |
51160b41 | 166 | %{?with_kerberos5:--with-krb5=%{_prefix}} \ |
167 | %{!?with_kerberos5:--with-krb5=no} \ | |
a33049a0 JR |
168 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
169 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 170 | %{!?with_ldap:--with-openldap=no} \ |
aeafa52e | 171 | --enable-gnome-keyring=yes \ |
8a5a422a | 172 | --enable-gtk-doc \ |
173 | --enable-static \ | |
94fa296c | 174 | --with-nspr-includes=%{_includedir}/nspr \ |
175 | --with-nspr-libs=%{_libdir} \ | |
176 | --with-nss-includes=%{_includedir}/nss \ | |
aeafa52e | 177 | --with-nss-libs=%{_libdir} \ |
178 | --with-libdb=%{_libdir} | |
52730793 | 179 | |
46c4d742 | 180 | %{__make} \ |
b7c830de | 181 | HTML_DIR=%{_gtkdocdir} \ |
4ff8ccbf | 182 | GTKHTML_DATADIR=%{_datadir}/idl |
11b4e6b5 | 183 | |
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %{__make} install \ | |
46c4d742 | 188 | DESTDIR=$RPM_BUILD_ROOT \ |
189 | GTKHTML_DATADIR=%{_datadir}/idl \ | |
b7c830de | 190 | HTML_DIR=%{_gtkdocdir} \ |
46c4d742 | 191 | pkgconfigdir=%{_pkgconfigdir} |
192 | ||
e2ebc190 | 193 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} |
94fa296c | 194 | |
9b5d553a ER |
195 | install -d $RPM_BUILD_ROOT%{schemadir} |
196 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
197 | ||
46c4d742 | 198 | %find_lang %{name} --all-name |
11b4e6b5 | 199 | |
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
46c4d742 | 203 | %post |
8f8bf49b | 204 | %scrollkeeper_update_post |
11b4e6b5 | 205 | |
46c4d742 | 206 | %postun |
8f8bf49b | 207 | %scrollkeeper_update_postun |
11b4e6b5 | 208 | |
73b9c62c | 209 | %post libs -p /sbin/ldconfig |
210 | %postun libs -p /sbin/ldconfig | |
211 | ||
9b5d553a | 212 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
213 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
214 | %service -q ldap restart | |
9b5d553a ER |
215 | |
216 | %postun -n openldap-schema-evolutionperson | |
217 | if [ "$1" = "0" ]; then | |
7937d160 ER |
218 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
219 | %service -q ldap restart | |
9b5d553a ER |
220 | fi |
221 | ||
46c4d742 | 222 | %files -f %{name}.lang |
11b4e6b5 | 223 | %defattr(644,root,root,755) |
46c4d742 | 224 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 225 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
226 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
e2ebc190 | 227 | %dir %{_libdir}/%{name}-%{apiver} |
228 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
229 | %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever} | |
230 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so | |
231 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
232 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
233 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
46c4d742 | 234 | %{_libdir}/bonobo/servers/* |
e2ebc190 | 235 | |
be45f956 | 236 | %if %{with ldap} |
e3a9d40d | 237 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 238 | %endif |
239 | ||
e2ebc190 | 240 | %dir %{_datadir}/%{name}-%{basever} |
241 | %{_datadir}/%{name}-%{basever}/glade | |
242 | %{_datadir}/%{name}-%{basever}/weather | |
042cdced | 243 | %{_pixmapsdir}/%{name} |
46c4d742 | 244 | |
9b5d553a ER |
245 | %files -n openldap-schema-evolutionperson |
246 | %defattr(644,root,root,755) | |
247 | %{schemadir}/*.schema | |
248 | ||
0931c5d7 JB |
249 | %files libs |
250 | %defattr(644,root,root,755) | |
251 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
15b94064 | 252 | %{_datadir}/idl/%{name}-%{apiver} |
0931c5d7 | 253 | |
46c4d742 | 254 | %files devel |
11b4e6b5 | 255 | %defattr(644,root,root,755) |
46c4d742 | 256 | %attr(755,root,root) %{_libdir}/*.so |
257 | %{_libdir}/*.la | |
258 | %{_includedir}/* | |
259 | %{_pkgconfigdir}/* | |
8a5a422a | 260 | |
261 | %files static | |
262 | %defattr(644,root,root,755) | |
263 | %{_libdir}/*.a | |
ac5ccf41 | 264 | |
265 | %files apidocs | |
266 | %defattr(644,root,root,755) | |
267 | %{_gtkdocdir}/* |