File libtpclient-py.spec of Package libtpclient-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: libtpclient-py
BuildRequires: python-devel python-setuptools python-tp-netlib
Url: http://www.thousandparsec.net
License: LGPL
Group: Development/Languages/Python
AutoReqProv: on
Version: 0.3.1.1
Release: 1
Summary: Python module to use libmagic
Source0: libtpclient-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 client 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 client 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/client
%{python_sitelib}/libtpclient_py*
%{python_sitelib}/tp/client/*
%doc README
%changelog
* Fri Nov 28 2008 mithro@mithis.com
- Initial import.