File frescobaldi.spec of Package frescobaldi

# spec file for package frescobaldi
# 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:           frescobaldi
Summary:        Lilypond editor
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Version:        3.0.0
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.gz
# New package, was before part of frescobaldi
# Url:
# Keep in this package, because frescobaldi is the only one using it.
Source1:        python-ly-0.9.5.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  python3-devel
BuildRequires:  update-desktop-files
Requires:       lilypond
Requires:       python-poppler-qt5
Requires:       python3-qt5
Requires:       python3-sip
Recommends:     libportmidi0
BuildArch:      noarch

Frescobaldi is a LilyPond sheet music editor. It aims to be powerful, yet 
lightweight and easy to use.

You can edit LilyPond documents and build and preview them with a mouse click. 
Clicking on notes in the PDF preview places the text cursor in the right place. 
A score wizard is provided to quickly setup a music score. There are editing 
tools to manipulate the rhythm, acticulations, lyrics hyphenation, etc.

%setup -q -a 1

rm -rf %{name}_app/icons/Tango
python3 build

%suse_update_desktop_file %{name} Multimedia AudioVideoEditing
# first install python-ly
cd python-ly-0.9.5
python3 install --prefix=%{_prefix} --root=%{buildroot}
cd ..
python3 install --prefix=%{_prefix} --root=%{buildroot}

%defattr (-,root,root)
%doc %{_mandir}/man1/frescobaldi*

openSUSE Build Service is sponsored by