#
# spec file for package kmidimon (Version @VERSION@)
#
# norootforbuild

Name:           kmidimon
Version:        @PROJECT_VERSION@
Release:        0
License:        GPL v2 or later
Summary:        MIDI Monitor for ALSA Sequencer
Group:          Productivity/Multimedia/Sound/Midi
URL:            https://kmidimon.sourceforge.io
Source:         %name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  alsa-devel
BuildRequires:  libqt5-devel
BuildRequires:  libdrumstick-devel >= 2.0
#the above dependency provides the mime-type definitions that kmidimon handles 

%description
ALSA sequencer based MIDI monitor for Linux


Authors:
--------
    Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>

%debug_package
%prep
%setup -q

%build
CXXFLAGS="$RPM_OPT_FLAGS -g -fexceptions" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j %jobs} VERBOSE=0

%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file -G "MIDI Monitor" %name AudioVideo Midi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc NEWS INSTALL README ChangeLog AUTHORS TODO
%doc %{_mandir}/man1/*
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/24x24
%dir %{_datadir}/icons/hicolor/24x24/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/64x64/apps
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_bindir}/%name
%{_datadir}/applications/*/*
%{_datadir}/icons/hicolor/*/*/*

%changelog
* Sun Jan 10 2020 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 1.0.0
- Release 1.0.0
* Thu Sep 16 2010 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.4
- Release 0.7.4
* Tue Mar 9 2010 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.3
- Release 0.7.3
* Sun Dec 27 2009 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.2-2
- Dynamic link with aseqmm
* Wed Dec 23 2009 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.2
- Release 0.7.2
* Fri Dec 18 2009 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.1-2
- openSUSE build service project restructuration
* Sun Aug 9 2009 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.1
- Release 0.7.1
* Wed Jun 24 2009 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.7.0
- Release 0.7.0
* Sun Dec 29 2008 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.6.0
- Release 0.6.0
* Sun Apr 6 2008 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.5.1-0
- openSuse build service
* Mon Mar 24 2008 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> 0.5.1
- Release 0.5.1
