]>
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 |
c22a020a PZ |
14 | Version: 1.12.0 |
15 | Release: 1 | |
11b4e6b5 | 16 | License: GPL |
17 | Group: Libraries | |
c22a020a PZ |
18 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/1.12/%{name}-%{version}.tar.bz2 |
19 | # Source0-md5: 787cfe9d652f46395a9adce056bdb286 | |
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 |
95ea6304 | 26 | BuildRequires: gnome-common >= 2.18.0 |
c22a020a | 27 | BuildRequires: gnome-keyring-devel >= 2.19.91 |
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 | |
32 | BuildRequires: libgnomeui-devel >= 2.19.1 | |
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 |
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 |
c22a020a | 70 | Requires: libgnomeui >= 2.19.1 |
042cdced | 71 | Requires: libsoup >= 2.2.100 |
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} |
66e2b260 | 84 | %{?with_kerberos5:Requires: krb5-devel} |
6de52a0d | 85 | # for all but libegroupwise |
c22a020a PZ |
86 | Requires: GConf2-devel >= 2.19.1 |
87 | Requires: ORBit2-devel >= 1:2.14.8 | |
88 | Requires: glib2-devel >= 1:2.14.0 | |
89 | Requires: libgnomeui-devel >= 2.19.1 | |
90 | Requires: libxml2-devel >= 1:2.6.29 | |
6de52a0d | 91 | # for libegroupwise |
042cdced | 92 | Requires: libsoup-devel >= 2.2.100 |
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 |
11b4e6b5 | 128 | |
129 | %build | |
8f8bf49b | 130 | %{__glib_gettextize} |
131 | %{__intltoolize} | |
46c4d742 | 132 | %{__libtoolize} |
9179bf1f | 133 | %{__aclocal} |
46c4d742 | 134 | %{__autoheader} |
135 | %{__autoconf} | |
136 | %{__automake} | |
0f23eebb | 137 | |
138 | cd calendar/libical | |
139 | %{__libtoolize} | |
140 | %{__aclocal} | |
141 | %{__autoheader} | |
142 | %{__autoconf} | |
143 | %{__automake} | |
144 | cd ../.. | |
46c4d742 | 145 | %configure \ |
51160b41 | 146 | %{?with_kerberos5:--with-krb5=%{_prefix}} \ |
147 | %{!?with_kerberos5:--with-krb5=no} \ | |
148 | %{?with_ldap:--with-openldap=yes} \ | |
149 | %{!?with_ldap:--with-openldap=no} \ | |
aeafa52e | 150 | --enable-gnome-keyring=yes \ |
8a5a422a | 151 | --enable-gtk-doc \ |
152 | --enable-static \ | |
94fa296c | 153 | --with-nspr-includes=%{_includedir}/nspr \ |
154 | --with-nspr-libs=%{_libdir} \ | |
155 | --with-nss-includes=%{_includedir}/nss \ | |
aeafa52e | 156 | --with-nss-libs=%{_libdir} \ |
157 | --with-libdb=%{_libdir} | |
52730793 | 158 | |
46c4d742 | 159 | %{__make} \ |
b7c830de | 160 | HTML_DIR=%{_gtkdocdir} \ |
4ff8ccbf | 161 | GTKHTML_DATADIR=%{_datadir}/idl |
11b4e6b5 | 162 | |
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %{__make} install \ | |
46c4d742 | 167 | DESTDIR=$RPM_BUILD_ROOT \ |
168 | GTKHTML_DATADIR=%{_datadir}/idl \ | |
b7c830de | 169 | HTML_DIR=%{_gtkdocdir} \ |
46c4d742 | 170 | pkgconfigdir=%{_pkgconfigdir} |
171 | ||
e2ebc190 | 172 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} |
94fa296c | 173 | |
9b5d553a ER |
174 | install -d $RPM_BUILD_ROOT%{schemadir} |
175 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
176 | ||
46c4d742 | 177 | %find_lang %{name} --all-name |
11b4e6b5 | 178 | |
179 | %clean | |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
46c4d742 | 182 | %post |
8f8bf49b | 183 | %scrollkeeper_update_post |
11b4e6b5 | 184 | |
46c4d742 | 185 | %postun |
8f8bf49b | 186 | %scrollkeeper_update_postun |
11b4e6b5 | 187 | |
73b9c62c | 188 | %post libs -p /sbin/ldconfig |
189 | %postun libs -p /sbin/ldconfig | |
190 | ||
9b5d553a | 191 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
192 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
193 | %service -q ldap restart | |
9b5d553a ER |
194 | |
195 | %postun -n openldap-schema-evolutionperson | |
196 | if [ "$1" = "0" ]; then | |
7937d160 ER |
197 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
198 | %service -q ldap restart | |
9b5d553a ER |
199 | fi |
200 | ||
46c4d742 | 201 | %files -f %{name}.lang |
11b4e6b5 | 202 | %defattr(644,root,root,755) |
46c4d742 | 203 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 204 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
205 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
e2ebc190 | 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 | |
46c4d742 | 213 | %{_libdir}/bonobo/servers/* |
e2ebc190 | 214 | |
be45f956 | 215 | %if %{with ldap} |
e3a9d40d | 216 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 217 | %endif |
218 | ||
e2ebc190 | 219 | %dir %{_datadir}/%{name}-%{basever} |
220 | %{_datadir}/%{name}-%{basever}/glade | |
221 | %{_datadir}/%{name}-%{basever}/weather | |
042cdced | 222 | %{_pixmapsdir}/%{name} |
46c4d742 | 223 | |
9b5d553a ER |
224 | %files -n openldap-schema-evolutionperson |
225 | %defattr(644,root,root,755) | |
226 | %{schemadir}/*.schema | |
227 | ||
0931c5d7 JB |
228 | %files libs |
229 | %defattr(644,root,root,755) | |
230 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
15b94064 | 231 | %{_datadir}/idl/%{name}-%{apiver} |
0931c5d7 | 232 | |
46c4d742 | 233 | %files devel |
11b4e6b5 | 234 | %defattr(644,root,root,755) |
46c4d742 | 235 | %attr(755,root,root) %{_libdir}/*.so |
236 | %{_libdir}/*.la | |
237 | %{_includedir}/* | |
238 | %{_pkgconfigdir}/* | |
8a5a422a | 239 | |
240 | %files static | |
241 | %defattr(644,root,root,755) | |
242 | %{_libdir}/*.a | |
ac5ccf41 | 243 | |
244 | %files apidocs | |
245 | %defattr(644,root,root,755) | |
246 | %{_gtkdocdir}/* |