File midisheetmusic.spec of Package midisheetmusic
Name: midisheetmusic
Summary: Midi Sheet Music Player
Version: 2.6
Release: 1
Group: Productivity/Multimedia/Sound/Midi
Url: http://midisheetmusic.sourceforge.net/
Source0: http://sourceforge.net/projects/midisheetmusic/files/midisheetmusic/%{version}/MidiSheetMusic-%{version}-linux-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
License: GPL-2.0+
Requires: alsa-utils
Requires: mono-basic
Requires: mono-devel
Requires: mono-winforms
Requires: timidity
BuildRequires: mono-devel
BuildRequires: alsa-devel
%if 0%{?suse_version} > 1010
BuildRequires: update-desktop-files
%endif
Source1: %{name}
Patch0: %{name}-desktop.patch
%description
Midi Sheet Music is a free cross platform program that plays
MIDI music files while highlighting the piano notes and sheet music notes.
%prep
%setup -q -n MidiSheetMusic-%{version}-linux-src
%patch0 -p1 -b .desktop
%build
./build.sh
%install
install -Dm755 %{name}.mono.exe %{buildroot}%{_bindir}/%{name}.mono.exe
install -Dm755 $RPM_SOURCE_DIR/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 deb/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 NotePair.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version} > 1010
%suse_update_desktop_file -i $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop Midi Sheet Music Player
%endif
%files
%defattr(-, root, root)
%doc *.txt *.html docs
%{_bindir}/%{name}.mono.exe
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog