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