2011-08-24 20:03:00 +00:00
|
|
|
#
|
2024-03-22 20:44:27 +00:00
|
|
|
# spec file for package python-icalendar
|
2011-12-12 09:02:28 +00:00
|
|
|
#
|
2025-07-02 03:13:31 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-08-23 08:17:16 +00:00
|
|
|
# Copyright (c) 2011 open-slx GmbH <Sascha.Manns@open-slx.de>
|
2017-07-04 12:43:02 +00:00
|
|
|
# Copyright (c) 2009 - 7/2011 Sascha Manns <saigkill@opensuse.org>
|
2011-12-12 09:02:28 +00:00
|
|
|
#
|
2011-08-28 15:27:56 +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.
|
|
|
|
|
|
2018-11-22 10:33:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-24 16:13:08 +00:00
|
|
|
#
|
2011-12-12 09:02:28 +00:00
|
|
|
|
2012-09-09 10:49:07 +00:00
|
|
|
|
2012-06-27 18:43:26 +00:00
|
|
|
%define modname icalendar
|
2023-12-17 02:06:36 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-06-27 18:43:26 +00:00
|
|
|
Name: python-%{modname}
|
2025-07-02 03:13:31 +00:00
|
|
|
Version: 6.3.1
|
2011-12-15 12:25:46 +00:00
|
|
|
Release: 0
|
2011-12-12 09:02:28 +00:00
|
|
|
Summary: Python parser/generator of iCalendar files package
|
2012-06-29 16:59:10 +00:00
|
|
|
License: BSD-2-Clause
|
2018-08-23 08:17:16 +00:00
|
|
|
URL: https://github.com/collective/icalendar
|
2017-07-04 12:43:02 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/i/icalendar/%{modname}-%{version}.tar.gz
|
2025-07-02 03:13:31 +00:00
|
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
|
|
|
BuildRequires: %{python_module hatchling}
|
2018-08-29 10:39:05 +00:00
|
|
|
BuildRequires: %{python_module hypothesis}
|
2023-12-17 02:06:36 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-07-04 12:43:02 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module python-dateutil}
|
|
|
|
|
BuildRequires: %{python_module pytz}
|
2025-07-02 03:13:31 +00:00
|
|
|
BuildRequires: %{python_module tzdata}
|
2011-12-15 12:25:46 +00:00
|
|
|
BuildRequires: fdupes
|
2017-07-04 12:43:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2016-02-26 15:09:52 +00:00
|
|
|
Requires: python-python-dateutil
|
2025-07-02 03:13:31 +00:00
|
|
|
Requires: python-tzdata
|
|
|
|
|
Suggests: python-pytz
|
2020-05-25 13:34:28 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-03-22 20:44:27 +00:00
|
|
|
Requires(postun): update-alternatives
|
2012-09-09 10:49:07 +00:00
|
|
|
Provides: %{name}-doc = %{version}
|
|
|
|
|
Obsoletes: %{name}-doc < %{version}
|
2017-07-04 12:43:02 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The iCalendar package is a parser/generator of iCalendar files for use
|
|
|
|
|
with Python. It follows the RFC 2445 (iCalendar) specification.
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-06-27 18:43:26 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-12-17 02:06:36 +00:00
|
|
|
%pyproject_wheel
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-12-17 02:06:36 +00:00
|
|
|
%pyproject_install
|
2020-05-25 13:34:28 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/icalendar
|
2019-08-21 14:46:53 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-08-24 16:13:08 +00:00
|
|
|
|
2015-04-23 07:07:07 +00:00
|
|
|
%check
|
2024-01-17 07:19:08 +00:00
|
|
|
# some dependencies are too old in Leap
|
|
|
|
|
%if 0%{?suse_version} >= 1550
|
2025-07-02 03:13:31 +00:00
|
|
|
donttest="(test_timezone_names_are_known and tzp_0-America/Coyhaique)"
|
|
|
|
|
donttest+=" or (test_timezone_names_are_known and tzp_0-Asia/Beijing)"
|
|
|
|
|
%pytest -k "not ($donttest)" src
|
2024-01-20 12:19:44 +00:00
|
|
|
%endif
|
2015-04-23 07:07:07 +00:00
|
|
|
|
2020-05-25 13:34:28 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative icalendar
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative icalendar
|
|
|
|
|
|
2017-07-04 12:43:02 +00:00
|
|
|
%files %{python_files}
|
2018-08-23 08:17:16 +00:00
|
|
|
%license LICENSE.rst
|
2025-07-02 03:13:31 +00:00
|
|
|
%doc README.rst docs/changelog.rst
|
2020-05-25 13:34:28 +00:00
|
|
|
%python_alternative %{_bindir}/icalendar
|
2023-12-17 02:06:36 +00:00
|
|
|
%{python_sitelib}/%{modname}
|
|
|
|
|
%{python_sitelib}/%{modname}-%{version}.dist-info
|
2011-08-24 16:13:08 +00:00
|
|
|
|
2011-12-12 09:02:28 +00:00
|
|
|
%changelog
|