File python-mpd.spec of Package python-mpd

# Copyright (c) 2007-2009 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

# norootforbuild

%define _prefix	/usr

%if %suse_version <= 1110
%define python_sitelib	%py_sitedir
%define python_sitearch	%py_sitedir
%endif

Name:			python-mpd
Version:		0.2.1
Release:		0.pm.2.1
Summary:		Python MPD client library
Group:			Development/Languages/Python
License:		GPLv3+
URL:			http://pypi.python.org/pypi/python-mpd/
Source0:		http://pypi.python.org/packages/source/p/python-mpd/%{name}-%{version}.tar.bz2
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root
%if %suse_version > 1110
BuildArch:		noarch
%endif
%py_requires
BuildRequires:	python-devel
BuildRequires:	python-setuptools
%if %suse_version >= 1110
Requires:		python-base >= %{py_ver}
%else
Requires:		python >= %{py_ver}
%endif

%description
An MPD (Music Player Daemon) client library written in pure Python.

%prep
%setup -q

%build
%__python setup.py build

%install
%__python setup.py install \
	--root=%{buildroot} \
	--prefix=%{_prefix}
 
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root,-)
%doc *.txt
%{python_sitelib}/mpd.py*
%{python_sitelib}/python_mpd-%{version}-py%{py_ver}.egg-info

%changelog
* Sun Sep 14 2008 Toni Graffy <toni@links2linux.de> - 0.2.1-0.pm.1
- First release 0.2.1
openSUSE Build Service is sponsored by