diff --git a/collective-icalendar-4d52777.tar.bz2 b/collective-icalendar-4d52777.tar.bz2 deleted file mode 100644 index a0af004..0000000 --- a/collective-icalendar-4d52777.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8aae788e16dc219152bdac238aa48ee7f3101e7eef8a74ba8702849866f8b5ea -size 121729 diff --git a/icalendar-3.0.1b2.tar.gz b/icalendar-3.0.1b2.tar.gz new file mode 100644 index 0000000..4f33196 --- /dev/null +++ b/icalendar-3.0.1b2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba75bb36f48b7c18b9e43ef570c2202874ad68ed1120d931d859df175dd19cd0 +size 41235 diff --git a/python-icalendar.changes b/python-icalendar.changes index 8acff99..fee56b1 100644 --- a/python-icalendar.changes +++ b/python-icalendar.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Jun 26 12:54:58 UTC 2012 - toddrme2178@gmail.com + +- Fix building on SLE 11 +- updated license to BSD-2-Clause +- Note 1: The fork has taken over maintainership and is now the + official version +- Note 2: The previous package was a git version from what was the + fork. The git tarball had version number 3.0, but for + completeness this changes entry includes changes since the last + official release, 2.2 +- Update to 3.0.1b2 + * For all TZID parameters in DATE-TIME properties, use timezone + identifiers (e.g. Europe/Vienna) instead of timezone names + (e.g. CET), as required by RFC5545. Timezone names are used + together with timezone identifiers in the Timezone components + * Timezone parsing, issues and test fixes. + * Since we use pytz for timezones, also use UTC tzinfo object + from the pytz library instead of own implementation. +- Update to 3.0.1b1 + * Update Release information. +- Update to 3.0 + * Add API for proper Timezone support. Allow creating ical + DATE-TIME strings with timezone information from Python + datetimes with pytz based timezone information and vice versa + * Unify API to only use to_ical and from_ical and remove string + casting as a requirement for Python 3 compatibility: + * New: to_ical. + * Old: ical, string, as_string and string casting via __str__ + and str. + * New: from_ical. + * Old: from_string. + ------------------------------------------------------------------- Thu Dec 15 10:34:22 UTC 2011 - coolo@suse.com diff --git a/python-icalendar.spec b/python-icalendar.spec index 90473a2..d4b8153 100644 --- a/python-icalendar.spec +++ b/python-icalendar.spec @@ -1,7 +1,7 @@ # # spec file for package python-icalendar # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 7/2011 - now open-slx GmbH # Copyright (c) 2009 - 7/2011 Sascha Manns # @@ -17,75 +17,52 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# # norootforbuild -%define module icalendar -%define gitid 4d52777 -%define tarname collective-%{module}-%{gitid} - -Name: python-%{module} -Version: 2.2 +%define modname icalendar +Name: python-%{modname} +Version: 3.0.1b2 Release: 0 Summary: Python parser/generator of iCalendar files package -License: LGPL-2.1+ and GPL-2.0+ +License: BSD-2-Clause Group: Development/Languages/Python -Url: https://github.com/collective/icalendar -Source0: %{tarname}.tar.bz2 +Url: http://icalendar.readthedocs.org/en/latest/index.html +Source0: http://pypi.python.org/packages/source/i/%{modname}/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-Sphinx BuildRequires: python-distribute +BuildRequires: python-pytz %{py_requires} -%if 0%{?suse_version} >= 1120 +%if 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%else BuildArch: noarch %endif +Provides: %{name}-doc = %{version} +Obsoletes: %{name}-doc < %{version} %description The iCalendar package is a parser/generator of iCalendar files for use with Python. It follows the RFC 2445 (iCalendar) specification. -%package doc -Summary: Python parser/generator of iCalendar files package -Requires: %{name} = %{version} - -%description doc -Documentation for package {name}, a python parser/generator of iCalendar files -package. - %prep -%setup -q -n %{tarname} +%setup -q -n %{modname}-%{version} %build python setup.py build -pushd docs -make html -rm -rf _build/html/.buildinfo -mv _build/html ../ -popd %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES -mkdir -p %{buildroot}/%{_defaultdocdir}/%{name} -install -m644 *.txt README.rst %{buildroot}/%{_defaultdocdir}/%{name}/ -cp -r html %{buildroot}/%{_defaultdocdir}/%{name}/ -%fdupes -s %{buildroot}/%{_defaultdocdir}/%{name} +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm %{buildroot}%{python_sitelib}/%{modname}/.caselessdict.py.swp +rm %{buildroot}%{python_sitelib}/%{modname}/tests/.groupscheduled2.ics.swp %fdupes -s %{buildroot} %clean rm -rf %{buildroot} -%files -f INSTALLED_FILES +%files %defattr(-,root,root) -%defattr(-, root, root) -%dir %{_defaultdocdir}/%{name} -%{_defaultdocdir}/%{name}/CREDITS.txt -%{_defaultdocdir}/%{name}/README.rst - -%files doc -%defattr(-, root, root) -%{_defaultdocdir}/%{name}/CHANGES.txt -%{_defaultdocdir}/%{name}/HISTORY.txt -%{_defaultdocdir}/%{name}/INSTALL.txt -%{_defaultdocdir}/%{name}/TODO.txt -%{_defaultdocdir}/%{name}/html +%doc README.rst docs/changelog.rst +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info/ %changelog