diff --git a/python-vdirsyncer.changes b/python-vdirsyncer.changes
index 0e48866..bf8dd9c 100644
--- a/python-vdirsyncer.changes
+++ b/python-vdirsyncer.changes
@@ -1,3 +1,29 @@
+-------------------------------------------------------------------
+Wed Jul 4 06:23:48 UTC 2018 - dmacvicar@suse.de
+
+- Add systemd unit and timer from upstream git
+- Make package python3 only
+- Update to version 0.16.6
+ * Documentation building no longer needs a working installation
+ of vdirsyncer.
+- Changes from version 0.16.5
+ * click-log 0.3 is required.
+ * All output will now happen on stderr (because of the upgrade of ``click-log``).
+- Changes from version 0.16.4
+ * Fix tests for new Hypothesis version. (Literally no other change included)
+- Changes from version 0.16.3
+ * First version with custom Debian and Ubuntu packages. See :gh:`663`.
+ * Remove invalid ASCII control characters from server responses. See :gh:`626`.
+ * Python 3.3 is no longer supported. See :ghpr:`674`.
+- Changes from version 0.16.2
+ * Fix crash when using daterange or item_type filters in
+ :storage:`google_calendar`, see :gh:`657`.
+ * Fixes for new version ``0.2.0`` of ``click-log``. The version
+ requirements for the dependency ``click-log`` changed.
+- Changes from version 0.16.1
+ * Removed remoteStorage support, see :gh:`647`.
+ * Fixed test failures caused by latest requests version, see :gh:`660`.
+
-------------------------------------------------------------------
Tue Jul 4 12:30:14 UTC 2017 - aloisio@gmx.com
diff --git a/python-vdirsyncer.spec b/python-vdirsyncer.spec
index 88725a5..f70c777 100644
--- a/python-vdirsyncer.spec
+++ b/python-vdirsyncer.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-vdirsyncer
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,26 @@
#
+%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-vdirsyncer
-Version: 0.16.0
+Version: 0.16.6
Release: 0
Summary: Synchronize CalDAV and CardDAV
License: BSD-3-Clause
Group: Productivity/Networking/News/Utilities
Url: https://github.com/pimutils/vdirsyncer
-Source: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdirsyncer-%{version}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/v/vdirsyncer/vdirsyncer-%{version}.tar.gz
+Source1: vdirsyncer.service
+Source2: vdirsyncer.timer
BuildRequires: %{python_module setuptools_scm}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+BuildRequires: systemd
+BuildRequires: systemd-rpm-macros
Requires: python-atomicwrites >= 0.1.7
Requires: python-click >= 5.0
-Requires: python-click-log >= 0.1.3
+Requires: python-click-log >= 0.3
Requires: python-click-threading >= 0.2
Requires: python-icalendar >= 3.6
Requires: python-lxml
@@ -62,10 +67,17 @@ rm -rf vdirsyncer.egg-info
%python_install
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
+mkdir -p %{buildroot}%{_userunitdir}
+install -Dpm 0644 %{S:0} %{buildroot}%{_userunitdir}/vdirsyncer.service
+install -Dpm 0644 %{S:1} %{buildroot}%{_userunitdir}/vdirsyncer.timer
+
%files %{python_files}
%defattr(-,root,root)
-%doc LICENSE README.rst
+%doc README.rst
+%license LICENSE
%python3_only %{_bindir}/vdirsyncer
%{python_sitelib}/*
+%{_userunitdir}/vdirsyncer.service
+%{_userunitdir}/vdirsyncer.timer
%changelog
diff --git a/vdirsyncer-0.16.0.tar.gz b/vdirsyncer-0.16.0.tar.gz
deleted file mode 100644
index 75afbcd..0000000
--- a/vdirsyncer-0.16.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:cfdbfa799373ca08f533bfc57bd0d3afefe8a2c5f845782db38b889a19aca958
-size 113408
diff --git a/vdirsyncer-0.16.6.tar.gz b/vdirsyncer-0.16.6.tar.gz
new file mode 100644
index 0000000..655efc1
--- /dev/null
+++ b/vdirsyncer-0.16.6.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c6b060460ea83e614d4253b53a7d1e0c0e64a8cea1aa6a7b59d9b15158c1381e
+size 113249
diff --git a/vdirsyncer.service b/vdirsyncer.service
new file mode 100644
index 0000000..544f6f6
--- /dev/null
+++ b/vdirsyncer.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Synchronize calendars and contacts
+Documentation=https://vdirsyncer.readthedocs.org/
+
+[Service]
+ExecStart=/usr/bin/vdirsyncer sync
+Type=oneshot
diff --git a/vdirsyncer.timer b/vdirsyncer.timer
new file mode 100644
index 0000000..4f7ea64
--- /dev/null
+++ b/vdirsyncer.timer
@@ -0,0 +1,1319 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ vdirsyncer/vdirsyncer.timer at master · pimutils/vdirsyncer · GitHub
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Permalink
+
+
+
+
+
+
+
Join GitHub today
+
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
+
Sign up
+
+
+
+
+
+
+
+
+
+
+
+
+ 1bf863c
+
+ May 24, 2017
+
+
+
+
+
+ 1
+ contributor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [Unit]
+
+
+
+ Description=Synchronize vdirs
+
+
+
+
+
+
+
+
+ [Timer]
+
+
+
+ OnBootSec=5m
+
+
+
+ OnUnitActiveSec=15m
+
+
+
+ AccuracySec=5m
+
+
+
+
+
+
+
+
+ [Install]
+
+
+
+ WantedBy=timers.target
+
+
+
+
+
+
+
+
+
+
Jump to Line
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ You can’t perform that action at this time.
+
+
+
+
+
+
+
+
+
+
+
+
+
You signed in with another tab or window. Reload to refresh your session.
+
You signed out in another tab or window. Reload to refresh your session.
+
+
+
+
+
+
+
+
+ Press h to open a hovercard with more details.
+
+
+
+
+
+