python-vorbis/python-vorbis.spec

Name: python-vorbis
Summary: Python bindings for libvorbis
Version: 1.3
Release: 1.2
License: LGPL
Group: Development/Libraries
URL: http://www.andrewchatham.com/pyogg/
Description: Python bindings for libvorbis

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Andrew Chatham <pyogg@andrewchatham.com>

%define python_includedir %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_inc()')
%define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]')
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')

%define real_name pyvorbis

Summary: Python bindings for libvorbis
Name: python-vorbis
Version: 1.3
Release: 1.2%{?dist}
License: LGPL
Group: Development/Libraries
URL: http://www.andrewchatham.com/pyogg/

Source: http://www.andrewchatham.com/pyogg/download/pyvorbis-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: python, python-ogg, python-devel
BuildRequires: libvorbis-devel, libogg-devel
Requires: python >= %{python_version}, python-ogg

%description
Python bindings for libvorbis

%prep
%setup -n %{real_name}-%{version}

%{__cat} <<EOF >Setup
ogg_libs = ogg
vorbis_libs = vorbis vorbisfile vorbisenc
vorbis_include_dir = %{_libdir}
ogg_lib_dir = %{_libdir}
ogg_include_dir = %{_includedir}
vorbis_lib_dir = %{_libdir}
EOF

%build
export CFLAGS="%{optflags}"
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{python_sitearch}/ogg/
%{python_sitearch}/ogg/vorbis.so

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.3-1.2
- Rebuild for Fedora Core 5.

* Sun May 08 2005 Dag Wieers <dag@wieers.com> - 1.3-1
- Downgraded from 1.4 to 1.3.
- Initial package. (using DAR)