File audiofile.spec of Package audiofile

#
# spec file for package audiofile (Version 0.2.7)
#
# Copyright (c) 2010 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:           audiofile
Url:            http://www.68k.org/~michael/audiofile/
License:        GPLv2+ ; LGPLv2.1+
Group:          System/Libraries
Obsoletes:      audiofil
Provides:       audiofil
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      audiofile-64bit
%endif
#
Summary:        An Audio File Library
Version:        0.2.7
Release:        1
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/audiofile/0.2/audiofile-%{version}.tar.bz2
Source2:        baselibs.conf
Patch2:         %{name}-oldstyle.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkg-config

%description
This audio file library is an implementation of the SGI audio file
library. At present, not all features of the SGI audio file library are
implemented.

This library allows the processing of audio data to and from audio
files of many common formats (currently AIFF, AIFC, WAVE, and
NeXT/Sun).

%package devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        An audio file library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This Audio File Library is an implementation of the SGI Audio File
library. At present, not all features of the SGI Audio File library are
implemented.

This library allows the processing of audio data to and from audio
files of many common formats (currently AIFF, AIFC, WAVE, and
NeXT/Sun).

%prep
%setup -q
%patch2

%build
autoreconf -fiv
%{configure} \
    --with-pic \
    --disable-static
%{__make} %{?jobs:-j%jobs}
%{__cp} -a docs install_docs
%{__rm} install_docs/Makefile*

%install
%{makeinstall}
%if 0%{?suse_version} > 1110
%{__rm} %{buildroot}/%{_libdir}/*.la
%endif

%check
%{__make} check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README TODO COPYING* ACKNOWLEDGEMENTS AUTHORS NEWS NOTES install_docs/*
%{_bindir}/s*
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%{_bindir}/*-config
%{_includedir}/*
%{_datadir}/aclocal/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if 0%{?suse_version} <= 1110
%{_libdir}/*.la
%endif

%changelog