# Global variables for github repository %global commit0 0e5819a01a916444f5cabd2be3c911cd084c6bc4 %global gittag0 master %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: lenmus Version: 5.4.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 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: lomse-devel %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} %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 \ . make VERBOSE=1 %{?_smp_mflags} %install make DESTDIR=%{buildroot} install # install hydrogen.desktop properly. 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/* %changelog * 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