[python-icalendar] Initial package import

Stanislav Ochotnicky sochotni at fedoraproject.org
Mon Aug 23 08:21:21 UTC 2010


commit e066fe34a7baf2ceba69cd76442d8d146bdcb1ff
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Mon Aug 23 10:09:26 2010 +0200

    Initial package import

 .gitignore                      |    1 +
 python-icalendar-2.7-test.patch |   13 +++++++
 python-icalendar.spec           |   72 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 4 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1311cfb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+icalendar-2.1.tar.gz
diff --git a/python-icalendar-2.7-test.patch b/python-icalendar-2.7-test.patch
new file mode 100644
index 0000000..9ada433
--- /dev/null
+++ b/python-icalendar-2.7-test.patch
@@ -0,0 +1,13 @@
+--- src/icalendar/prop.py	2010-08-03 21:19:06.000000000 -0400
++++ src/icalendar/prop.py	2010-08-03 21:20:48.000000000 -0400
+@@ -1196,8 +1196,8 @@
+     '1.2;3.0'
+ 
+     >>> g = vGeo.from_ical('37.386013;-122.082932')
+-    >>> g
+-    (37.386012999999998, -122.082932)
++    >>> g == (float('37.386013'), float('-122.082932'))
++    True
+ 
+     >>> vGeo(g).ical()
+     '37.386013;-122.082932'
diff --git a/python-icalendar.spec b/python-icalendar.spec
new file mode 100644
index 0000000..8b59d38
--- /dev/null
+++ b/python-icalendar.spec
@@ -0,0 +1,72 @@
+%if 0%{?fedora} < 13 && 0%{?rhel} < 6
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
+
+Name:           python-icalendar
+Version:        2.1
+Release:        3%{?dist}
+Summary:        Parser/generator of iCalendar files following the RFC 2445
+
+Group:          Development/Libraries
+# test.py is GPLv2
+# parser is GPL
+# doctest.py is Public Domain
+# rest is LGPLv2
+License:        LGPLv2 and GPLv2 and GPLv2+ and Public Domain
+URL:            http://codespeak.net/icalendar/
+# source releases are done on pypi (homepage states 1.2 as latest version)
+Source0:        http://pypi.python.org/packages/source/i/icalendar/icalendar-%{version}.tar.gz
+Patch0:         %{name}-2.7-test.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python2-devel,python-setuptools
+
+%description
+iCalendar specification (RFC 2445) defines calendaring format used
+by many applications (Zimbra, Thunderbird and others). This
+module is a parser/generator of iCalendar files for use with
+Python. It follows the RFC 2445 (iCalendar) specification.
+The aim is to make a package that is fully compliant with RFC 2445,
+well designed, simple to use and well documented.
+
+%prep
+%setup -q -n icalendar-%{version}
+%patch0
+cp -R doc/ examples/
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+
+%check
+%{__python} test.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.txt CREDITS.txt CHANGES.txt HISTORY.txt TODO.txt INSTALL.txt
+%doc examples
+%{python_sitelib}/icalendar
+%{python_sitelib}/*.egg-info
+
+%changelog
+* Thu Aug  5 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.1-3
+- Install examples
+- Fix tests for Python 2.7 and run them
+- Add GPLv2 for parser.py to licenses
+
+* Wed Aug  4 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.1-2
+- State correct licenses
+
+* Tue Aug  3 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.1-1
+- Initial package version
+
diff --git a/sources b/sources
index e69de29..9098548 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+110f0e2609b52e76689796dc1a7476d6  icalendar-2.1.tar.gz


More information about the scm-commits mailing list