]> git.pld-linux.org Git - packages/openchange.git/blame_incremental - openchange.spec
- release 7 (samba 4.2.12 rebuild)
[packages/openchange.git] / openchange.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
4#
5Summary: OpenChange - portable implementation of MS Exchange Server and Exchange protocols
6Summary(pl.UTF-8): OpenChange - przenośna implementacja serwera oraz protokołów MS Exchange
7Name: openchange
8Version: 2.3
9Release: 7
10License: GPL v3+
11Group: Libraries
12%define cname VULCAN
13Source0: https://github.com/openchange/openchange/archive/%{name}-%{version}-%{cname}.tar.gz
14# Source0-md5: 96c13c78c2bcbd7040f7848746284b9f
15Patch0: %{name}-samba-private.patch
16Patch1: %{name}-link.patch
17Patch2: flex2.6.patch
18URL: http://www.openchange.org/
19BuildRequires: QtCore-devel >= 4.3.0
20BuildRequires: QtGui-devel >= 4.3.0
21BuildRequires: autoconf >= 2.57
22BuildRequires: automake
23BuildRequires: check-devel
24BuildRequires: doxygen
25BuildRequires: ldb-devel
26BuildRequires: libical-devel >= 0.46
27BuildRequires: libmagic-devel
28BuildRequires: libmemcached-devel >= 1.0.18
29BuildRequires: libpcap-devel
30BuildRequires: libstdc++-devel
31BuildRequires: mysql-devel
32BuildRequires: nanomsg-devel >= 0.5
33BuildRequires: perl-base
34BuildRequires: pkgconfig >= 1:0.20
35BuildRequires: popt-devel
36BuildRequires: python-devel >= 1:2.7
37BuildRequires: python-samba >= 4.2.2
38BuildRequires: rpmbuild(macros) >= 1.219
39# with DCERCP multiplex and pending call support (upstream 4.1.18+ or 4.2.2+)
40BuildRequires: samba-devel >= 4.2.2
41BuildRequires: samba-pidl >= 4.2.2
42BuildRequires: sed >= 4.0
43BuildRequires: subunit-devel
44BuildRequires: talloc-devel
45BuildRequires: tdb-devel
46BuildRequires: zlib-devel
47Requires: %{name}-libs = %{version}-%{release}
48Requires: python-openchange = %{version}-%{release}
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
52OpenChange is a portable Open Source implementation of Microsoft
53Exchange server and Exchange protocols. It provides a complete
54solution to interoperate with Microsoft Outlook clients or Microsoft
55Exchange servers.
56
57OpenChange client-side library is used in existing messaging clients
58and is the solution in new projects to communicate natively with
59Microsoft Exchange and Exchange-compatible servers. OpenChange server
60is a transparent Microsoft Exchange server replacement using native
61Exchange protocols and does not require any plugin installation in
62Outlook.
63
64%description -l pl.UTF-8
65OpenChange to przenośna, mająca otwarte źródła implementacja serwera
66oraz protokołów Microsoft Exchange. Dostarcza kompletne rozwiązanie
67pozwalające współpracować z klientami Microsoft Outlook oraz serwerami
68Microsoft Exchange.
69
70Biblioteka kliencka OpenChange jest używana przez istniejących
71klientów pocztowych i pozwalają na natywną komunikację z serwerami
72Microsoft Exchange oraz zgodnymi. Serwer OpenChange to przezroczysty
73zamiennik serwera Microsoft Exchange wykorzystujący natywne protokoły
74Exchange, nie wymagający instalowania żadnych wtyczek w Outlooku.
75
76%package libs
77Summary: OpenChange client libraries
78Summary(pl.UTF-8): Biblioteki klienckie OpenChange
79Group: Libraries
80
81%description libs
82OpenChange client libraries.
83
84%description libs -l pl.UTF-8
85Biblioteki klienckie OpenChange.
86
87%package devel
88Summary: Header files for OpenChange libraries
89Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OpenChange
90Group: Development/Libraries
91Requires: %{name}-libs = %{version}-%{release}
92Requires: ldb-devel
93Requires: samba-devel >= 4.2.2
94Requires: talloc-devel
95Requires: tevent-devel
96Requires: zlib-devel
97
98%description devel
99Header files for OpenChange libraries.
100
101%description devel -l pl.UTF-8
102Pliki nagłówkowe bibliotek OpenChange.
103
104%package c++
105Summary: C++ interface to OpenChange MAPI library
106Summary(pl.UTF-8): Interfejs C++ do biblioteki OpenChange MAPI
107Group: Libraries
108Requires: %{name}-libs = %{version}-%{release}
109
110%description c++
111C++ interface to OpenChange MAPI library.
112
113%description c++ -l pl.UTF-8
114Interfejs C++ do biblioteki OpenChange MAPI.
115
116%package c++-devel
117Summary: Header files of C++ interface to OpenChange MAPI library
118Summary(pl.UTF-8): Pliki nagłówkowe interfejsu C++ do biblioteki OpenChange MAPI
119Group: Development/Libraries
120Requires: %{name}-c++ = %{version}-%{release}
121Requires: %{name}-devel = %{version}-%{release}
122Requires: libstdc++-devel
123
124%description c++-devel
125Header files of C++ interface to OpenChange MAPI library.
126
127%description c++-devel -l pl.UTF-8
128Pliki nagłówkowe interfejsu C++ do biblioteki OpenChange MAPI.
129
130%package qt
131Summary: Qt interface to OpenChange MAPI library
132Summary(pl.UTF-8): Interfejs Qt do biblioteki OpenChange MAPI
133Group: Libraries
134Requires: %{name}-c++ = %{version}-%{release}
135Requires: QtCore >= 4.3.0
136Requires: QtGui >= 4.3.0
137
138%description qt
139Qt interface to OpenChange MAPI library.
140
141%description qt -l pl.UTF-8
142Interfejs Qt do biblioteki OpenChange MAPI.
143
144%package qt-devel
145Summary: Header files of Qt interface to OpenChange MAPI library
146Summary(pl.UTF-8): Pliki nagłówkowe interfejsu Qt do biblioteki OpenChange MAPI
147Group: Development/Libraries
148Requires: %{name}-qt = %{version}-%{release}
149Requires: QtGui-devel >= 4.3.0
150
151%description qt-devel
152Header files of Qt interface to OpenChange MAPI library.
153
154%description qt-devel -l pl.UTF-8
155Pliki nagłówkowe interfejsu Qt do biblioteki OpenChange MAPI.
156
157%package apidocs
158Summary: API documentation for OpenChange libraries
159Summary(pl.UTF-8): Dokumentacja API bibliotek OpenChange
160Group: Documentation
161
162%description apidocs
163API documentation for OpenChange libraries.
164
165%description apidocs -l pl.UTF-8
166Dokumentacja API bibliotek OpenChange.
167
168%package -n python-openchange
169Summary: Python interface to OpenChange libraries
170Summary(pl.UTF-8): Interfejs Pythona do bibliotek OpenChange
171Group: Libraries/Python
172Requires: %{name}-libs = %{version}-%{release}
173
174%description -n python-openchange
175Python interface to OpenChange libraries.
176
177%description -n python-openchange -l pl.UTF-8
178Interfejs Pythona do bibliotek OpenChange.
179
180%package -n nagios-plugin-openchange
181Summary: Nagios plugin to check Exchange/OpenChange services
182Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania usług Exchange/OpenChange
183Group: Networking
184Requires: %{name} = %{version}-%{release}
185Requires: nagios
186
187%description -n nagios-plugin-openchange
188Nagios plugin to check Exchange/OpenChange services.
189
190%description -n nagios-plugin-openchange -l pl.UTF-8
191Wtyczka Nagiosa do sprawdzania usług Exchange/OpenChange.
192
193%prep
194%setup -q -n %{name}-%{name}-%{version}-%{cname}
195%patch0 -p1
196%patch1 -p1
197%patch2 -p1
198
199# no switch for verbose mode, enable manually :/
200%{__sed} -i -e 's/^ @\(\$(\(PIDL\|CC\|CXX\|MOC\)\)/ \1/' Makefile
201
202%build
203%{__aclocal}
204%{__autoconf}
205%{__autoheader}
206%configure \
207 --datadir=%{_datadir}/openchange \
208 --enable-openchange-qt4 \
209 --enable-pyopenchange \
210 --with-modulesdir=%{_libdir}/openchange/modules
211%{__make}
212
213%if %{with apidocs}
214%{__make} doxygen
215%endif
216
217%install
218rm -rf $RPM_BUILD_ROOT
219
220%{__make} install \
221 DESTDIR=$RPM_BUILD_ROOT
222
223# doxygen generated man pages are messy; use HTML docs and install man1 pages manually
224%if 0
225%{__make} installman \
226 DESTDIR=$RPM_BUILD_ROOT
227%else
228install -d $RPM_BUILD_ROOT%{_mandir}/man1
229cp doc/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
230%endif
231
232# missing from make install
233install -d $RPM_BUILD_ROOT%{_includedir}/libqtmapi
234cp -p qt/lib/*.h $RPM_BUILD_ROOT%{_includedir}/libqtmapi
235cp -a libqtmapi.so.*.* libqtmapi.so $RPM_BUILD_ROOT%{_libdir}
236
237# tests
238%{__rm} $RPM_BUILD_ROOT%{_bindir}/{check_fasttransfer,openchange-testsuite,test_asyncnotif}
239
240/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
241
242%py_comp $RPM_BUILD_ROOT%{py_sitedir}
243%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
244%py_postclean
245
246%clean
247rm -rf $RPM_BUILD_ROOT
248
249%post libs -p /sbin/ldconfig
250%postun libs -p /sbin/ldconfig
251
252%post c++ -p /sbin/ldconfig
253%postun c++ -p /sbin/ldconfig
254
255%post qt -p /sbin/ldconfig
256%postun qt -p /sbin/ldconfig
257
258%files
259%defattr(644,root,root,755)
260%doc CHANGES.md IDL_LICENSE.txt README.md README.smbconf.md doc/howto.txt
261%attr(755,root,root) %{_bindir}/exchange2ical
262%attr(755,root,root) %{_bindir}/exchange2mbox
263%attr(755,root,root) %{_bindir}/mapiprofile
264%attr(755,root,root) %{_bindir}/mapipropsdump
265%attr(755,root,root) %{_bindir}/mapitest
266%attr(755,root,root) %{_bindir}/ocnotify
267%attr(755,root,root) %{_bindir}/openchangeclient
268%attr(755,root,root) %{_bindir}/openchangemapidump
269%attr(755,root,root) %{_bindir}/openchangepfadmin
270%attr(755,root,root) %{_bindir}/rpcextract
271%attr(755,root,root) %{_bindir}/schemaIDGUID
272%attr(755,root,root) %{_sbindir}/openchange_group
273%attr(755,root,root) %{_sbindir}/openchange_migrate
274%attr(755,root,root) %{_sbindir}/openchange_neworganization
275%attr(755,root,root) %{_sbindir}/openchange_newuser
276%attr(755,root,root) %{_sbindir}/openchange_provision
277# XXX: dir specified by dcerpc_server.pc file, should belong to samba or samba-libs
278%dir %{_libdir}/samba/dcerpc_server
279%attr(755,root,root) %{_libdir}/samba/dcerpc_server/dcesrv_asyncemsmdb.so
280%attr(755,root,root) %{_libdir}/samba/dcerpc_server/dcesrv_mapiproxy.so
281%dir %{_libdir}/openchange
282%dir %{_libdir}/openchange/modules
283%dir %{_libdir}/openchange/modules/dcerpc_mapiproxy
284%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy/mpm_cache.so
285%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy/mpm_downgrade.so
286%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy/mpm_dummy.so
287%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy/mpm_pack.so
288%dir %{_libdir}/openchange/modules/dcerpc_mapiproxy_server
289%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy_server/exchange_ds_rfr.so
290%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy_server/exchange_emsmdb.so
291%attr(755,root,root) %{_libdir}/openchange/modules/dcerpc_mapiproxy_server/exchange_nsp.so
292%dir %{_datadir}/openchange
293%{_datadir}/openchange/mapitest
294%dir %{_datadir}/openchange/setup
295%{_datadir}/openchange/setup/mapistore
296%{_datadir}/openchange/setup/openchangedb
297%{_datadir}/openchange/setup/profiles
298%dir %{_datadir}/samba/setup/AD
299%{_datadir}/samba/setup/AD/oc_provision_*.ldif
300%{_datadir}/samba/setup/AD/provision_schema_basedn_modify.ldif
301%{_datadir}/samba/setup/AD/update_now.ldif
302%{_datadir}/samba/setup/AD/prefixMap.txt
303%{_mandir}/man1/exchange2ical.1*
304%{_mandir}/man1/exchange2mbox.1*
305%{_mandir}/man1/mapiprofile.1*
306%{_mandir}/man1/mapitest.1*
307%{_mandir}/man1/openchangeclient.1*
308%{_mandir}/man1/openchangepfadmin.1*
309
310%files libs
311%defattr(644,root,root,755)
312%attr(755,root,root) %{_libdir}/libmapi.so.*.*
313%attr(755,root,root) %ghost %{_libdir}/libmapi.so.0
314%attr(755,root,root) %{_libdir}/libmapiadmin.so.*.*
315%attr(755,root,root) %ghost %{_libdir}/libmapiadmin.so.0
316%attr(755,root,root) %{_libdir}/libmapiproxy.so.*.*
317%attr(755,root,root) %ghost %{_libdir}/libmapiproxy.so.0
318%attr(755,root,root) %{_libdir}/libmapiserver.so.*.*
319%attr(755,root,root) %ghost %{_libdir}/libmapiserver.so.0
320%attr(755,root,root) %{_libdir}/libmapistore.so.*.*
321%attr(755,root,root) %ghost %{_libdir}/libmapistore.so.0
322%attr(755,root,root) %{_libdir}/libocpf.so.*.*
323%attr(755,root,root) %ghost %{_libdir}/libocpf.so.0
324
325%files devel
326%defattr(644,root,root,755)
327%attr(755,root,root) %{_libdir}/libmapi.so
328%attr(755,root,root) %{_libdir}/libmapiadmin.so
329%attr(755,root,root) %{_libdir}/libmapiproxy.so
330%attr(755,root,root) %{_libdir}/libmapiserver.so
331%attr(755,root,root) %{_libdir}/libmapistore.so
332%attr(755,root,root) %{_libdir}/libocpf.so
333%{_includedir}/gen_ndr
334%{_includedir}/libmapi
335%{_includedir}/libmapiadmin
336%{_includedir}/libocpf
337%{_includedir}/mapistore
338%{_includedir}/libmapiproxy.h
339%{_includedir}/libmapiserver.h
340%{_pkgconfigdir}/libmapi.pc
341%{_pkgconfigdir}/libmapiadmin.pc
342%{_pkgconfigdir}/libmapiproxy.pc
343%{_pkgconfigdir}/libmapiserver.pc
344%{_pkgconfigdir}/libmapistore.pc
345%{_pkgconfigdir}/libocpf.pc
346
347%files c++
348%defattr(644,root,root,755)
349%attr(755,root,root) %{_libdir}/libmapipp.so.*.*
350%attr(755,root,root) %ghost %{_libdir}/libmapipp.so.0
351
352%files c++-devel
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/libmapipp.so
355%{_includedir}/libmapi++
356%{_pkgconfigdir}/libmapi++.pc
357
358%files qt
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/libqtmapi.so.*.*
361%attr(755,root,root) %ghost %{_libdir}/libqtmapi.so.0
362
363%files qt-devel
364%defattr(644,root,root,755)
365%attr(755,root,root) %{_libdir}/libqtmapi.so
366%{_includedir}/libqtmapi
367
368%if %{with apidocs}
369%files apidocs
370%defattr(644,root,root,755)
371%doc apidocs/html/*
372%endif
373
374%files -n python-openchange
375%defattr(644,root,root,755)
376%dir %{py_sitedir}/openchange
377%attr(755,root,root) %{py_sitedir}/openchange/mapi.so
378%attr(755,root,root) %{py_sitedir}/openchange/mapistore.so
379%{py_sitedir}/openchange/*.py[co]
380%{py_sitedir}/openchange/migration
381%{py_sitedir}/openchange/tests
382%{py_sitedir}/openchange/utils
383%{py_sitedir}/openchange/web
384
385%files -n nagios-plugin-openchange
386%defattr(644,root,root,755)
387# R: perl, openchangeclient
388%attr(755,root,root) %{_libdir}/nagios/check_exchange
389# default profile database - should be /etc/...
390#%config(noreplace) %verify(not md5 mtime size) %{_libdir}/nagios/plugins/check_exchange.ldb
This page took 0.032002 seconds and 4 git commands to generate.