File kopano-python-services.spec of Package kopano-python-services
#
# spec file for package kopano-python-services
#
# Copyright (c) 2019 Kopano B.V.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://jira.kopano.io/
#
# Kopano OBS: And if you add new %%package(s), update core:*:dist too
%define version_unconverted 8.7.0.0
Name: kopano-python-services
Version: 8.7.0.0
Release: 0
Summary: Python services for Kopano Groupware Core
License: AGPL-3.0-only
Group: Productivity/Networking/Email/Servers
URL: https://kopano.io/
Source: kopano-core-%version.tar.xz
Source3: %name-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: python
%if !0%{?suse_version} || (0%{?sle_version} && 0%{?sle_version} < 150400)
%define with_python2 1
BuildRequires: python-devel
BuildRequires: python-setuptools
%endif
%if 0%{?suse_version} > 1315 || 0%{?fedora_version}
%define with_python3 1
%define prefer_python3 1
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xapian
%else
BuildRequires: python-xapian
%endif
BuildRequires: swig
BuildRequires: pkgconfig
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
%if 0%{?fedora_version} || 0%{?centos_version}
BuildRequires: xapian-core-libs
%endif
%if 0%{?suse_version}
BuildRequires: python-xml
%else
BuildRequires: libxml2-python
%endif
%if 0%{?prefer_python3}
%define pyorder %{?with_python2:python2} %{?with_python3:python3}
%else
%define pyorder %{?with_python3:python3} %{?with_python2:python2}
%endif
%description
Kopano provides email storage on the server side and brings its own
Ajax-based mail client called WebAccess. Kopano is designed to
integrate with Kopano WebApp, Push clients and other mail services as an
alternative to Microsoft Exchange and other comparable mail servers.
Personal address book, calendar, notes and tasks, "Public Folders" and shared
calendar functionalities (inviting internal and external users,
resource management) can be handled by the software as well.
%package -n kopano-backup
Summary: Utility to back up and restore Kopano stores
Group: Productivity/Networking/Email/Servers
Requires(pre): kopano-common = %version
%if 0%{?prefer_python3}
Requires: python3-bsddb3
Requires: python3-kopano = %version
%else
Requires: python2-kopano = %version
%endif
%description -n kopano-backup
kopano-backup is a MAPI-level backup/restore tool. It can sync
complete users/stores to disk using ICS to incrementally sync the
respective MAPI items, and can process stores in parallel.
%package -n kopano-dagent-pytils
Summary: Additional message handlers for kopano-dagent
Group: Productivity/Networking/Email/Servers
%description -n kopano-dagent-pytils
DAgent can execute external scripts for certain message types.
Included here is a handler that will process meeting request and
response messages and edit the participants' calendars accordingly.
%package -n kopano-grapi
Summary: REST entrypoints to the Kopano Groupware Core stack
Group: Productivity/Networking/Email/Servers
Requires: systemd
Requires(pre): kopano-common = %version
Requires: python3-jsonschema
Requires: python3-kopano-rest = %version-%release
# Require always kopano-python3-extras instead of py modules not always there
Requires: kopano-python3-extras
#Requires: python3-falcon >= 1.4.1
#Requires: python3-bjoern >= 2.2.2
Requires: python3-setproctitle
%description -n kopano-grapi
GRAPI makes Groupware related data accessible via a REST interface.
%package -n kopano-migration-pst
Summary: Utility to import PST files
Group: Productivity/Networking/Email/Servers
Requires(pre): kopano-common = %version
%if 0%{?prefer_python3}
Requires: python3-kopano = %version
%else
Requires: python2-kopano = %version
%endif
%description -n kopano-migration-pst
kopano-migration-pst is a utility to import PST files into Kopano. As PST
files are basically MAPI dumps, and Kopano also uses MAPI internally, there
should be practically no data loss, even including calendar data.
%package -n kopano-presence
Summary: Kopano Core Presence Daemon
Group: Productivity/Networking/Email/Servers
Requires(pre): kopano-common = %version
%if 0%{?prefer_python3}
Requires: python3-Flask
Requires: python3-kopano = %version
Requires: python3-sleekxmpp
%else
Requires: python-Flask
Requires: python-sleekxmpp
Requires: python2-kopano = %version
%endif
%description -n kopano-presence
A daemon for collecting and exporting user presence information
across multiple protocols in a unified way. Supports XMPP and Spreed.
Clients can both query the daemon with presence information (for
example, the user is 'available' for XMPP and 'away' for Spreed) and
update presence information (for example, make a user 'available' on
Spreed). Queries and updates are performed with simple GET and PUT
requests, respectively, using a simple (and identical) JSON format.
%package -n kopano-python-utils
Summary: Additional Python-based command-line utils for Kopano Core
Group: Productivity/Networking/Email/Servers
%if 0%{?prefer_python3}
Requires: python3-bsddb3
Requires: python3-kopano = %version
%else
Requires: python2-kopano = %version
%endif
%description -n kopano-python-utils
Command-line clients to manipulate mailboxes (stores) in various ways.
%package -n kopano-search
Summary: Indexed search engine for Kopano Core
Group: Productivity/Networking/Email/Servers
Requires(pre): kopano-common = %version
%if 0%{?prefer_python3}
Requires: python3-bsddb3
Requires: python3-kopano = %version
Requires: python3-xapian
%else
Requires: python-xapian
Requires: python2-kopano = %version
%endif
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
Requires: elinks
Requires: poppler-utils
%else
Requires: poppler-tools
Requires: w3m
%endif
%description -n kopano-search
kopano-search creates indexes for messages and attachments per user.
When this service is running, search queries on the server will use
this index to quickly find messages and contents of attached
documents, enhancing the search performance of kopano-server.
%package -n kopano-spamd
Summary: ICS-driven spam learning daemon for Kopano/SpamAssassin
Group: Productivity/Networking/Email/Servers
%if 0%{?prefer_python3}
Requires: python3-bsddb3
Requires: python3-kopano = %version
%else
Requires: python2-kopano = %version
%endif
%description -n kopano-spamd
A program which can teach SpamAssassin about spam based upon
the mails a user has moved to his Kopano junk folder.
%package -n python2-kopano
Summary: High-level Python bindings for Kopano
Group: Development/Languages/Python
Obsoletes: python-kopano < %version-%release
Provides: python-kopano = %version-%release
Requires: python-dateutil
Requires: python-pytz
Requires: python2-mapi
%description -n python2-kopano
Object-Oriented Python bindings for Kopano. Uses python-mapi to do
the low level work. Can be used for many common system administration
tasks.
%package -n python3-kopano
Summary: High-level Python bindings for Kopano
Group: Development/Languages/Python
Requires: python3-dateutil
Requires: python3-mapi
Requires: python3-pytz
%description -n python3-kopano
Object-Oriented Python bindings for Kopano. Uses python-mapi to do
the low level work. Can be used for many common system administration
tasks.
%package -n python3-kopano-rest
Summary: Kopano REST API bindings for Kopano for Python 3
Group: Development/Languages/Python
Requires: python3-kopano = %version-%release
# Require always kopano-python3-extras instead of py modules not always there.
Requires: kopano-python3-extras
#Requires: python3-PyJWT >= 1.33
Requires: python3-ujson
Requires: python3-requests
Requires: python3-Pillow
Requires: python3-dateutil
Requires: python3-bsddb3
Requires: python3-tz
%description -n python3-kopano-rest
These bindings use python-kopano3 to interface with Groupware Core.
%package -n python2-zarafa
Summary: Old module name support for Kopano
Group: Development/Languages
Obsoletes: kopano-compat
Provides: kopano-compat = %version-%release
%description -n python2-zarafa
Provides some files under old module names.
%package -n python3-zarafa
Summary: Old module name support for Kopano
Group: Development/Languages
Obsoletes: kopano-compat
Provides: kopano-compat = %version-%release
%description -n python3-zarafa
Provides some files under old module names.
%prep
%setup -qn kopano-core-%version
%build
autoreconf -fi
for pyint in %pyorder; do
%if 0%{?rhel_version} == 600 || 0%{?centos_version} == 600
PYTHON_CFLAGS=$(python-config --cflags)
PYTHON_LIBS=$(python-config --libs)
%else
PYTHON_CFLAGS=$(pkg-config "$pyint" --cflags)
PYTHON_LIBS=$(pkg-config "$pyint" --libs)
%endif
mkdir "obj-$pyint"
pushd "obj-$pyint/"
%define _configure ../configure
%configure \
--docdir="%_docdir/kopano" --disable-base \
PYTHON="$(which $pyint)"
echo "%version" >version
make V=1 %{?_smp_mflags}
popd
done # for pyint
%install
b="%buildroot"
for pyint in %pyorder; do
%make_install -C "obj-$pyint/"
done
find "$b" -type f -name "*.la" -print -delete
# dlopened or no headers
rm -Rfv "$b/%_libdir/libkcpyconv.so" "$b/%_libdir/libkcpydirector.so" "$b/%_libdir/libkcpyplug.so"
echo %python_sitelib
echo %python3_sitelib
%if 0%{?prefer_python3}
%if "0%{?python_sitelib}" != "0%{?python3_sitelib}"
for i in kopano_backup kopano_cli kopano_migration_pst kopano_presence \
kopano_search kopano_spamd kopano_utils; do
rm -Rf "$b/%python_sitelib/$i"*
done
%endif
%else
for i in kopano_backup kopano_cli kopano_migration_pst kopano_presence \
kopano_search kopano_spamd kopano_utils; do
rm -Rf "$b/%python3_sitelib/$i"*
done
%endif
%if 0%{?centos_version} == 600
for i in presence search spamd; do
install -Dpm0755 "installer/linux/kopano-$i.init.rhel" "%buildroot/%_initddir/kopano-$i"
done
%endif
%if 0%{?fdupes:1}
%fdupes %buildroot/%_prefix
%endif
# some default dirs
mkdir -p "$b/var/lib/kopano/autorespond" "$b/var/lib/kopano/spamd/spam"
mkdir -p "$b/%_localstatedir/log/kopano"
chmod 750 "$b/%_localstatedir/log/kopano"
%if 0%{?with_python3}
# set paths to grapi binscript
sed -i "s|EXE=.*|EXE=%_libexecdir/kopano/kopano-mfr.py|" "$b/%_sbindir/kopano-grapi"
sed -i "s|EXTRA_PYTHONPATH=.*|EXTRA_PYTHONPATH=$(PYTHONUSERBASE=%_prefix/lib/kopano/python3-extras python3 -m site --user-site)|" "$b/%_sbindir/kopano-grapi"
%endif
%triggerpostun -n kopano-backup -- kopano-backup
if [ "$1" -ne 2 ]; then exit 0; fi
# putback previously existing cfgs after they get untracked once
if [ ! -e "%_sysconfdir/kopano/backup.cfg" -a \
-e "%_sysconfdir/kopano/backup.cfg.rpmsave" ]; then
mv -v "%_sysconfdir/kopano/backup.cfg.rpmsave" \
"%_sysconfdir/kopano/backup.cfg"
fi
%pre -n kopano-grapi
%_bindir/getent group kopano >/dev/null || \
%_sbindir/groupadd -r kopano
%_bindir/getent passwd kapi >/dev/null || \
%_sbindir/useradd -c "Kopano API unprivileged account" \
-g kopano -r kapi -s /sbin/nologin
%{?_unitdir:%{?suse_version:%service_add_pre kopano-grapi.service}}
%post -n kopano-grapi
%{?_unitdir:%{?suse_version:%service_add_post kopano-grapi.service}}
%{?_unitdir:%{!?suse_version:%systemd_post kopano-grapi.service}}
%postun -n kopano-grapi
%{?_unitdir:%{?suse_version:%service_del_postun kopano-grapi.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-grapi.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update grapi}
%triggerpostun -n kopano-migration-pst -- kopano-migration-pst
if [ "$1" -ne 2 ]; then exit 0; fi
# putback previously existing cfgs after they get untracked once
if [ ! -e "%_sysconfdir/kopano/migration-pst.cfg" -a \
-e "%_sysconfdir/kopano/migration-pst.cfg.rpmsave" ]; then
mv -v "%_sysconfdir/kopano/migration-pst.cfg.rpmsave" \
"%_sysconfdir/kopano/migration-pst.cfg"
fi
%pre -n kopano-presence
%{?_unitdir:%{?suse_version:%service_add_pre kopano-presence.service}}
%post -n kopano-presence
%{?_unitdir:%{?suse_version:%service_add_post kopano-presence.service}}
%{?_unitdir:%{!?suse_version:%systemd_post kopano-presence.service}}
%preun -n kopano-presence
%{?_unitdir:%{?suse_version:%service_del_preun kopano-presence.service}}
%{?_unitdir:%{!?suse_version:%systemd_preun kopano-presence.service}}
%{!?_unitdir:%stop_on_removal kopano-presence}
%postun -n kopano-presence
%{?_unitdir:%{?suse_version:%service_del_postun kopano-presence.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-presence.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update kopano-presence}
%triggerpostun -n kopano-presence -- kopano-presence
if [ "$1" -ne 2 ]; then exit 0; fi
# putback previously existing cfgs after they get untracked once
if [ ! -e "%_sysconfdir/kopano/presence.cfg" -a \
-e "%_sysconfdir/kopano/presence.cfg.rpmsave" ]; then
mv -v "%_sysconfdir/kopano/presence.cfg.rpmsave" \
"%_sysconfdir/kopano/presence.cfg"
fi
%{?_unitdir:%{?suse_version:%service_del_postun kopano-presence.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-presence.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update kopano-presence}
%pre -n kopano-search
%{?_unitdir:%{?suse_version:%service_add_pre kopano-search.service}}
%post -n kopano-search
%{?_unitdir:%{?suse_version:%service_add_post kopano-search.service}}
%{?_unitdir:%{!?suse_version:%systemd_post kopano-search.service}}
%preun -n kopano-search
%{?_unitdir:%{?suse_version:%service_del_preun kopano-search.service}}
%{?_unitdir:%{!?suse_version:%systemd_preun kopano-search.service}}
%{!?_unitdir:%stop_on_removal kopano-search}
%postun -n kopano-search
%{?_unitdir:%{?suse_version:%service_del_postun kopano-search.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-search.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update kopano-search}
%triggerpostun -n kopano-search -- kopano-search
if [ "$1" -ne 2 ]; then exit 0; fi
# putback previously existing cfgs after they get untracked once
if [ ! -e "%_sysconfdir/kopano/search.cfg" -a \
-e "%_sysconfdir/kopano/search.cfg.rpmsave" ]; then
mv -v "%_sysconfdir/kopano/search.cfg.rpmsave" \
"%_sysconfdir/kopano/search.cfg"
fi
%{?_unitdir:%{?suse_version:%service_del_postun kopano-search.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-search.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update kopano-search}
%pre -n kopano-spamd
%{?_unitdir:%{?suse_version:%service_add_pre kopano-spamd.service}}
%post -n kopano-spamd
%{?_unitdir:%{?suse_version:%service_add_post kopano-spamd.service}}
%{?_unitdir:%{!?suse_version:%systemd_post kopano-spamd.service}}
%preun -n kopano-spamd
%{?_unitdir:%{?suse_version:%service_del_preun kopano-spamd.service}}
%{?_unitdir:%{!?suse_version:%systemd_preun kopano-spamd.service}}
%{!?_unitdir:%stop_on_removal kopano-spamd}
%postun -n kopano-spamd
%{?_unitdir:%{?suse_version:%service_del_postun kopano-spamd.service}}
%{?_unitdir:%{!?suse_version:%systemd_postun_with_restart kopano-spamd.service}}
%{!?_unitdir:%insserv_cleanup}
%{!?_unitdir:%restart_on_update kopano-spamd}
%files -n kopano-backup
%defattr(-,root,root)
%_sbindir/kopano-backup
%attr(0750,kopano,kopano) %dir %_localstatedir/log/kopano/
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/backup.cfg
%_mandir/man*/kopano-backup.*
%if 0%{?prefer_python3}
%python3_sitelib/kopano_backup/
%python3_sitelib/kopano_backup-*.egg-info
%else
%python_sitelib/kopano_backup/
%python_sitelib/kopano_backup-*.egg-info
%endif
%files -n kopano-dagent-pytils
%defattr(-,root,root)
%_sbindir/kopano-autorespond.py
%_sbindir/kopano-mr-accept
%_sbindir/kopano-mr-process
%_mandir/man*/kopano-mr-accept.*
%_mandir/man*/kopano-mr-process.*
%_datadir/kopano-dagent/
%_datadir/kopano-spooler/
%attr(0750,kopano,kopano) %dir %_localstatedir/lib/kopano/
%attr(0750,kopano,kopano) %_localstatedir/lib/kopano/dagent/
%attr(0750,kopano,kopano) %_localstatedir/lib/kopano/spooler/
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/autorespond.cfg
%if 0%{?prefer_python3}
%python3_sitelib/kopano_utils/
%python3_sitelib/kopano_utils-*.egg-info
%else
%python_sitelib/kopano_utils/
%python_sitelib/kopano_utils-*.egg-info
%endif
%if 0%{?with_python3}
%files -n kopano-grapi
%defattr(-,root,root)
%_sbindir/kopano-grapi
%_prefix/lib/systemd/system/kopano-grapi.service
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/grapi.cfg
%dir %_libexecdir/kopano/
%_libexecdir/kopano/kopano-mfr.py
%endif
%files -n kopano-migration-pst
%defattr(-,root,root)
%_sbindir/kopano-migration-pst
%attr(0750,kopano,kopano) %dir %_localstatedir/log/kopano/
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/migration-pst.cfg
%_mandir/man*/kopano-migration-pst.*
%if 0%{?prefer_python3}
%python3_sitelib/kopano_migration_pst/
%python3_sitelib/kopano_migration_pst-*.egg-info
%else
%python_sitelib/kopano_migration_pst/
%python_sitelib/kopano_migration_pst-*.egg-info
%endif
%files -n kopano-presence
%defattr(-,root,root)
%if 0%{?centos_version} == 600
%_initddir/kopano-presence
%endif
%_sbindir/kopano-presence
%dir %_prefix/lib/systemd/
%dir %_prefix/lib/systemd/system/
%_prefix/lib/systemd/system/kopano-presence.service
%attr(0750,kopano,kopano) %dir %_localstatedir/log/kopano/
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/presence.cfg
%if 0%{?prefer_python3}
%python3_sitelib/kopano_presence/
%python3_sitelib/kopano_presence-*.egg-info
%else
%python_sitelib/kopano_presence/
%python_sitelib/kopano_presence-*.egg-info
%endif
%files -n kopano-python-utils
%defattr(-,root,root)
%_bindir/kopano-set-oof
%_sbindir/kopano-archiver-*
%_sbindir/kopano-cachestat
%_sbindir/kopano-cli
%_sbindir/kopano-fix-ipm-subtree
%_sbindir/kopano-localize-folders
%_sbindir/kopano-mailbox-permissions
%_sbindir/kopano-recreate-systemfolders
%_sbindir/kopano-rules
%_sbindir/kopano-search-upgrade-findroots.py
%_mandir/man*/kopano-archiver-*.8*
%_mandir/man*/kopano-cachestat.*
%_mandir/man*/kopano-cli.*
%_mandir/man*/kopano-mailbox-permissions.*
%_mandir/man*/kopano-set-oof.*
%_docdir/kopano-gateway/
%dir %_docdir/kopano/
%_docdir/kopano/update-resource-recipients
%if 0%{?prefer_python3}
%python3_sitelib/kopano_cli/
%python3_sitelib/kopano_cli*.egg-info
%else
%python_sitelib/kopano_cli/
%python_sitelib/kopano_cli*.egg-info
%endif
%files -n kopano-search
%defattr(-,root,root)
%dir %_sysconfdir/kopano/
%dir %_sysconfdir/kopano/searchscripts/
%config(noreplace) %attr(0640,root,kopano) %_sysconfdir/kopano/searchscripts/*.db
%config(noreplace) %attr(-,root,kopano) %_sysconfdir/kopano/searchscripts/*.xslt
%config(noreplace) %attr(-,root,kopano) %_sysconfdir/kopano/searchscripts/attachments_parser
%config(noreplace) %attr(-,root,kopano) %_sysconfdir/kopano/searchscripts/zmktemp
%if 0%{?centos_version} == 600
%_initddir/kopano-search
%endif
%_sbindir/kopano-search
%_sbindir/kopano-search-xapian-compact.py
%_prefix/lib/systemd/system/kopano-search.service
%_mandir/man*/kopano-search.*
%attr(0750,kopano,kopano) %dir %_localstatedir/lib/kopano/
%attr(0750,kopano,kopano) %dir %_localstatedir/lib/kopano/search/
%attr(0750,kopano,kopano) %dir %_localstatedir/log/kopano/
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/search.cfg
%dir %_docdir/kopano/example-config/apparmor.d/
%_docdir/kopano/example-config/apparmor.d/usr.sbin.kopano-search
%if 0%{?prefer_python3}
%python3_sitelib/kopano_search/
%python3_sitelib/kopano_search-*.egg-info
%else
%python_sitelib/kopano_search/
%python_sitelib/kopano_search-*.egg-info
%endif
%files -n kopano-spamd
%defattr(-,root,root)
%if 0%{?centos_version} == 600
%_initddir/kopano-spamd
%endif
%_sbindir/kopano-spamd
%_prefix/lib/systemd/system/kopano-spamd.service
%attr(0750,kopano,kopano) %dir %_localstatedir/lib/kopano/
%attr(0750,kopano,kopano) %dir %_localstatedir/lib/kopano/spamd/
%_mandir/man*/kopano-spamd.*
%dir %_docdir/kopano/
%dir %_docdir/kopano/example-config/
%_docdir/kopano/example-config/spamd.cfg
%if 0%{?prefer_python3}
%python3_sitelib/kopano_spamd/
%python3_sitelib/kopano_spamd*.egg-info
%else
%python_sitelib/kopano_spamd/
%python_sitelib/kopano_spamd*.egg-info
%endif
%if 0%{?with_python2}
%files -n python2-kopano
%defattr(-,root,root)
%python_sitelib/kopano/
%python_sitelib/kopano-*.egg-info
%endif
%if 0%{?with_python3}
%files -n python3-kopano
%defattr(-,root,root)
%python3_sitelib/kopano/
%python3_sitelib/kopano-*.egg-info
%endif
%if 0%{?with_python3}
%files -n python3-kopano-rest
%defattr(-,root,root)
%python3_sitelib/kopano_rest
%python3_sitelib/kopano_rest-*.egg-info
%endif
%if 0%{?with_python2}
%files -n python2-zarafa
%defattr(-,root,root)
%python_sitelib/zarafa/
%python_sitelib/zarafa-*.egg-info
%endif
%if 0%{?with_python3}
%files -n python3-zarafa
%defattr(-,root,root)
%python3_sitelib/zarafa/
%python3_sitelib/zarafa-*.egg-info
%endif
%changelog