Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 730c960748 | |||
| cf40ffc141 | |||
| 659096dc13 | |||
| 5ddb4cd7b7 | |||
| edd3ca8bfe |
60
no-six.patch
60
no-six.patch
@@ -1,7 +1,8 @@
|
|||||||
diff -rU 3 a/vobject/base.py b/vobject/base.py
|
Index: vobject-0.9.9/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
|
--- vobject-0.9.9.orig/vobject/base.py
|
||||||
@@ -6,7 +6,7 @@
|
+++ vobject-0.9.9/vobject/base.py
|
||||||
|
@@ -6,7 +6,7 @@ import copy
|
||||||
import codecs
|
import codecs
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
@@ -10,7 +11,7 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Package version
|
# Package version
|
||||||
@@ -858,7 +858,7 @@
|
@@ -858,7 +858,7 @@ def getLogicalLines(fp, allowQP=True):
|
||||||
Quoted-printable data will be decoded in the Behavior decoding phase.
|
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.
|
# We're leaving this test in for awhile, because the unittest was ugly and dumb.
|
||||||
@@ -19,7 +20,7 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
>>> f=StringIO(testLines)
|
>>> f=StringIO(testLines)
|
||||||
>>> for n, l in enumerate(getLogicalLines(f)):
|
>>> for n, l in enumerate(getLogicalLines(f)):
|
||||||
... print("Line %s: %s" % (n, l[0]))
|
... print("Line %s: %s" % (n, l[0]))
|
||||||
@@ -881,7 +881,7 @@
|
@@ -881,7 +881,7 @@ def getLogicalLines(fp, allowQP=True):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
quotedPrintable = False
|
quotedPrintable = False
|
||||||
@@ -28,7 +29,7 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
logicalLine = newbuffer()
|
logicalLine = newbuffer()
|
||||||
lineNumber = 0
|
lineNumber = 0
|
||||||
lineStartNumber = 0
|
lineStartNumber = 0
|
||||||
@@ -996,7 +996,7 @@
|
@@ -996,7 +996,7 @@ def defaultSerialize(obj, buf, lineLengt
|
||||||
"""
|
"""
|
||||||
Encode and fold obj and its children, write to buf or return a string.
|
Encode and fold obj and its children, write to buf or return a string.
|
||||||
"""
|
"""
|
||||||
@@ -37,7 +38,7 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
|
|
||||||
if isinstance(obj, Component):
|
if isinstance(obj, Component):
|
||||||
if obj.group is None:
|
if obj.group is None:
|
||||||
@@ -1018,7 +1018,7 @@
|
@@ -1018,7 +1018,7 @@ def defaultSerialize(obj, buf, lineLengt
|
||||||
if obj.behavior and not startedEncoded:
|
if obj.behavior and not startedEncoded:
|
||||||
obj.behavior.encode(obj)
|
obj.behavior.encode(obj)
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
|
|
||||||
if obj.group is not None:
|
if obj.group is not None:
|
||||||
s.write(obj.group + '.')
|
s.write(obj.group + '.')
|
||||||
@@ -1082,7 +1082,7 @@
|
@@ -1082,7 +1082,7 @@ def readComponents(streamOrString, valid
|
||||||
Generate one Component at a time from a stream.
|
Generate one Component at a time from a stream.
|
||||||
"""
|
"""
|
||||||
if isinstance(streamOrString, basestring):
|
if isinstance(streamOrString, basestring):
|
||||||
@@ -55,10 +56,11 @@ diff -rU 3 a/vobject/base.py b/vobject/base.py
|
|||||||
else:
|
else:
|
||||||
stream = streamOrString
|
stream = streamOrString
|
||||||
|
|
||||||
diff -rU 3 a/vobject/hcalendar.py b/vobject/hcalendar.py
|
Index: vobject-0.9.9/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
|
--- vobject-0.9.9.orig/vobject/hcalendar.py
|
||||||
@@ -28,7 +28,7 @@
|
+++ vobject-0.9.9/vobject/hcalendar.py
|
||||||
|
@@ -28,7 +28,7 @@ and an equivalent event in hCalendar for
|
||||||
</span>
|
</span>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -67,7 +69,7 @@ diff -rU 3 a/vobject/hcalendar.py b/vobject/hcalendar.py
|
|||||||
|
|
||||||
from datetime import date, datetime, timedelta
|
from datetime import date, datetime, timedelta
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@
|
@@ -45,7 +45,7 @@ class HCalendar(VCalendar2_0):
|
||||||
Serialize iCalendar to HTML using the hCalendar microformat (http://microformats.org/wiki/hcalendar)
|
Serialize iCalendar to HTML using the hCalendar microformat (http://microformats.org/wiki/hcalendar)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -76,10 +78,11 @@ diff -rU 3 a/vobject/hcalendar.py b/vobject/hcalendar.py
|
|||||||
level = 0 # holds current indentation level
|
level = 0 # holds current indentation level
|
||||||
tabwidth = 3
|
tabwidth = 3
|
||||||
|
|
||||||
diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
Index: vobject-0.9.9/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
|
--- vobject-0.9.9.orig/vobject/icalendar.py
|
||||||
@@ -10,7 +10,7 @@
|
+++ vobject-0.9.9/vobject/icalendar.py
|
||||||
|
@@ -10,7 +10,7 @@ import string
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from dateutil import rrule, tz
|
from dateutil import rrule, tz
|
||||||
@@ -88,7 +91,7 @@ diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import pytz
|
import pytz
|
||||||
@@ -56,7 +56,7 @@
|
@@ -56,7 +56,7 @@ def toUnicode(s):
|
||||||
"""
|
"""
|
||||||
Take a string or unicode, turn it into unicode, decoding as utf-8
|
Take a string or unicode, turn it into unicode, decoding as utf-8
|
||||||
"""
|
"""
|
||||||
@@ -97,7 +100,7 @@ diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
|||||||
s = s.decode('utf-8')
|
s = s.decode('utf-8')
|
||||||
return s
|
return s
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@
|
@@ -135,7 +135,7 @@ class TimezoneComponent(Component):
|
||||||
good_lines = ('rdate', 'rrule', 'dtstart', 'tzname', 'tzoffsetfrom',
|
good_lines = ('rdate', 'rrule', 'dtstart', 'tzname', 'tzoffsetfrom',
|
||||||
'tzoffsetto', 'tzid')
|
'tzoffsetto', 'tzid')
|
||||||
# serialize encodes as utf-8, cStringIO will leave utf-8 alone
|
# serialize encodes as utf-8, cStringIO will leave utf-8 alone
|
||||||
@@ -106,7 +109,7 @@ diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
|||||||
# allow empty VTIMEZONEs
|
# allow empty VTIMEZONEs
|
||||||
if len(self.contents) == 0:
|
if len(self.contents) == 0:
|
||||||
return None
|
return None
|
||||||
@@ -569,7 +569,7 @@
|
@@ -569,7 +569,7 @@ class RecurringComponent(Component):
|
||||||
self.add(name).value = setlist
|
self.add(name).value = setlist
|
||||||
elif name in RULENAMES:
|
elif name in RULENAMES:
|
||||||
for rule in setlist:
|
for rule in setlist:
|
||||||
@@ -115,7 +118,7 @@ diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
|||||||
buf.write('FREQ=')
|
buf.write('FREQ=')
|
||||||
buf.write(FREQUENCIES[rule._freq])
|
buf.write(FREQUENCIES[rule._freq])
|
||||||
|
|
||||||
@@ -1010,7 +1010,7 @@
|
@@ -1010,7 +1010,7 @@ class VCalendar2_0(VCalendarComponentBeh
|
||||||
transformed = obj
|
transformed = obj
|
||||||
undoTransform = False
|
undoTransform = False
|
||||||
out = None
|
out = None
|
||||||
@@ -124,3 +127,16 @@ diff -rU 3 a/vobject/icalendar.py b/vobject/icalendar.py
|
|||||||
if obj.group is None:
|
if obj.group is None:
|
||||||
groupString = ''
|
groupString = ''
|
||||||
else:
|
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 "
|
||||||
|
|||||||
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Thu May 8 09:04:57 UTC 2025 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
|
|
||||||
|
|
||||||
%global modname vobject
|
%global modname vobject
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-vobject
|
Name: python-vobject
|
||||||
Version: 0.9.9
|
Version: 0.9.9
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python package for parsing and creating iCalendar and vCard files
|
Summary: Python package for parsing and creating iCalendar and vCard files
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/py-vobject/vobject/
|
URL: https://github.com/py-vobject/vobject/
|
||||||
Source: https://files.pythonhosted.org/packages/source/v/vobject/%{modname}-%{version}.tar.gz
|
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
|
# PATCH-FIX-UPSTREAM https://github.com/py-vobject/vobject/pull/87 remove six
|
||||||
@@ -32,15 +32,17 @@ Source1: radicale-1587.vcf
|
|||||||
Patch0: no-six.patch
|
Patch0: no-six.patch
|
||||||
BuildRequires: %{python_module PyICU}
|
BuildRequires: %{python_module PyICU}
|
||||||
BuildRequires: %{python_module devel >= 2.7}
|
BuildRequires: %{python_module devel >= 2.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module python-dateutil >= 2.7.0}
|
BuildRequires: %{python_module python-dateutil >= 2.7.0}
|
||||||
BuildRequires: %{python_module pytz}
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-python-dateutil >= 2.7.0
|
Requires: python-python-dateutil >= 2.7.0
|
||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(preun): update-alternatives
|
|
||||||
Recommends: python-PyICU
|
Recommends: python-PyICU
|
||||||
Provides: %{modname} = %{version}
|
Provides: %{modname} = %{version}
|
||||||
Obsoletes: %{modname} < 0.9.2
|
Obsoletes: %{modname} < 0.9.2
|
||||||
@@ -58,13 +60,13 @@ unicode strings.
|
|||||||
# Fix wrong-file-end-of-line-encoding
|
# Fix wrong-file-end-of-line-encoding
|
||||||
sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt
|
sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt
|
||||||
|
|
||||||
cp %{S:1} test_files/.
|
cp %{SOURCE1} test_files/.
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
for p in change_tz ics_diff ; do
|
for p in change_tz ics_diff ; do
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||||
done
|
done
|
||||||
@@ -73,13 +75,9 @@ done
|
|||||||
%check
|
%check
|
||||||
%pyunittest -v tests.py
|
%pyunittest -v tests.py
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative change_tz
|
%python_libalternatives_reset_alternative change_tz
|
||||||
%python_install_alternative ics_diff
|
%python_libalternatives_reset_alternative ics_diff
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative change_tz
|
|
||||||
%python_uninstall_alternative ics_diff
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE-2.0.txt
|
%license LICENSE-2.0.txt
|
||||||
@@ -87,6 +85,6 @@ done
|
|||||||
%python_alternative %{_bindir}/change_tz
|
%python_alternative %{_bindir}/change_tz
|
||||||
%python_alternative %{_bindir}/ics_diff
|
%python_alternative %{_bindir}/ics_diff
|
||||||
%{python_sitelib}/%{modname}/
|
%{python_sitelib}/%{modname}/
|
||||||
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
|
%{python_sitelib}/%{modname}-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user