File liblscp.spec of Package liblscp
#
# spec file for package liblscp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 6
Name: liblscp
Version: 1.0.0
Release: 0
Summary: LinuxSampler control protocol library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://linuxsampler.org
Source: https://download.linuxsampler.org/packages/liblscp-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig
%description
liblscp is an implementation of the LinuxSampler control protocol,
proposed as a C language API.
%package -n liblscp%{sover}
Summary: LinuxSampler Control Protocol Library
Group: System/Libraries
%description -n liblscp%{sover}
liblscp is an implementation of the LinuxSampler control protocol,
proposed as a C language API.
%package -n liblscp-devel
Summary: LinuxSampler Control Protocol Library
Group: Development/Libraries/C and C++
Requires: liblscp%{sover} = %{version}
%description -n liblscp-devel
liblscp is an implementation of the LinuxSampler control protocol,
proposed as a C language API.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%post -n liblscp%{sover} -p /sbin/ldconfig
%postun -n liblscp%{sover} -p /sbin/ldconfig
%files -n liblscp%{sover}
%license LICENSE
%doc ChangeLog
%{_libdir}/liblscp.so.%{sover}
%{_libdir}/liblscp.so.%{sover}.*
%files -n liblscp-devel
%{_includedir}/lscp
%{_libdir}/liblscp.so
%{_libdir}/pkgconfig/lscp.pc
%changelog