File AriaMaestosa.spec of Package AriaMaestosa
#
# spec file for package Aria Maestosa
#
# Copyright (c) 2014 falkTX <falktx@gmail.com>
# Copyright (c) 2016 Pauline Emily <vilene@posteo.net>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.
#
# This package is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: AriaMaestosa
Version: 1.4.13
Release: 0
Summary: MIDI sequencer and editor
Group: Productivity/Multimedia/Sound/Midi
License: GPL-2.0+ and MIT and Zlib
URL: http://ariamaestosa.sourceforge.net/
Source: AriaSrc-%{version}.tar.bz2
Source1: AriaMaestosa.desktop
Source2: Aria.1
# PATCH-FIX-OPENSUSE AriaMaestosa-adjust_prefix.patch -- remove /usr/local paths in the build system
Patch0: AriaMaestosa-adjust_prefix.patch
# PATCH-FIX-UPSTREAM AriaMaestosa-fix_return.patch -- fix no-return-in-nonvoid-function error
Patch1: AriaMaestosa-fix_return.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: alsa-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-base
BuildRequires: wxWidgets-devel >= 3
BuildRequires: update-desktop-files
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
BuildRequires: hicolor-icon-theme
Requires(post): hicolor-icon-theme
Requires(postun): hicolor-icon-theme
%description
Aria Maestosa is an open-source (GPL) midi sequencer/editor. It lets you
compose, edit and play midi files with a few clicks in a user-friendly
interface offering score, keyboard, guitar, drum and controller views.
%prep
%setup -q -n AriaSrc-%{version}
%patch0 -p1
%patch1 -p1
%build
python scons/scons.py config=release CXXFLAGS="%{optflags}"
%install
# executable
install -d %{buildroot}%{_bindir}
install -m 775 Aria %{buildroot}%{_bindir}
# data files
install -d %{buildroot}%{_datadir}/Aria
cp -a Resources/* %{buildroot}%{_datadir}/Aria
# locale files
for lang in international/*/ ; do
mkdir -p %{buildroot}%{_datadir}/locale/${lang#*/}LC_MESSAGES
cp ${lang}aria_maestosa.mo %{buildroot}%{_datadir}/locale/${lang#*/}LC_MESSAGES
done
%find_lang aria_maestosa
# freedesktop files
install -d %{buildroot}%{_datadir}/mime/packages
install -m 644 Freedesktop/application-x-ariamaestosa.xml %{buildroot}%{_datadir}/mime/packages
%suse_update_desktop_file -i %name
# icons
for size in 32 48 64 128 ; do
install -Dm 644 aria${size}.png \
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/AriaMaestosa.png
done
install -Dm 644 Freedesktop/aria_doc.png \
%{buildroot}%{_datadir}/icons/hicolor/64x64/mimetypes/application-x-ariamaestosa.png
install -Dm 644 aria_doc_128.png \
%{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/application-x-ariamaestosa.png
# manpages
install -d %{buildroot}%{_mandir}/man1
install -m 644 %{S:2} %{buildroot}%{_mandir}/man1
# find duplicates
%fdupes -s %{buildroot}
%post
%mime_database_post
%desktop_database_post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%mime_database_postun
%files -f aria_maestosa.lang
%defattr(-,root,root)
%doc Changelog.txt license.txt TODO.txt
%doc %{_mandir}/man1/Aria.1%{?ext_man}
%{_bindir}/Aria
%{_datadir}/Aria
%{_datadir}/applications/AriaMaestosa.desktop
%{_datadir}/mime/packages/application-x-ariamaestosa.xml
%{_datadir}/icons/hicolor/*/apps/AriaMaestosa.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-ariamaestosa.png
%changelog