forked from pool/python-caldav
Daniel Garcia
46e714b95a
gh#python-caldav/caldav#228 - Remove python_module macro definition - Update to 0.10.0 ## Quick summary * Work on a universal search method * Refactoring, consolidated lots of slightly duplicated code into one method to rule them all * Support for things needed by the calendar-cli utility, like search by categories * Support for completion of recurring tasks * More utilities for tasks * Uncomplete-method ... for undoing the complete (recurrences not supported though) * get/set duration/dtstart/dtend (arguably this belongs to vobject and/or icalendar) * Other improvements: * picklable URLs * display_name convenience method * possible to set child/parent relationships * Potential bugfix: sequence number may need to be increased when saving something to the calendar (not backported, this may have side effects) ## Search method Calendar now has a method search. Here is some information from the docstring: Parameters supported: * xml - use this search query, and ignore other filter parameters * comp_class - set to event, todo or journal to restrict search to this resource type. Some server implementations require this to be set. * todo - sets comp_class to Todo, and restricts search to pending tasks, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-caldav?expand=0&rev=24
74 lines
2.2 KiB
RPMSpec
74 lines
2.2 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global modname caldav
|
|
Name: python-%{modname}
|
|
Version: 0.10.0
|
|
Release: 0
|
|
Summary: CalDAV (RFC4791) client library for Python
|
|
License: Apache-2.0 AND GPL-3.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://pypi.python.org/pypi/%{modname}
|
|
Source: https://files.pythonhosted.org/packages/source/c/caldav/%{modname}-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM drop-python2-support.patch gh#python-caldav/caldav#228
|
|
Patch1: drop-python2-support.patch
|
|
BuildRequires: %{python_module lxml}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module vobject}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-lxml
|
|
Requires: python-requests
|
|
Requires: python-vobject
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Requires: python-pytz
|
|
Requires: python-tzlocal
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
This project is a CalDAV (RFC4791) client library for Python.
|
|
|
|
It can read all the tags, but only write a few things (create calendars,
|
|
events, modify events and properties).
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
# Remove shebangs
|
|
find caldav -name "*.py" | xargs sed -i '1 {/^#!/d}'
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%check
|
|
# almost all tests are online, would require
|
|
# caldav server to run
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%license COPYING.APACHE COPYING.GPL
|
|
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
|
|
%{python_sitelib}/%{modname}/
|
|
|
|
%changelog
|