File python-vorbis.spec of Package python-vorbis
#
# spec file for package python-vorbis (Version 1.5a)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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: 143
License: LGPL-2.1+
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://ekyo.nerim.net/software/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