libmikmod/libmikmod.spec

103 lines
3.2 KiB
RPMSpec

#
# spec file for package libmikmod
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define lname libmikmod3
Name: libmikmod
Version: 3.3.11.1
Release: 0
Summary: MikMod Sound Library
License: LGPL-2.1-or-later
URL: http://mikmod.raphnet.net/
Source: http://sourceforge.net/projects/mikmod/files/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch1: libmikmod-config.patch
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libpulse-simple)
%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 -n %{lname}
Summary: MikMod Sound Library
%description -n %{lname}
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
Summary: Development files for MikMod Sound Library
Requires: %{lname} = %{version}
Requires: glibc-devel
Requires(pre): %{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
%autosetup -p0
%build
%configure --disable-static --disable-oss
make %{?_smp_mflags}
%install
%make_install
cmp %{buildroot}%{_includedir}/mikmod{,_build}.h &&
ln -f %{buildroot}%{_includedir}/mikmod{,_build}.h
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/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 -n %{lname}
%license COPYING.LIB COPYING.LESSER
%{_libdir}/libmikmod.so.3*
%files devel
%doc README AUTHORS NEWS TODO
%{_bindir}/*-config
%{_datadir}/aclocal/libmikmod.m4
%{_includedir}/*
%{_libdir}/pkgconfig/libmikmod.pc
%{_infodir}/mikmod*
%{_libdir}/libmikmod.so
%{_mandir}/man1/*-config.*
%changelog