Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-vobject 
Version:        0.4.4 
Release:        2%{?dist}
Summary:        A python library for manipulating vCard and vCalendar files

Group:          Development/Languages
License:        Apache Software License
URL:            http://vobject.skyhouseconsulting.com/ 
Source0:        http://vobject.skyhouseconsulting.com/vobject-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-dateutil

%description
VObject is intended to be a full featured python library for parsing and
generating vCard and vCalendar files.


%prep
%setup -q -n vobject-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT \
    --single-version-externally-managed
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc ACKNOWLEDGEMENTS.txt
%doc LICENSE.txt
%doc README.txt
%dir %{python_sitelib}/vobject

%{python_sitelib}/vobject/__init__.py
%{python_sitelib}/vobject/__init__.pyc
%{python_sitelib}/vobject/base.py
%{python_sitelib}/vobject/base.pyc
%{python_sitelib}/vobject/behavior.py
%{python_sitelib}/vobject/behavior.pyc
%{python_sitelib}/vobject/icalendar.py
%{python_sitelib}/vobject/icalendar.pyc
%{python_sitelib}/vobject/hcalendar.py
%{python_sitelib}/vobject/hcalendar.pyc
%{python_sitelib}/vobject/vcard.py
%{python_sitelib}/vobject/vcard.pyc
%{python_sitelib}/vobject/win32tz.py
%{python_sitelib}/vobject/win32tz.pyc
                                                               
%{python_sitelib}/vobject/__init__.pyo
%{python_sitelib}/vobject/base.pyo
%{python_sitelib}/vobject/behavior.pyo
%{python_sitelib}/vobject/icalendar.pyo
%{python_sitelib}/vobject/hcalendar.pyo
%{python_sitelib}/vobject/vcard.pyo
%{python_sitelib}/vobject/win32tz.pyo

# Python egg info dir and contents
%{python_sitelib}/vobject*egg-info

%changelog
* Sat Dec 09 2006 James Bowes <jbowes@redhat.com> - 0.4.4-2
- Add BR: python-devel

* Sun Nov 26 2006 James Bowes <jbowes@redhat.com> - 0.4.4-1
- New version released.

* Sat Oct 07 2006 James Bowes <jbowes@redhat.com> - 0.4.3-1
- New version released.

* Sun Sep 10 2006 James Bowes <jbowes@redhat.com> 0.4.1-2
- Stop ghosting pyo files.

* Sat Aug 12 2006 James Bowes <jbowes@redhat.com> 0.4.1-1
- New version released.
- Handle egg info.

* Thu Jun 29 2006 James Bowes <jbowes@redhat.com> 0.3.0-1
- Initial packaging.