# Global variables for github repository %global commit0 96a9b03eaea865d2207c05a1ea0daba66f4cd94b %global gittag0 master %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: lenmus Version: 5.6.2.%{shortcommit0} Release: 1%{?dist} Summary: An app to study music theory and train you ear Group: Applications/Multimedia License: GPLv2+ URL: https://github.com/lenmus/lenmus Source0: https://github.com/lenmus/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz Source1: FindPortMidi.cmake BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc gcc-c++ BuildRequires: boost-devel BuildRequires: desktop-file-utils BuildRequires: zlib-devel BuildRequires: libpng-devel BuildRequires: freetype-devel BuildRequires: portmidi-devel BuildRequires: portaudio-devel BuildRequires: cmake BuildRequires: wxGTK3-devel BuildRequires: sqlite-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: fluidsynth-devel BuildRequires: fluid-soundfont-gm %description LenMus Phonascus, "the teacher of music", is a free program to help you in the study of music theory and ear training. The LenMus Project is an open project, committed to the principles of Open Source, free education, and open access to information. It has no comercial purpose. It is an open workbench for working on all areas related to teaching music, and music representation and management with computers. It aims at developing publicly available knowledge, methods and algorithms related to all these areas and at the same time provides free quality software for music students, amateurs, and teachers. Please visit the LenMus website (http://www.lenmus.org) for the latest news about the project or for further details about releases. %prep %setup -qn %{name}-%{commit0} cp %{SOURCE1} cmake-modules/ %build sed -ie "s/target_link_libraries ( \${LENMUS}/target_link_libraries ( \${LENMUS} jack/g" CMakeLists.txt %cmake -D_filename:FILEPATH=/usr/include/wx-3.0/wx/version.h \ -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/wx-config-3.0 \ -DPortTime_LIBRARY:FILEPATH=/usr/%{_lib}/libportaudio.so \ -DLENMUS_DOWNLOAD_SOUNDFONT=OFF \ . make VERBOSE=1 %{?_smp_mflags} %install make DESTDIR=%{buildroot} install # install lenmus.desktop properly. mv %{buildroot}%{_datadir}/applications/org.lenmus.lenmus.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop mv %{buildroot}%{_datadir}/metainfo/org.lenmus.lenmus.appdata.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml desktop-file-install --vendor '' \ --add-category=X-Sound \ --add-category=Midi \ --add-category=Audio \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}.desktop %post touch --no-create %{_datadir}/mime/packages &>/dev/null || : update-desktop-database &> /dev/null || : %postun update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then update-mime-database %{_datadir}/mime &> /dev/null || : fi %posttrans /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files %doc AUTHORS CHANGELOG.md INSTALL README.md NEWS THANKS LICENSE %{_bindir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/man/* %{_datadir}/metainfo/%{name}.appdata.xml %changelog * Thu Apr 23 2020 Yann Collette - 5.6.2-1 - update 5.6.2-1 * Mon Mar 2 2020 Yann Collette - 5.6.0-1 - update 5.6.0-1 * Mon Oct 15 2018 Yann Collette - 5.4.1-1 - update for Fedora 29 * Mon Jun 01 2015 Yann Collette - 5.4.1-1 - Initial version