File vobject.spec of Package vobject

#
# spec file for package vobject
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


Name:           vobject
BuildRequires:  python-setuptools
Version:        0.8.1c
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Summary:        A python library to create and parse iCalendar and vCard objects
License:        Apache-2.0
Group:          Development/Languages/Python
Requires:       python-dateutil

%description
VObject simplifies the process of parsing and creating iCalendar and
vCard objects.



Authors:
--------
    Jeffrey Harris

%prep
%setup
sed -i -e "s@^use_setuptools@#use_setuptools@" setup.py

%build
python setup.py build

%install
python setup.py install \
    --prefix=/usr \
    --root=$RPM_BUILD_ROOT \
    --record-rpm=%{name}.files

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -f %{name}.files
%defattr(-,root,root)
%doc README.txt LICENSE-2.0.txt ACKNOWLEDGEMENTS.txt

%changelog