Summary(pl.UTF-8): OpenChange - przenośna implementacja serwera oraz protokołów MS Exchange
Name: openchange
Version: 2.3
-Release: 37
+Release: 74
License: GPL v3+
Group: Libraries
+#Source0Download: https://github.com/openchange/openchange/releases
Source0: https://github.com/openchange/openchange/archive/%{name}-%{version}-%{cname}.tar.gz
# Source0-md5: 96c13c78c2bcbd7040f7848746284b9f
Patch0: disable-mapiproxy.patch
Patch3: samba-4.2.patch
Patch4: fix-connection-args.patch
Patch5: samba-4.4.patch
-URL: http://www.openchange.org/
+Patch6: %{name}-covscan.patch
+Patch7: %{name}-samba-4.10-macros.patch
+Patch8: %{name}-libical.patch
+Patch9: samba-4.11.patch
+Patch10: samba-4.12.patch
+Patch11: %{name}-nanomsg.patch
+Patch12: samba-4.15.patch
+Patch13: samba-4.20.patch
+URL: https://github.com/openchange
BuildRequires: QtCore-devel >= 4.3.0
BuildRequires: QtGui-devel >= 4.3.0
BuildRequires: autoconf >= 2.57
BuildRequires: libpcap-devel
BuildRequires: libstdc++-devel
BuildRequires: mysql-devel
-BuildRequires: nanomsg-devel >= 0.5
+BuildRequires: nanomsg-devel >= 1.0.0
BuildRequires: perl-base
BuildRequires: pkgconfig >= 1:0.20
BuildRequires: popt-devel
-%if %{with python}
BuildRequires: python-devel >= 1:2.7
+%if %{with python}
BuildRequires: python-samba >= 4.2.2
%endif
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: qt4-build >= 4.3.0
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.752
# with DCERCP multiplex and pending call support (upstream 4.1.18+ or 4.2.2+)
-BuildRequires: samba-devel >= 4.2.2
-BuildRequires: samba-pidl >= 4.2.2
+# samba-4.10-macros patch requires samba-pidl 4.10+
+BuildRequires: samba-devel >= 4.10
+BuildRequires: samba-pidl >= 4.10
BuildRequires: sed >= 4.0
BuildRequires: subunit-devel
BuildRequires: talloc-devel
%{?with_python:Requires: python-openchange = %{version}-%{release}}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noautoreq_perl utils
+
%description
OpenChange is a portable Open Source implementation of Microsoft
Exchange server and Exchange protocols. It provides a complete
Summary: API documentation for OpenChange libraries
Summary(pl.UTF-8): Dokumentacja API bibliotek OpenChange
Group: Documentation
-%if "%{_rpmversion}" >= "5"
BuildArch: noarch
-%endif
%description apidocs
API documentation for OpenChange libraries.
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
# no switch for verbose mode, enable manually :/
%{__sed} -i -e 's/^ @\(\$(\(PIDL\|CC\|CXX\|MOC\)\)/ \1/' Makefile
%{__aclocal}
%{__autoconf}
%{__autoheader}
+# instead of calling automake (there is no Makefile.am)
+cp -f /usr/share/automake/{compile,missing} .
%configure \
--datadir=%{_datadir}/openchange \
--enable-openchange-qt4 \
cp -a libqtmapi.so.*.* libqtmapi.so $RPM_BUILD_ROOT%{_libdir}
# tests
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/{check_fasttransfer,openchange-testsuite,test_asyncnotif}
-%if %{without mapiproxy}
-# requires mapiproxy
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/ocnotify
-%endif
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/test_asyncnotif
%if %{without mapitest}
%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/mapitest.1
%endif