From f8b372f24da644df15d1fe3f36773d5ecb002b4b8d28e706dbdc55675cce6c3d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 18 Jun 2017 21:38:32 +0000 Subject: [PATCH] Accepting request 503298 from home:okurz:branches:devel:languages:python Submission of version 0.9.4.1; dependency for python-caldav OBS-URL: https://build.opensuse.org/request/show/503298 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + _service | 4 ++ python-vobject.changes | 20 ++++++++++ python-vobject.spec | 83 ++++++++++++++++++++++++++++++++++++++++++ vobject-0.9.4.1.tar.gz | 3 ++ 6 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 python-vobject.changes create mode 100644 python-vobject.spec create mode 100644 vobject-0.9.4.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1bd86b8 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/python-vobject.changes b/python-vobject.changes new file mode 100644 index 0000000..40d41b7 --- /dev/null +++ b/python-vobject.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Tue Jun 13 05:54:04 UTC 2017 - okurz@suse.com + +- Update to 0.9.4.1 + +------------------------------------------------------------------- +Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com + +- Fix update-alternatives implementation. + +------------------------------------------------------------------- +Tue Jul 5 10:15:57 UTC 2016 - axel.braun@gmx.de + +- add obsoletes: vobject to spec file (request from Factory) + +------------------------------------------------------------------- +Fri Jun 3 15:23:52 UTC 2016 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-vobject.spec b/python-vobject.spec new file mode 100644 index 0000000..9358671 --- /dev/null +++ b/python-vobject.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-vobject +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global modname vobject +Name: python-%{modname} +Version: 0.9.4.1 +Release: 0 +Summary: Python package for parsing and creating iCalendar and vCard files +License: Apache-2.0 +Group: Development/Languages/Python +Url: http://eventable.github.io/%{modname}/ +Source: https://files.pythonhosted.org/packages/source/v/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module PyICU} +BuildRequires: %{python_module devel >= 2.7} +BuildRequires: %{python_module python-dateutil >= 2.4.0} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-python-dateutil >= 2.4.0 +Requires: python-six +Requires(post): update-alternatives +Requires(preun): update-alternatives +Recommends: python-PyICU +Provides: %{modname} = %{version} +Obsoletes: %{modname} < 0.9.2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +Parses iCalendar and vCard files into Python data structures, +decoding the relevant encodings. Also serializes vobject data +structures to iCalendar, vCard, or (experimentally) hCalendar +unicode strings. + +%prep +%setup -q -n %{modname}-%{version} +# Fix wrong-file-end-of-line-encoding +sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt + +%build +%python_build + +%install +%python_install +for p in change_tz ics_diff ; do + %python_clone -a %{buildroot}%{_bindir}/$p +done +%fdupes %{buildroot}%{_prefix} + +%post +%python_install_alternative change_tz +%python_install_alternative ics_diff + +%preun +%python_uninstall_alternative change_tz +%python_uninstall_alternative ics_diff + +%files %{python_files} +%defattr(-,root,root) +%doc ACKNOWLEDGEMENTS.txt LICENSE-2.0.txt README.md +%python_alternative %{_bindir}/change_tz +%python_alternative %{_bindir}/ics_diff +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}-py*.egg-info + +%changelog diff --git a/vobject-0.9.4.1.tar.gz b/vobject-0.9.4.1.tar.gz new file mode 100644 index 0000000..dfef306 --- /dev/null +++ b/vobject-0.9.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:accc36d227ce02f3b258e666d504745e21a149a33c307a8d32d9fd439d2f5efb +size 57585