File python-ogg.spec of Package python-ogg

#
# spec file for package python-ogg (Version 1.3)
#
# Copyright (c) 2006 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

Name:           python-ogg
BuildRequires:  libogg-devel python-devel
%define dist_name pyogg
%define _prefix /usr
Version:        1.3
Release:        170
License:        LGPL
Summary:        Python bindings for libogg
Source:         %{dist_name}-%{version}.tar.bz2
Source1:        Setup.in
Group:          Development/Libraries/Python
%define pyver %(python -c 'import sys; print sys.version[:3]')
Requires:       python >= %pyver, python < %{pyver}.99
URL:            http://www.andrewchatham.com/pyogg
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is an object-oriented Python binding for the ogg library.



Authors:
--------
    Andrew Chatham <pyogg@andrewchatham.com>

%prep
%setup -n %{dist_name}-%{version}
sed -e 's$@libdir@$%{_libdir}$g' -e 's$@includedir@$%{_includedir}$g' %{SOURCE1} >Setup

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS ChangeLog PKG-INFO COPYING NEWS README

%changelog -n python-ogg
* Tue Feb 28 2006 - jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Fri Aug 29 2003 - mcihar@suse.cz
- require same python version as it was built with
* Mon Aug 04 2003 - pthomas@suse.de
- Initial package creation
openSUSE Build Service is sponsored by