File liblscp.spec of Package liblscp
#
# spec file for package liblscp
#
# Copyright (C) 2004-2022, rncbc aka Rui Nuno Capela. All rights reserved.
# Copyright (C) 2007,2008,2015 Christian Schoenebeck
#
# 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/
#
%define name liblscp
%define version 0.9.7
%define release 51.1
%define _soname %{name}6
%define _prefix /usr
%if %{defined fedora}
%global debug_package %{nil}
%endif
Summary: LinuxSampler Control Protocol API library
Name: %{name}
Version: %{version}
Release: %{release}
License: LGPL-2.0+
Source0: %{name}-%{version}.tar.gz
Patch: 01-liblscp-cmake-lscp-pc.patch
URL: http://www.linuxsampler.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
#Packager: rncbc.org
BuildRequires: coreutils
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: glibc-devel
BuildRequires: doxygen
%description
LinuxSampler control protocol API library.
%package -n %{_soname}
Summary: LinuxSampler Control Protocol API library
Group: System/Libraries
Provides: %{name}
%description -n %{_soname}
LinuxSampler Control Protocol C API library - development files.
.
This package is for use with the LinuxSampler audio sampling
engine / library and packages. Wraps the LinuxSampler network
protocol and offers a convenient API in form of a C library.
.
For further informations visit
http://www.linuxsampler.org
.
This package contains the header files needed for
development with liblscp. You will need this only if you
intend to compile programs that use this library.
%package devel
Summary: LinuxSampler Control Protocol API library - development files
Group: Development/Libraries/C and C++
Requires: pkgconfig
Requires: %{name} >= %{version}
%description devel
LinuxSampler Control Protocol C API library - development files.
This package is for use with the LinuxSampler audio sampling
engine / library and packages. Wraps the LinuxSampler network
protocol and offers a convenient API in form of a C library.
For further informations visit
http://www.linuxsampler.org
This package contains the header files needed for
development with liblscp. You will need this only if you
intend to compile programs that use this library.
%prep
%autosetup -p0
%build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -Wno-dev -B build
cmake --build build %{?_smp_mflags}
%install
DESTDIR="%{buildroot}" \
cmake --install build
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}"
%post -n %{_soname}
/sbin/ldconfig
%postun -n %{_soname}
/sbin/ldconfig
%files -n %{_soname}
%defattr(-,root,root)
%doc README LICENSE ChangeLog
%{_libdir}/liblscp.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/liblscp.so
%{_libdir}/pkgconfig/lscp.pc
%dir %{_includedir}/lscp
%{_includedir}/lscp/*.h
%dir %{_datadir}/doc/%{name}
%dir %{_datadir}/doc/%{name}/html
%{_datadir}/doc/%{name}/html/*
%changelog