File freealut.spec of Package freealut

#
# spec file for package freealut
#
# Copyright (c) 2012 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/
#


Name:           freealut
BuildRequires:  openal-devel
Version:        1.1.0
Release:        0
Url:            http://connect.creativelabs.com/openal/default.aspx
Summary:        freealut is a free implementation of OpenAL's ALUT standard
License:        LGPL-2.1+
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch:          freealut-noansiflag.patch
BuildRequires:  libtool

%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
Group:          Development/Libraries/C and C++
Provides:       openal:/usr/include/AL/alut.h
Requires:       %{name} = %{version}
Requires:       glibc-devel
Requires:       openal-devel

%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
%patch
%build
autoreconf -fiv
%configure --disable-static --with-pic
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/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.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by