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

Name:           python-daap
Version:        0.7
Release:        3%{?dist}
Summary:        DAAP client implemented in Python

Group:          Development/Languages

License:        LGPL
URL:            http://jerakeen.org/code/PythonDaap/
Source0:        http://jerakeen.org/files/PythonDaap-%{version}.tar.gz
Patch0:         python-daap-0.7-64bit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel

%description
A DAAP client implemented in Python.

%prep
%setup -q -n PythonDaap-%{version}
%patch0 -p1

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
 
%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGELOG examples/ README LICENSE PKG-INFO
%{python_sitearch}/*

%changelog
* Tue Apr  3 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-3
- Apply patch to fix crashes on 64bit machines from Hans de Goede

* Tue Mar 13 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-2
- Make sure updated spec gets published.
- Include PKG-INFO

* Mon Mar 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-1
- Update to 0.7
- Use LICENSE file from tarball

* Mon Mar 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.6-1
- Update to 0.6

* Mon Feb 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5-2
- Drop "A " from the summary
- Use "install -m 0644" instead of "cp".

* Mon Feb 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5-1
- Update to 0.5

* Thu Nov 16 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4-2
- Add a copy of the LICENSE
- Clarify the comment about the license.

* Tue Nov 14 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4-1
- First version for Fedora Extras