File python-vorbis.spec of Package python-vorbis

#
# spec file for package python-vorbis (Version 1.5a)
#
# Copyright (c) 2007 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-vorbis
BuildRequires:  libvorbis-devel python-devel python-ogg
%define dist_name pyvorbis
%define _prefix /usr
Version:        1.5a
Release:        1
License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Summary:        Python bindings for libvorbis
Source:         %{dist_name}-%{version}.tar.bz2
Source1:        Setup.in
Patch0:         pyvorbis-1.3-ssize.patch
Patch1:         pyvorbis-1.5a-badfree.patch
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
Python bindings for libvorbis

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

%prep
%setup -n %{dist_name}-%{version}
%patch0
%patch1 -p1
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
* Wed Apr 25 2007 - jmatejek@suse.cz
- updated to version 1.5a, which fixes various bugs with python2.5
- applied patch from bugzilla #267715, fixing some more py2.5 bugs
* Fri Oct 20 2006 - jmatejek@suse.cz
- fixed a bug and minor incompatibilities for 64bit PEP353 changes
* 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
* Mon Oct 31 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
* Thu Aug 14 2003 - pthomas@suse.de
- Initial package
openSUSE Build Service is sponsored by