File denemo.spec of Package denemo
#
# spec file for package denemo
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 by Edgar Aichinger
#
# 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 prefix %{_prefix}
%define pkgdatadir %{prefix}/share/denemo
%define sysconfdir %{prefix}%{_sysconfdir}/
Name: denemo
Version: 2.6.0
Release: 0
Summary: Graphical music notation program
License: GPL-2.0-or-later
Group: Productivity/Publishing/Other
URL: http://denemo.org/
Source: %{name}-%{version}.tar.xz
Patch0: denemo-OBS.patch
Patch1: denemo-guile-3.patch
Patch2: denemo-sffile.patch
Patch3: denemo-EvDocument.patch
Patch4: denemo-audiointerface.patch
Patch5: denemo-perform_command.patch
Patch6: denemo-object.c.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: lilypond
BuildRequires: pkgconfig
BuildRequires: portmidi-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(evince-view-3.0)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sndfile)
BuildRequires: autoconf automake libtool
Requires: fftw3
Requires: fluidsynth
Requires: lilypond
Requires: portaudio
%if 0%{?suse_version}
BuildRequires: pkgconfig(jack)
BuildRequires: guile-devel
BuildRequires: gtksourceview-devel
BuildRequires: libaubio-devel >= 0.4.0
BuildRequires: librsvg-devel
BuildRequires: librubberband-devel
BuildRequires: xorg-x11-libxcb-devel
%endif
%if %{defined fedora}
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: guile30-devel
BuildRequires: gtksourceview3-devel
BuildRequires: aubio-devel >= 0.4.0
BuildRequires: librsvg2-devel
BuildRequires: rubberband-devel
BuildRequires: texlive-latex-base-dev
Requires: gtk3
Requires: librsvg2
%endif
%description
Denemo is a graphical music notation program written in C with
gtk+. As of April 2000, it is an official part of the GNU project
(http://www.gnu.org/)
It is intended to be used in conjunction with GNU Lilypond
(http://www.cs.uu.nl/hanwen/lilypond/), but is adaptable to other
computer-music-related purposes as well.
%prep
%autosetup -p1
%build
export CFLAGS="%{optflags}"
libtoolize
autoreconf
%configure --enable-alsa --enable-jack \
%if 0%{?suse_version} > 1500
--enable-guile_3_0
%else
--enable-guile_2_0
%endif
%make_build
%install
%make_install
%find_lang %{name} %{name}.lang
%fdupes %{buildroot}
%files -f %{name}.lang
%license COPYING
%doc NEWS AUTHORS ChangeLog
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*
%dir %{_datadir}/fonts/truetype
%{_datadir}/fonts/truetype/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.denemo.Denemo.appdata.xml
%{_datadir}/pixmaps/*
%changelog