%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")

Summary:	Python framework to participate in digital living networks
Name:		python-Coherence
Version:	0.5.8
Release:	2%{?_dist_release}
License:	MIT
Group:		Development/Languages
URL:		https://coherence.beebits.net/
Source:		https://coherence.beebits.net/download/Coherence-%{version}.tar.gz

Requires:	python-setuptools
Requires:	python-configobj
BuildRequires:	python-devel
BuildRequires:	python-setuptools
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Buildarch:	noarch

%description
Coherence is a framework written in Python enabling applications to participate
in digital living networks, such as the UPnP universe.

%description -l ja
Coherence はアプリケーションをDLNA(Digital Living Network Alliance)やUPnPに
参加できるようにする Python で書かれたフレームワークです。


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


%build
%{__python} setup.py build


%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__python} setup.py install \
    --single-version-externally-managed \
    -O1 --skip-build --root ${RPM_BUILD_ROOT}


%clean
%{__rm} -rf ${RPM_BUILD_ROOT}


%files
%defattr(-,root,root,-)
%doc LICENCE README docs/*
%exclude %{_bindir}/applet-coherence
%{_bindir}/coherence
%{python_sitelib}/Coherence-*.egg-info/
%{python_sitelib}/coherence/
# We don't want this in the package
%exclude %{python_sitelib}/misc/


%changelog
* Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.5.8-2
- rebuild with python-2.6

* Wed Dec 24 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5.8-1
- initial build for Vine Linux based on fedora package

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.8-2
- Rebuild for Python 2.6

* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.5.8-1
- Update to 0.5.8.
- Don't include new "misc" directory, as its location is ugly!
- Don't include applet-coherence as it probably requires the "misc" directory.
- Remove all reqs but python-configobj, as it seems to be the only one left.

* Sun Feb  3 2008 Matthias Saou <http://freshrpms.net/> 0.5.0-1
- Update to 0.5.0.

* Wed Aug 29 2007 Matthias Saou <http://freshrpms.net/> 0.4.0-2
- Update python-setuptools build requirement to new python-setuptools-devel.

* Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 0.4.0-1
- Update to 0.4.0.
- No need to update License field, MIT is already correct.

* Tue Jul 24 2007 Matthias Saou <http://freshrpms.net/> 0.3.0-1
- Update to 0.3.0.

* Tue May  8 2007 Matthias Saou <http://freshrpms.net/> 0.2.1-3
- Rename Coherence -> python-Coherence to match our python naming guidelines.

* Mon May  7 2007 Matthias Saou <http://freshrpms.net/> 0.2.1-2
- Rename coherence -> Coherence to match upstream and our naming guidelines.
- Obsolete coherence < 0.2.1-2 but don't provide it since elisa's requirement
  has been updated to match the name change and nothing else requires it.

* Fri Apr 20 2007 Matthias Saou <http://freshrpms.net/> 0.2.1-1
- Update to 0.2.1.

* Fri Mar 23 2007 Matthias Saou <http://freshrpms.net/> 0.1.0-1
- Update to 0.1.0 release.

* Wed Feb 14 2007 Matthias Saou <http://freshrpms.net/> 0.0-1.r303
- Switch to using the go-4-python-2.5 svn branch.

* Fri Feb  9 2007 Matthias Saou <http://freshrpms.net/> 0-0.1.r294
- Initial RPM release.

