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