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