File libtpproto-py.spec of Package libtpproto-py

#
# spec file for package python-magic (Version 4.24)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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 via http://bugs.opensuse.org/
#

# norootforbuild

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

Name:           libtpproto-py
BuildRequires:  python-devel python-setuptools
Url:            http://www.thousandparsec.net
License:        LGPL
Group:          Development/Languages/Python
AutoReqProv:    on
Version:        0.2.4
Release:        1
Summary:        Python module to use libmagic
Source0:	libtpproto-py-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%if 0%{?suse_version} >= 1030
%py_requires
%endif

%description 
Pure python version of Thousand Parsec protocol library.

%package -n     python-tp-netlib
Summary:        The zlib compression and decompression library
Group:          System/Libraries

%description -n python-tp-netlib
Pure python version of Thousand Parsec protocol library.

%prep
%setup

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

%install
%{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}"

%files -n python-tp-netlib
%defattr(-,root,root)
%dir %{python_sitelib}/tp
%dir %{python_sitelib}/tp/netlib
%{python_sitelib}/libtpproto_py*
%{python_sitelib}/tp/netlib/*
%doc README
%defattr(0755,root,root)
%{python_sitelib}/tp/netlib/discover/bonjour_browser.py

%changelog
* Fri Nov 28 2008 mithro@mithis.com
- Initial import.
openSUSE Build Service is sponsored by