]>
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 | # |
042cdced | 9 | %define basever 1.10 |
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 |
294610a0 | 14 | Version: 1.10.3.1 |
95ea6304 | 15 | Release: 1 |
11b4e6b5 | 16 | License: GPL |
17 | Group: Libraries | |
042cdced | 18 | Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.10/%{name}-%{version}.tar.bz2 |
294610a0 | 19 | # Source0-md5: c6f804ac25f7c75dc9502b739bf99301 |
5a6f7d92 | 20 | Patch0: %{name}-as_needed-fix.patch |
46c4d742 | 21 | URL: http://www.ximian.com/products/ximian_evolution/ |
042cdced | 22 | BuildRequires: ORBit2-devel >= 1:2.14.7 |
353eadf1 JB |
23 | BuildRequires: autoconf >= 2.52 |
24 | BuildRequires: automake | |
e2ebc190 | 25 | BuildRequires: bison |
353eadf1 | 26 | BuildRequires: db-devel |
95ea6304 MB |
27 | BuildRequires: gnome-common >= 2.18.0 |
28 | BuildRequires: gnome-keyring-devel >= 0.8.1 | |
042cdced | 29 | BuildRequires: gtk-doc >= 1.8 |
66e2b260 | 30 | %{?with_kerberos5:BuildRequires: krb5-devel} |
042cdced | 31 | BuildRequires: intltool >= 0.35.5 |
82bd9f07 | 32 | BuildRequires: libglade2-devel >= 1:2.6.0 |
95ea6304 | 33 | BuildRequires: libgnomeui-devel >= 2.18.1 |
042cdced | 34 | BuildRequires: libsoup-devel >= 2.2.100 |
e2c48f95 | 35 | BuildRequires: libstdc++-devel |
353eadf1 | 36 | BuildRequires: libtool |
94fa296c | 37 | BuildRequires: nspr-devel |
4e7b9656 | 38 | BuildRequires: nss-devel |
db336a34 | 39 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
353eadf1 | 40 | BuildRequires: pkgconfig |
7937d160 | 41 | BuildRequires: rpmbuild(macros) >= 1.304 |
1434f1e6 | 42 | Requires(post,postun): scrollkeeper |
73b9c62c | 43 | Requires: %{name}-libs = %{version}-%{release} |
353eadf1 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 45 | |
9b5d553a ER |
46 | %define schemadir /usr/share/openldap/schema |
47 | ||
11b4e6b5 | 48 | %description |
353eadf1 JB |
49 | The Evolution data server for the calendar and addressbook. |
50 | ||
5f6b5ac6 JR |
51 | %description -l pl.UTF-8 |
52 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 53 | |
9b5d553a ER |
54 | %package -n openldap-schema-evolutionperson |
55 | Summary: evolutionperson LDAP schema | |
7628f827 | 56 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
57 | Group: Networking/Daemons |
58 | Requires(post,postun): sed >= 4.0 | |
59 | Requires: openldap-servers | |
60 | ||
61 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
62 | This package contains evolutionperson.schema for openldap server. |
63 | ||
5f6b5ac6 | 64 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 65 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 66 | |
0931c5d7 JB |
67 | %package libs |
68 | Summary: Evolution Data Server library | |
7628f827 | 69 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
0931c5d7 | 70 | Group: Libraries |
95ea6304 | 71 | Requires: libgnomeui >= 2.18.1 |
042cdced | 72 | Requires: libsoup >= 2.2.100 |
0931c5d7 JB |
73 | |
74 | %description libs | |
75 | This package contains Evolution Data Server library. | |
76 | ||
5f6b5ac6 JR |
77 | %description libs -l pl.UTF-8 |
78 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 79 | |
11b4e6b5 | 80 | %package devel |
81 | Summary: Evolution data server development files | |
7628f827 | 82 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
11b4e6b5 | 83 | Group: Development/Libraries |
0931c5d7 | 84 | Requires: %{name}-libs = %{version}-%{release} |
66e2b260 | 85 | %{?with_kerberos5:Requires: krb5-devel} |
6de52a0d | 86 | # for all but libegroupwise |
042cdced MB |
87 | Requires: GConf2-devel >= 2.18.0.1 |
88 | Requires: ORBit2-devel >= 1:2.14.7 | |
89 | Requires: glib2-devel >= 1:2.12.11 | |
95ea6304 | 90 | Requires: libgnomeui-devel >= 2.18.1 |
011deb5a | 91 | Requires: libxml2-devel >= 1:2.6.27 |
6de52a0d | 92 | # for libegroupwise |
042cdced | 93 | Requires: libsoup-devel >= 2.2.100 |
11b4e6b5 | 94 | |
95 | %description devel | |
46c4d742 | 96 | This package contains the files necessary to develop applications |
97 | using Evolution's data server libraries. | |
11b4e6b5 | 98 | |
5f6b5ac6 | 99 | %description devel -l pl.UTF-8 |
353eadf1 | 100 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 101 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 102 | |
8a5a422a | 103 | %package static |
104 | Summary: Evolution data server static libraries | |
7628f827 | 105 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
8a5a422a | 106 | Group: Development/Libraries |
f1e06abe | 107 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 108 | |
109 | %description static | |
110 | Evolution data server static libraries. | |
111 | ||
5f6b5ac6 | 112 | %description static -l pl.UTF-8 |
353eadf1 JB |
113 | Statyczne biblioteki serwera danych Evolution. |
114 | ||
ac5ccf41 | 115 | %package apidocs |
116 | Summary: e-d-s API documentation | |
7628f827 | 117 | Summary(pl.UTF-8): Dokumentacja API e-d-s |
ac5ccf41 | 118 | Group: Documentation |
119 | Requires: gtk-doc-common | |
120 | ||
121 | %description apidocs | |
122 | e-d-s API documentation. | |
123 | ||
5f6b5ac6 | 124 | %description apidocs -l pl.UTF-8 |
ac5ccf41 | 125 | Dokumentacja API e-d-s. |
126 | ||
11b4e6b5 | 127 | %prep |
4ff8ccbf | 128 | %setup -q |
8a5a422a | 129 | %patch0 -p1 |
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 | ||
46c4d742 | 179 | %find_lang %{name} --all-name |
11b4e6b5 | 180 | |
181 | %clean | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
46c4d742 | 184 | %post |
8f8bf49b | 185 | %scrollkeeper_update_post |
11b4e6b5 | 186 | |
46c4d742 | 187 | %postun |
8f8bf49b | 188 | %scrollkeeper_update_postun |
11b4e6b5 | 189 | |
73b9c62c | 190 | %post libs -p /sbin/ldconfig |
191 | %postun libs -p /sbin/ldconfig | |
192 | ||
9b5d553a | 193 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
194 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
195 | %service -q ldap restart | |
9b5d553a ER |
196 | |
197 | %postun -n openldap-schema-evolutionperson | |
198 | if [ "$1" = "0" ]; then | |
7937d160 ER |
199 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
200 | %service -q ldap restart | |
9b5d553a ER |
201 | fi |
202 | ||
46c4d742 | 203 | %files -f %{name}.lang |
11b4e6b5 | 204 | %defattr(644,root,root,755) |
46c4d742 | 205 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 206 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
207 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
e2ebc190 | 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 | |
46c4d742 | 215 | %{_libdir}/bonobo/servers/* |
e2ebc190 | 216 | |
be45f956 | 217 | %if %{with ldap} |
e3a9d40d | 218 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 219 | %endif |
220 | ||
e2ebc190 | 221 | %dir %{_datadir}/%{name}-%{basever} |
222 | %{_datadir}/%{name}-%{basever}/glade | |
223 | %{_datadir}/%{name}-%{basever}/weather | |
224 | %{_datadir}/%{name}-%{basever}/zoneinfo | |
042cdced | 225 | %{_pixmapsdir}/%{name} |
46c4d742 | 226 | |
9b5d553a ER |
227 | %files -n openldap-schema-evolutionperson |
228 | %defattr(644,root,root,755) | |
229 | %{schemadir}/*.schema | |
230 | ||
0931c5d7 JB |
231 | %files libs |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
15b94064 | 234 | %{_datadir}/idl/%{name}-%{apiver} |
0931c5d7 | 235 | |
46c4d742 | 236 | %files devel |
11b4e6b5 | 237 | %defattr(644,root,root,755) |
46c4d742 | 238 | %attr(755,root,root) %{_libdir}/*.so |
239 | %{_libdir}/*.la | |
240 | %{_includedir}/* | |
241 | %{_pkgconfigdir}/* | |
8a5a422a | 242 | |
243 | %files static | |
244 | %defattr(644,root,root,755) | |
245 | %{_libdir}/*.a | |
ac5ccf41 | 246 | |
247 | %files apidocs | |
248 | %defattr(644,root,root,755) | |
249 | %{_gtkdocdir}/* |