File grandorgue.spec of Package grandorgue
#
# spec file for package grandorgue
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: grandorgue
Version: 3.11.2.1
Release: 0
Summary: Virtual Pipe Organ Software
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/GrandOrgue/grandorgue
Source0: grandorgue-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gcc-c++
BuildRequires: gettext-tools
BuildRequires: jack-devel
BuildRequires: libxslt
BuildRequires: pkgconfig
BuildRequires: po4a
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-3_2-nostl-devel
BuildRequires: zip
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(wavpack)
BuildRequires: pkgconfig(zlib)
BuildRequires: yaml-cpp-devel
BuildRequires: ImageMagick
Recommends: grandorgue-demo
%description
GrandOrgue is a virtual pipe organ sample player application supporting a HW1 compatible file format.
%package demo
Summary: GrandOrgue demo sampleset
Group: Productivity/Multimedia/Sound/Midi
BuildArch: noarch
%description demo
This package contains the demo sampleset for GrandOrgue.
%prep
%setup -q
%build
%cmake \
-DDOC_INSTALL_DIR=%{_docdir} \
-DLIBINSTDIR=%{_lib} \
-DCMAKE_SKIP_RPATH=ON \
-DVERSION_REVISION="`echo %{version}|cut -d. -f4`"
%cmake_build
%install
%cmake_install LIBDIR=%{_lib}
mkdir -p %{buildroot}%{_docdir}/%{name}
install -m 644 README* %{buildroot}%{_docdir}/%{name}
%find_lang GrandOrgue
%suse_update_desktop_file GrandOrgue
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f GrandOrgue.lang
%{_bindir}/*
%{_libdir}/libGrandOrgue*
%doc %{_docdir}/%{name}
%{_datadir}/applications/*
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/*
%{_datadir}/mime/packages/*
%{_datadir}/icons/*
%dir %{_datadir}/GrandOrgue
%dir %{_datadir}/GrandOrgue/packages
%{_datadir}/GrandOrgue/help
%{_datadir}/GrandOrgue/sounds
%{_datadir}/GrandOrgue/perftests
%{_mandir}/man1/*
%files demo
%{_datadir}/GrandOrgue/packages/*.orgue
%changelog