2011-08-24 20:03:00 +00:00
|
|
|
#
|
2011-12-12 09:02:28 +00:00
|
|
|
# spec file for package python-icalendar
|
|
|
|
|
#
|
2015-04-23 07:07:07 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-28 15:27:56 +00:00
|
|
|
# Copyright (c) 7/2011 - now open-slx GmbH <Sascha.Manns@open-slx.de>
|
|
|
|
|
# Copyright (c) 2009 - 7/2011 Sascha Manns <saigkill@opensuse.org>
|
2011-12-12 09:02:28 +00:00
|
|
|
#
|
2011-08-28 15:27:56 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2011-08-24 16:13:08 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
2011-12-12 09:02:28 +00:00
|
|
|
|
2012-09-09 10:49:07 +00:00
|
|
|
|
2012-06-27 18:43:26 +00:00
|
|
|
%define modname icalendar
|
|
|
|
|
Name: python-%{modname}
|
2015-04-23 07:07:07 +00:00
|
|
|
Version: 3.9.0
|
2011-12-15 12:25:46 +00:00
|
|
|
Release: 0
|
2011-12-12 09:02:28 +00:00
|
|
|
Summary: Python parser/generator of iCalendar files package
|
2012-06-29 16:59:10 +00:00
|
|
|
License: BSD-2-Clause
|
2011-12-12 09:02:28 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-10-24 11:06:47 +00:00
|
|
|
# please see https://github.com/collective/icalendar/issues/2 for re-licensing discussion
|
2012-09-09 10:49:07 +00:00
|
|
|
Url: http://icalendar.readthedocs.org
|
2015-04-23 07:07:07 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/i/icalendar/%{modname}-%{version}.tar.gz
|
2011-12-12 09:02:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-15 12:25:46 +00:00
|
|
|
BuildRequires: fdupes
|
2015-04-23 07:07:07 +00:00
|
|
|
BuildRequires: python-dateutil
|
2012-09-09 10:49:07 +00:00
|
|
|
BuildRequires: python-devel
|
2015-04-23 07:07:07 +00:00
|
|
|
BuildRequires: python-pytest
|
2012-06-27 18:43:26 +00:00
|
|
|
BuildRequires: python-pytz
|
2013-10-24 11:06:47 +00:00
|
|
|
BuildRequires: python-setuptools
|
2015-04-23 07:07:07 +00:00
|
|
|
Requires: python-dateutil
|
|
|
|
|
Requires: python-pytz
|
2011-08-28 15:15:40 +00:00
|
|
|
%{py_requires}
|
2012-06-27 18:43:26 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
2013-01-02 21:47:53 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
2012-06-27 18:43:26 +00:00
|
|
|
%else
|
2011-12-12 09:02:28 +00:00
|
|
|
BuildArch: noarch
|
2011-08-28 15:15:40 +00:00
|
|
|
%endif
|
2012-09-09 10:49:07 +00:00
|
|
|
Provides: %{name}-doc = %{version}
|
|
|
|
|
Obsoletes: %{name}-doc < %{version}
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The iCalendar package is a parser/generator of iCalendar files for use
|
|
|
|
|
with Python. It follows the RFC 2445 (iCalendar) specification.
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-06-27 18:43:26 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-08-28 15:15:40 +00:00
|
|
|
python setup.py build
|
2011-08-24 16:13:08 +00:00
|
|
|
|
|
|
|
|
%install
|
2012-06-27 18:43:26 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2011-08-28 15:44:10 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2011-08-24 16:13:08 +00:00
|
|
|
|
2015-04-23 07:07:07 +00:00
|
|
|
%check
|
|
|
|
|
py.test src
|
|
|
|
|
|
2012-06-27 18:43:26 +00:00
|
|
|
%files
|
2011-08-24 16:13:08 +00:00
|
|
|
%defattr(-,root,root)
|
2014-11-06 08:25:57 +00:00
|
|
|
%doc README.rst LICENSE.rst CHANGES.rst
|
2012-06-27 18:43:26 +00:00
|
|
|
%{python_sitelib}/%{modname}/
|
|
|
|
|
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info/
|
2011-08-24 16:13:08 +00:00
|
|
|
|
2011-12-12 09:02:28 +00:00
|
|
|
%changelog
|