2007-01-16 00:22:25 +01:00
|
|
|
#
|
2009-12-30 00:25:54 +01:00
|
|
|
# spec file for package libmikmod (Version 3.1.12)
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
2009-01-08 18:38:29 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
2009-01-08 18:38:29 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-03-23 21:22:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:31:04 +02:00
|
|
|
|
2007-03-23 21:22:07 +01:00
|
|
|
Name: libmikmod
|
|
|
|
BuildRequires: esound-devel
|
2008-04-10 14:31:04 +02:00
|
|
|
Url: http://mikmod.raphnet.net/
|
2009-12-30 00:25:54 +01:00
|
|
|
License: LGPLv2.1+
|
2007-03-23 21:22:07 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: MikMod Sound Library
|
2009-12-30 00:25:54 +01:00
|
|
|
Version: 3.1.12
|
|
|
|
Release: 1
|
2009-01-08 18:38:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libmikmod-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-12-30 00:25:54 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-rpmlintrc
|
|
|
|
Source2: baselibs.conf
|
|
|
|
Patch0: %{name}-3.1.12-CVE-2007-6720.diff
|
|
|
|
Patch1: %{name}-3.1.12-CVE-2009-0179.diff
|
|
|
|
Patch2: %{name}-3.1.12-64bit-fix.diff
|
|
|
|
Patch3: %{name}-3.1.12-autotools.diff
|
|
|
|
Patch4: %{name}-3.1.12-config-fix.diff
|
|
|
|
Patch5: %{name}-3.1.12-conftest_fix.diff
|
|
|
|
Patch6: %{name}-3.1.12-exitcrash-fix.diff
|
|
|
|
Patch7: %{name}-3.1.12-loopingvolume-fix.diff
|
2007-04-12 18:00:02 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-12 18:00:02 +02:00
|
|
|
%package devel
|
2009-12-30 00:25:54 +01:00
|
|
|
License: LGPLv2.1+
|
2007-09-02 10:09:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Development files for MikMod Sound Library
|
2007-04-12 18:00:02 +02:00
|
|
|
Requires: %{name} = %{version} glibc-devel audiofile-devel
|
|
|
|
PreReq: %install_info_prereq
|
2009-01-08 18:38:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libmikmod-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-04-12 18:00:02 +02:00
|
|
|
|
|
|
|
%description devel
|
2007-09-02 10:09:27 +02:00
|
|
|
This package contains files needed for compiling programs using
|
|
|
|
libmikmod.
|
|
|
|
|
2007-04-12 18:00:02 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:22:25 +01:00
|
|
|
%prep
|
2009-12-30 00:25:54 +01:00
|
|
|
%setup -q
|
2009-03-02 01:53:21 +01:00
|
|
|
%patch0 -p1
|
2007-01-16 00:22:25 +01:00
|
|
|
%patch1
|
2009-12-30 00:25:54 +01:00
|
|
|
%patch2 -p1
|
2007-01-16 00:22:25 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
2009-01-23 23:46:08 +01:00
|
|
|
%patch5
|
2009-12-30 00:25:54 +01:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -f -i
|
2009-01-12 02:03:04 +01:00
|
|
|
%configure --disable-static --with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%install
|
2007-04-12 18:00:02 +02:00
|
|
|
%makeinstall
|
2007-09-02 10:09:27 +02:00
|
|
|
cmp $RPM_BUILD_ROOT%{_includedir}/mikmod{,_build}.h &&
|
|
|
|
ln -f $RPM_BUILD_ROOT%{_includedir}/mikmod{,_build}.h
|
2009-01-12 02:03:04 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-04-12 18:00:02 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2009-01-12 02:03:04 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2009-01-12 02:03:04 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2007-04-12 18:00:02 +02:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README AUTHORS COPYING.LIB NEWS TODO COPYING.LESSER
|
2007-04-12 18:00:02 +02:00
|
|
|
%{_libdir}/libmikmod.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*-config
|
|
|
|
%{_datadir}/aclocal/libmikmod.m4
|
2007-01-16 00:22:25 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
%doc %{_infodir}/mikmod*
|
2007-04-12 18:00:02 +02:00
|
|
|
%{_libdir}/libmikmod.so
|
|
|
|
%doc %{_mandir}/man1/*-config.*
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2007-03-23 21:22:07 +01:00
|
|
|
%changelog
|