File freealut.spec of Package freealut

#
# spec file for package freealut (Version 1.1.0)
#
# Copyright (c) 2006 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:           freealut
BuildRequires:  openal-devel
License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          System/Libraries
Autoreqprov:    on
Version:        1.1.0
Release:        3
URL:            http://www.openal.org/
Summary:        freealut is a free implementation of OpenAL's ALUT standard
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
freealut is a free implementation of OpenAL's ALUT standard.



Authors:
--------
    Steve Baker <sjbaker1@airmail.net>
    Sven Panne <sven.panne@aedion.de>
    Erik Hofman <erik@ehofman.com>
    Prakash Punnoor <prakash@punnoor.de>

%package devel
Summary:        Static libraries, header files and tests for openal library
Provides:       openal:/usr/include/AL/alut.h
Requires:       %{name} = %{version} glibc-devel openal-devel
Group:          Development/Libraries/C and C++

%description devel
OpenAL is an audio library designed in the spirit of OpenGL - machine
independent, cross platform, and data format neutral, with a clean,
simple C-based API.



Authors:
--------
    Garin Hiebert <ghiebert@creativelabs.com>

%prep
%setup -q

%build
%{?suse_update_config:%{suse_update_config -f linux}}
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} 
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%post
%run_ldconfig

%postun
%run_ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

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

%files devel
%defattr(-,root,root)
%{_prefix}/bin/*-config
%{_includedir}/AL
%{_libdir}/libalut.*a
%{_libdir}/libalut.so
%{_libdir}/pkgconfig/*.pc

%changelog -n freealut
* Tue Oct 31 2006 - meissner@suse.de
- use RPM_OPT_FLAGS
* Tue Oct 24 2006 - ro@suse.de
- created package (branch from openal)
- added split-provides from openal-devel
openSUSE Build Service is sponsored by