File libmikmod.spec of Package libmikmod
#
# spec file for package libmikmod (Version 3.1.11a)
#
# 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: libmikmod
BuildRequires: esound-devel
Url: http://mikmod.raphnet.net/
License: LGPL v2.1 or later
Group: System/Libraries
Summary: MikMod Sound Library
Version: 3.1.11a
Release: 71.<RELEASE57>
%define _version 3.1.11
Source: %{name}-%{_version}.tar.bz2
Source1: libmikmod-rpmlintrc
Patch0: libmikmod-3.1.11-a.diff
Patch1: libmikmod.diff
Patch2: libmikmod-config-fix.dif
Patch3: libmikmod-conftest_fix.diff
Patch4: libmikmod-CVE-2007-6720.diff
Patch5: libmikmod-CVE-2009-0179.diff
Patch6: libmikmod-CVE-2009-3995,3996.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libmikmod is a portable sound library, capable of playing samples as
well as module files. It was originally written by Jean-Paul Mikkers
(MikMak) for DOS. It supports OSS /dev/dsp, ALSA, and Esound and can
also write wav files. Supported file formats include mod, stm, s3m,
mtm, xm, and it.
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Development files for MikMod Sound Library
Requires: %{name} = %{version} glibc-devel audiofile-devel
PreReq: %install_info_prereq
%description devel
This package contains files needed for compiling programs using
libmikmod.
Libmikmod is a portable sound library, capable of playing samples as
well as module files. It was originally written by Jean-Paul Mikkers
(MikMak) for DOS. It supports OSS /dev/dsp, ALSA, and Esound and can
also write wav files. Supported file formats include mod, stm, s3m,
mtm, xm, and it.
%prep
%setup -q -n %{name}-%{_version}
%patch0 -p1
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
cmp $RPM_BUILD_ROOT%{_includedir}/mikmod{,_build}.h &&
ln -f $RPM_BUILD_ROOT%{_includedir}/mikmod{,_build}.h
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING.LIB NEWS TODO COPYING.LESSER
%{_libdir}/libmikmod.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/*-config
%{_datadir}/aclocal/libmikmod.m4
%{_includedir}/*
%doc %{_infodir}/mikmod*
%{_libdir}/libmikmod.so
%{_libdir}/libmikmod.*a
%doc %{_mandir}/man1/*-config.*
%changelog