2017-06-30 11:23:42 +02:00
|
|
|
#
|
2020-01-24 12:47:04 +01:00
|
|
|
# spec file for package python-caldav
|
2017-06-30 11:23:42 +02:00
|
|
|
#
|
2020-01-24 12:47:04 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-06-30 11:23:42 +02: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.
|
|
|
|
|
2018-12-04 14:18:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-30 11:23:42 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%global modname caldav
|
|
|
|
Name: python-%{modname}
|
2020-01-24 12:47:04 +01:00
|
|
|
Version: 0.6.2
|
2017-06-30 11:23:42 +02:00
|
|
|
Release: 0
|
2017-07-10 14:34:50 +02:00
|
|
|
Summary: CalDAV (RFC4791) client library for Python
|
2018-12-04 14:18:44 +01:00
|
|
|
License: GPL-3.0-or-later AND Apache-2.0
|
2017-06-30 11:23:42 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 18:10:54 +01:00
|
|
|
URL: https://pypi.python.org/pypi/%{modname}
|
2017-06-30 11:23:42 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/caldav/%{modname}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module vobject}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-nose
|
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-six
|
|
|
|
Requires: python-vobject
|
|
|
|
BuildArch: noarch
|
2020-01-24 12:47:04 +01:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-pytz
|
|
|
|
Requires: python-tzlocal
|
|
|
|
%endif
|
2017-06-30 11:23:42 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This project is a CalDAV (RFC4791) client library for Python.
|
|
|
|
|
2017-07-10 14:34:50 +02:00
|
|
|
It can read all the tags, but only write a few things (create calendars,
|
|
|
|
events, modify events and properties).
|
2017-06-30 11:23:42 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
2019-03-22 12:19:19 +01:00
|
|
|
%check
|
|
|
|
# almost all tests are online, would require
|
|
|
|
# caldav server to run
|
|
|
|
|
2017-06-30 11:23:42 +02:00
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 18:10:54 +01:00
|
|
|
%license COPYING.APACHE COPYING.GPL
|
2017-06-30 11:23:42 +02:00
|
|
|
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/%{modname}/
|
|
|
|
|
|
|
|
%changelog
|