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