File python-ogg.spec of Package python-ogg
#
# spec file for package python-ogg (Version 1.3)
#
# 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-ogg
BuildRequires: libogg-devel python-devel
%define dist_name pyogg
%define _prefix /usr
Version: 1.3
Release: 359
License: LGPL v2.1 or later
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://ekyo.nerim.net/software/pyogg/index.html
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
* 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