File libinstpatch.spec of Package libinstpatch

# spec file for package libinstpatch
# Copyright (c) 2017 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

Name:           libinstpatch
Version:        1.0.0
Release:        0
Summary:        MIDI instrument patch library
License:        LGPL-2.1 AND GPL-2.0 AND GPL-2.0+
Group:          Development/Libraries/C and C++
# Fetch source via
# sh latest
Source0:        libinstpatch-%{version}+svn386.tar.bz2
# script to download sources and make tarball from svn
# .pc file fixes. Patch sent upstream via their mailing list
Patch0:         libinstpatch-cmake-fixes.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(sndfile)

libInstPatch is a library for processing digital sample based MIDI
instrument "patch" files.

%package -n libinstpatch-1_0-0
Summary:        Libinstpatch library
Group:          System/Libraries

%description -n libinstpatch-1_0-0
libInstPatch stands for lib-Instrument-Patch and is a library for processing
digital sample based MIDI instrument "patch" files. The types of files
libInstPatch supports are used for creating instrument sounds for wavetable
synthesis. libInstPatch provides an object framework (based on GObject) to load
patch files into, which can then be edited, converted, compressed and saved.

This package contains the library of %{name}.

%package devel
Summary:        Development package for %{name}
Group:          Development/Languages/C and C++
Requires:       libinstpatch-1_0-0 = %{version}

%description devel
This package includes the header files for %{name}.

%setup -q
%patch0 -p1 -b .pkgconfig

make %{?_smp_mflags}


%post -n libinstpatch-1_0-0 -p /sbin/ldconfig
%postun -n libinstpatch-1_0-0 -p /sbin/ldconfig

%files -n libinstpatch-1_0-0

%files devel
%doc examples/create_sf2.c