File oplhw.spec of Package oplhw
#
# spec file for package oplhw
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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 sover 0
%define libname liboplhw%{sover}
Name: oplhw
Version: 0~git20221114
Release: 0
Summary: A library for using real OPL2/3 synth chips via ALSA's hwdep interface
License: 0BSD
URL: https://davidgow.net/hacks/oplhw.html
#Git-Clone: https://github.com/sulix/liboplhw.git
Source: liboplhw-%{version}.tar.xz
BuildRequires: cmake
%description
liboplhw is a library which provides access to real OPL2/3 chips
on a number of different hardware/software platforms:
- The OPL2LPT parallel port OPL2 soundcard
- The Retrowave OPL (Express) USB soundcard
- Any OPL2 soundcard supported by the Linux kernel via ALSA
- Retro soundcards via direct I/O port access (as root)
%package -n %{libname}
Summary: A library for using real OPL2/3 synth chips
Group: System/Libraries
%description -n %{libname}
liboplhw is a library which provides access to real OPL2/3 chips
on a number of different hardware/software platforms.
ALSA's hwdep interface
%package devel
Summary: Development files for liboplhw
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
A library for using real OPL2/3 synth chips.
This subpackage contains libraries and header files for developing
applications that want to make use of liboplhw.
%prep
%setup -q -n liboplhw-%{version}
%build
%cmake -DOPLHW_INSTALL_EXAMPLES=ON
%cmake_build
%install
%cmake_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
#%%license LICENSE
#%%doc README
# FIXME: introduce shared library versioning
#%%{_libdir}/libplhw.so.%%{sover}*
%files devel
%{_bindir}/oplhw_cmfplay
%{_bindir}/oplhw_imfplay
%{_includedir}/oplhw.h
%{_libdir}/liboplhw.so
%{_libdir}/pkgconfig/oplhw.pc
%changelog