File drumstick.spec of Package drumstick

# spec file for package drumstick
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2005-2010 Pedro Lopez-Cabanillas <>
# 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:           drumstick
Version:        1.1.0
Release:        0
Summary:        MIDI Sequencer C++ Library Bindings
License:        GPL-2.0+ AND GPL-3.0+
Group:          Productivity/Multimedia/Sound/Midi
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  alsa-devel
BuildRequires:  cmake >= 2.8.11
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  docbook_4
BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  kf5-filesystem
BuildRequires:  libxslt
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
Requires(post): shared-mime-info
Requires(postun): shared-mime-info

This package includes test and example programs for drumstick libraries.

%package -n libdrumstick-file1
Summary:        MIDI Sequencer C++ Library
Group:          System/Libraries

%description -n libdrumstick-file1
MIDI Sequencer C++ Library Bindings for Qt5 and ALSA.
This library includes classes providing file input and output in formats
commonly used by MIDI programs. Currently, SMF (standard MIDI file)
read/write and WRK (Cakewalk) file read are supported. This library does not
depend on ALSA.

%package -n libdrumstick-alsa1
Summary:        MIDI Sequencer C++ Library
Group:          System/Libraries

%description -n libdrumstick-alsa1
MIDI Sequencer C++ Library Bindings for Qt5 and ALSA.
This library includes the ALSA Sequencer library classes, providing MIDI
recording and playback functionality to C++/Qt5 programs.

%package -n libdrumstick-devel
Summary:        Development package for the libdrumstick library
Group:          Development/Libraries/C and C++
Requires:       alsa-devel
Requires:       glibc-devel
Requires:       libdrumstick-alsa1 = %{version}
Requires:       libdrumstick-file1 = %{version}
Requires:       libstdc++-devel
Requires:       pkgconfig(Qt5Core)

%description -n libdrumstick-devel
This package contains the files needed to compile programs that use the
libdrumstick libraries.

%package -n libdrumstick-doc
Summary:        Development documentation package for the drumstick libraries
Group:          Documentation/Other
BuildArch:      noarch

%description -n libdrumstick-doc
This package contains the developer's documentation of the drumstick libraries.

%setup -q

%cmake_kf5  -- -DSTATIC_DRUMSTICK=0
make doxygen

%suse_update_desktop_file -n drumstick-drumgrid Midi
%suse_update_desktop_file -n drumstick-guiplayer Midi
%suse_update_desktop_file -n drumstick-vpiano Midi



%post -n libdrumstick-file1 -p /sbin/ldconfig
%postun -n libdrumstick-file1 -p /sbin/ldconfig
%post -n libdrumstick-alsa1 -p /sbin/ldconfig
%postun -n libdrumstick-alsa1 -p /sbin/ldconfig


%files -n libdrumstick-file1

%files -n libdrumstick-alsa1

%files -n libdrumstick-devel
%dir %{_includedir}/%{name}

%files -n libdrumstick-doc
%doc doc/html/*

openSUSE Build Service is sponsored by