[Bf-committers] Spec file for OpenAL

Guillermo S. Romero / Familia Romero bf-committers@blender.org
Wed, 20 Nov 2002 19:31:24 +0100


--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi:

Related project, a spec file for OpenAL, so people with RPM can have a
clean install of it.

Comments about what to do with it (store somewhere else, put in a dir
in blender tree as extra or support)? Works in all RPM based distros?
Fixes (OpenAL is weird, dunno if the tricks could be nicely solved)?

GSR
 
--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="openal-0.2001061600-1.spec"

Summary: An open source 3D sound library
Name: openal
Version: 0.2001061600
Release: 1
License: LGPL 2
Group: System Environment/Libraries
# Source: http://ftp.debian.org/debian/pool/main/o/openal/openal_0.2001061600.orig.tar.gz
Source: openal_0.2001061600.orig.tar.gz
URL: http://www.openal.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot/
Requires: /sbin/ldconfig
# Requires: 

%description
OpenAL, the Open Audio Library, is a joint effort to create  
an open, vendor-neutral, cross-platform API for interactive, 
primarily spatialized audio.

This package includes the OpenAL runtime libraries.


%package devel
Summary: Static libraries and header files from the OpenAL library
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
OpenAL, the Open Audio Library, is a joint effort to create
an open, vendor-neutral, cross-platform API for interactive,
primarily spatialized audio.

This package includes the OpenAL development libraries.


%prep
%setup -q

# It wants 2.13 and lot of tricks
%build
cd linux
autoconf-2.13
autoheader-2.13 configure.in > foo.in
mv foo.in config.h.in # don't ask
%configure
make

# Symlinks get full path, so more tricks to make them relative... damn
%install
rm -fr %{buildroot}
cd linux
make install DESTDIR=%{buildroot}/usr/
cd %{buildroot}/usr/lib/
rm -f libopenal.so libopenal.so.0
ln -s libopenal.so.0.0.6 libopenal.so
ln -s libopenal.so.0.0.6 libopenal.so.0

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig                                                 

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
# %doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
# %doc 
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/AL/*

%changelog
* Wed Nov 20 2002 Guillermo S. Romero <gsromero@alumnos.euitt.upm.es>
- First try at RPM spec file.

--oyUTqETQ0mS9luUI--