14
0

7 Commits

Author SHA256 Message Date
b825758cb2 Accepting request 1275466 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1275466
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vobject?expand=0&rev=9
2025-05-09 16:39:22 +00:00
b8f31aeab8 - verion 0.9.9
* Added product version to PRODID tag in iCalendar headers
  * Added support for GEO tags in vCards
  * radicale-1587.vcf added (missing in release tarball)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=20
2025-05-08 10:49:31 +00:00
fbacdc5439 Accepting request 1232101 from devel:languages:python
- Use regular %%pynittest macro instead of running the test
  script directly.
- add patch no-six.patch to get rid of six

OBS-URL: https://build.opensuse.org/request/show/1232101
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vobject?expand=0&rev=8
2024-12-19 20:40:16 +00:00
06c12611ef - Use regular %%pynittest macro instead of running the test
script directly.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=18
2024-12-19 09:36:00 +00:00
516c1e0d5f - add patch no-six.patch to get rid of six
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=17
2024-12-19 09:32:00 +00:00
5f3f04cf68 Accepting request 1221502 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vobject?expand=0&rev=7
2024-11-06 15:50:01 +00:00
39185a4cf5 - Update to 0.9.8
* Accumulated bug fixes
- Move %python_uninstall_alternative from %preun to %postun
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=15
2024-11-05 15:39:04 +00:00
3 changed files with 36 additions and 61 deletions

View File

