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.1
Release:        1%{?dist}
Summary:        DAAP client implemented in Python

Group:          Development/Languages

License:        LGPLv2+
URL:            http://jerakeen.org/code/PythonDaap/
Source0:        http://jerakeen.org/files/PythonDaap-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: python-setuptools-devel

%description
A DAAP client implemented in Python.

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

%build
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build

%install
rm -rf %{buildroot}
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
 
%clean
rm -rf %{buildroot}

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

%changelog
* Fri Aug  1 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7.1-1
- Update to 0.7.1
- Drop cruft for compatibility with Fedora <= 7
- Drop upstreamed patch

* Mon Feb 11 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-6
- Rebuild for GCC 4.3
- Build egg files.

* Wed Aug 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-5
- Update license tag.

* Wed Aug 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.7-4
- Bump release and rebuild.

* 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