File libmodplug.spec of Package libmodplug.import4352

#
# spec file for package libmodplug
#
# Copyright (c) 2011 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:           libmodplug
Summary:        A MOD playing library
Version:        0.8.7
Release:        10.<RELEASE11>
Group:          System/Libraries
License:        Public Domain
Url:            http://modplug-xmms.sourceforge.net
Source:         %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
# PATCH-FIX-OPENSUSE libmodplug-timidity.patch -- set paths to openSUSE timidity package
Patch1:         libmodplug-timidity.patch
# PATCH-FIX-SECURITY libmodplug-s3m-stack-overflow.patch bnc686624 sbrabec@suse.cz -- Fix stack overflow fulnerability in S3M decoder. https://www.sec-consult.com/files/20110407-0_libmodplug_stackoverflow.txt
Patch2:         libmodplug-s3m-stack-overflow.patch
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libmodplug is the library behind -- Modplug-XMMS is a fully featured, complete
input plugin for XMMS which plays mod-like music formats. It is based on the
mod rendering code from ModPlug, a popular windows mod player written by
Olivier Lapicque, found at http://www.modplug.com/.

%package -n libmodplug0
License:        Public Domain
Summary:        Development files for libmodplug
Group:          Development/Libraries/C and C++

%description -n libmodplug0
Modplug library based on the ModPlug sound engine.
- plays 22 different mod formats.
- plays zip, rar, gzip, and bzip2 compressed mods.
- plays timidity's GUS patch files (*.pat).
- plays all types of MIDI files (*.mid).
- plays textfiles written in the ABC music notation (*.abc).

%package devel
License:        Public Domain
Summary:        Development files for libmodplug
Group:          Development/Libraries/C and C++
Requires:       libmodplug0 = %{version}
# Name in Packman and OBS before openSUSE 11.2, Never in openSUSE.
Provides:       libmodplug0-devel = %{version}
Obsoletes:      libmodplug0-devel < %{version}

%description devel
Files needed to program against libmodplug.

%prep
%setup -q
%patch1
%patch2 -p1

%build
autoreconf -f -i
%configure\
	--disable-static
make %{?_smp_mflags}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*.la

%post -n libmodplug0 -p /sbin/ldconfig

%postun -n libmodplug0 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libmodplug0
%defattr(-,root,root)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by