@@ -1,8 +1,7 @@
Index: vobject-0.9.9/vobject/base.py
===================================================================
--- vobject-0.9.9.orig/vobject/base.py
+++ vobject-0.9.9/vobject/base.py
@@ -6,7 +6,7 @@ import copy
diff -rU 3 a/vobject/base.py b/vobject/base.py
--- a/vobject/base.py 2024-12-16 08:15:20.000000000 +0100
+++ b/vobject/base.py 2025-05-08 10:54:19.517509757 +0200
@@ -6,7 +6,7 @@
import codecs
import logging
import re
@@ -11,7 +10,7 @@ Index: vobject-0.9.9/vobject/base.py
import sys
# Package version
@@ -858,7 +858,7 @@ def getLogicalLines(fp, allowQP=True):
@@ -858,7 +858,7 @@
Quoted-printable data will be decoded in the Behavior decoding phase.
# We're leaving this test in for awhile, because the unittest was ugly and dumb.
@@ -20,7 +19,7 @@ Index: vobject-0.9.9/vobject/base.py
>>> f=StringIO(testLines)
>>> for n, l in enumerate(getLogicalLines(f)):
... print("Line %s: %s" % (n, l[0]))
@@ -881,7 +881,7 @@ def getLogicalLines(fp, allowQP=True):
@@ -881,7 +881,7 @@
else:
quotedPrintable = False
@@ -29,7 +28,7 @@ Index: vobject-0.9.9/vobject/base.py
logicalLine = newbuffer()
lineNumber = 0
lineStartNumber = 0
@@ -996,7 +996,7 @@ def defaultSerialize(obj, buf, lineLengt
@@ -996,7 +996,7 @@
"""
Encode and fold obj and its children, write to buf or return a string.
"""
@@ -38,7 +37,7 @@ Index: vobject-0.9.9/vobject/base.py
if isinstance(obj, Component):
if obj.group is None:
@@ -1018,7 +1018,7 @@ def defaultSerialize(obj, buf, lineLengt
@@ -1018,7 +1018,7 @@
if obj.behavior and not startedEncoded:
obj.behavior.encode(obj)
@@ -47,7 +46,7 @@ Index: vobject-0.9.9/vobject/base.py
if obj.group is not None:
s.write(obj.group + '.')
@@ -1082,7 +1082,7 @@ def readComponents(streamOrString, valid
@@ -1082,7 +1082,7 @@
Generate one Component at a time from a stream.
"""
if isinstance(streamOrString, basestring):
@@ -56,11 +55,10 @@ Index: vobject-0.9.9/vobject/base.py
else:
stream = streamOrString
Index: vobject-0.9.9/vobject/hcalendar.py
===================================================================
--- vobject-0.9.9.orig/vobject/hcalendar.py
+++ vobject-0.9.9/vobject/hcalendar.py
@@ -28,7 +28,7 @@ and an equivalent event in hCalendar for
diff -rU 3 a/vobject/hcalendar.py b/vobject/hcalendar.py
--- a/vobject/hcalendar.py 2024-10-01 16:46:45.000000000 +0200
+++ b/vobject/hcalendar.py 2025-05-08 10:55:12.047890349 +0200
@@ -28,7 +28,7 @@
</span>
"""
@@ -69,7 +67,7 @@ Index: vobject-0.9.9/vobject/hcalendar.py
from datetime import date, datetime, timedelta
@@ -45,7 +45,7 @@ class HCalendar(VCalendar2_0):
@@ -45,7 +45,7 @@
Serialize iCalendar to HTML using the hCalendar microformat (http://microformats.org/wiki/hcalendar)
"""
@@ -78,11 +76,10 @@ Index: vobject-0.9.9/vobject/hcalendar.py
level = 0 # holds current indentation level
tabwidth = 3
Index: vobject-0.9.9/vobject/icalendar.py
===================================================================
--- vobject-0.9.9.orig/vobject/icalendar.py
+++ vobject-0.9.9/vobject/icalendar.py
@@ -10,7 +10,7 @@ import string
diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
--- a/vobject/icalendar.py 2024-12-16 08:09:54.000000000 +0100
+++ b/vobject/icalendar.py 2025-05-08 10:57:12.542858557 +0200
@@ -10,7 +10,7 @@
import base64
from dateutil import rrule, tz
@@ -91,7 +88,7 @@ Index: vobject-0.9.9/vobject/icalendar.py
try:
import pytz
@@ -56,7 +56,7 @@ def toUnicode(s):
@@ -56,7 +56,7 @@
"""
Take a string or unicode, turn it into unicode, decoding as utf-8
"""
@@ -100,7 +97,7 @@ Index: vobject-0.9.9/vobject/icalendar.py
s = s.decode('utf-8')
return s
@@ -135,7 +135,7 @@ class TimezoneComponent(Component):
@@ -135,7 +135,7 @@
good_lines = ('rdate', 'rrule', 'dtstart', 'tzname', 'tzoffsetfrom',
'tzoffsetto', 'tzid')
# serialize encodes as utf-8, cStringIO will leave utf-8 alone
@@ -109,7 +106,7 @@ Index: vobject-0.9.9/vobject/icalendar.py
# allow empty VTIMEZONEs
if len(self.contents) == 0:
return None
@@ -569,7 +569,7 @@ class RecurringComponent(Component):
@@ -569,7 +569,7 @@
self.add(name).value = setlist
elif name in RULENAMES:
for rule in setlist:
@@ -118,7 +115,7 @@ Index: vobject-0.9.9/vobject/icalendar.py
buf.write('FREQ=')
buf.write(FREQUENCIES[rule._freq])
@@ -1010,7 +1010,7 @@ class VCalendar2_0(VCalendarComponentBeh
@@ -1010,7 +1010,7 @@
transformed = obj
undoTransform = False
out = None
@@ -127,16 +124,3 @@ Index: vobject-0.9.9/vobject/icalendar.py
if obj.group is None:
groupString = ''
else:
Index: vobject-0.9.9/setup.py
===================================================================
--- vobject-0.9.9.orig/setup.py
+++ vobject-0.9.9/setup.py
@@ -49,7 +49,7 @@ setup(name = "vobject",
include_package_data = True,
install_requires=["python-dateutil >= 2.5.0; python_version < '3.10'",
"python-dateutil >= 2.7.0; python_version >= '3.10'",
- "pytz", 'six'],
+ "pytz"],
platforms = ["any"],
packages = find_packages(),
description = "A full-featured Python package for parsing and creating "

View File

@@ -1,14 +1,3 @@
-------------------------------------------------------------------
Wed Jun 25 12:51:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Jun 24 02:58:12 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Refresh no-six.patch.
-------------------------------------------------------------------
Thu May 8 09:04:57 UTC 2025 - Axel Braun <axel.braun@gmx.de>

View File

@@ -17,13 +17,13 @@
%global modname vobject
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-vobject
Version: 0.9.9
Release: 0
Summary: Python package for parsing and creating iCalendar and vCard files
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/py-vobject/vobject/
Source: https://files.pythonhosted.org/packages/source/v/vobject/%{modname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/py-vobject/vobject/pull/87 remove six
@@ -32,17 +32,15 @@ Source1: radicale-1587.vcf
Patch0: no-six.patch
BuildRequires: %{python_module PyICU}
BuildRequires: %{python_module devel >= 2.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil >= 2.7.0}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-python-dateutil >= 2.7.0
Requires: python-pytz
Requires(post): update-alternatives
Requires(preun): update-alternatives
Recommends: python-PyICU
Provides: %{modname} = %{version}
Obsoletes: %{modname} < 0.9.2
@@ -60,13 +58,13 @@ unicode strings.
# Fix wrong-file-end-of-line-encoding
sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt
cp %{SOURCE1} test_files/.
cp %{S:1} test_files/.
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
for p in change_tz ics_diff ; do
%python_clone -a %{buildroot}%{_bindir}/$p
done
@@ -75,9 +73,13 @@ done
%check
%pyunittest -v tests.py
%pre
%python_libalternatives_reset_alternative change_tz
%python_libalternatives_reset_alternative ics_diff
%post
%python_install_alternative change_tz
%python_install_alternative ics_diff
%postun
%python_uninstall_alternative change_tz
%python_uninstall_alternative ics_diff
%files %{python_files}
%license LICENSE-2.0.txt
@@ -85,6 +87,6 @@ done
%python_alternative %{_bindir}/change_tz
%python_alternative %{_bindir}/ics_diff
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}.dist-info
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%changelog