2017-07-04 05:24:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-vdirsyncer
|
|
|
|
#
|
2018-07-04 07:18:06 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-07-04 05:24:49 +00:00
|
|
|
#
|
|
|
|
# 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://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-07-04 07:18:06 +00:00
|
|
|
%define skip_python2 1
|
2017-07-04 05:24:49 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-vdirsyncer
|
2018-07-04 07:18:06 +00:00
|
|
|
Version: 0.16.6
|
2017-07-04 05:24:49 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Synchronize CalDAV and CardDAV
|
2017-07-04 12:41:09 +00:00
|
|
|
License: BSD-3-Clause
|
2017-07-04 05:24:49 +00:00
|
|
|
Group: Productivity/Networking/News/Utilities
|
2017-07-04 12:41:09 +00:00
|
|
|
Url: https://github.com/pimutils/vdirsyncer
|
2018-07-04 07:18:06 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdirsyncer-%{version}.tar.gz
|
|
|
|
Source1: vdirsyncer.service
|
|
|
|
Source2: vdirsyncer.timer
|
2017-07-04 05:24:49 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-07-04 07:18:06 +00:00
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2017-07-04 05:24:49 +00:00
|
|
|
Requires: python-atomicwrites >= 0.1.7
|
|
|
|
Requires: python-click >= 5.0
|
2018-07-04 07:18:06 +00:00
|
|
|
Requires: python-click-log >= 0.3
|
2017-07-04 05:24:49 +00:00
|
|
|
Requires: python-click-threading >= 0.2
|
|
|
|
Requires: python-icalendar >= 3.6
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-python-dateutil
|
|
|
|
Requires: python-pytz
|
|
|
|
Requires: python-requests >= 2.0.1
|
|
|
|
Requires: python-requests-toolbelt >= 0.4.0
|
|
|
|
Recommends: python-requests-oauthlib
|
2017-07-04 12:41:09 +00:00
|
|
|
%ifpython3
|
2017-07-04 05:24:49 +00:00
|
|
|
Provides: vdirsyncer == %{version}
|
2017-07-04 12:41:09 +00:00
|
|
|
Obsoletes: vdirsyncer < %{version}
|
|
|
|
%endif
|
2017-07-04 05:24:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Vdirsyncer synchronizes your calendars and addressbooks between two storages. The supported storages are CalDAV, CardDAV, arbitrary HTTP resources, vdir and some more.
|
|
|
|
It aims to be for CalDAV and CardDAV what OfflineIMAP is for IMAP.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n vdirsyncer-%{version}
|
|
|
|
rm -rf vdirsyncer.egg-info
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
|
|
|
|
2018-07-04 07:18:06 +00:00
|
|
|
mkdir -p %{buildroot}%{_userunitdir}
|
|
|
|
install -Dpm 0644 %{S:0} %{buildroot}%{_userunitdir}/vdirsyncer.service
|
|
|
|
install -Dpm 0644 %{S:1} %{buildroot}%{_userunitdir}/vdirsyncer.timer
|
|
|
|
|
2017-07-04 05:24:49 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root)
|
2018-07-04 07:18:06 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2017-07-04 05:24:49 +00:00
|
|
|
%python3_only %{_bindir}/vdirsyncer
|
|
|
|
%{python_sitelib}/*
|
2018-07-04 07:18:06 +00:00
|
|
|
%{_userunitdir}/vdirsyncer.service
|
|
|
|
%{_userunitdir}/vdirsyncer.timer
|
2017-07-04 05:24:49 +00:00
|
|
|
|
|
|
|
%changelog
|