# Global variables for github repository %global commit0 23f4815cfeb1eca450094c8c210d7b4e8ca2576d %global gittag0 v0.4.3 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Summary: BambooTracker is a music tracker for the Yamaha YM2608 sound chip Name: BambooTracker Version: 0.4.3 Release: 1%{?dist} License: GPL URL: https://github.com/rerrahkr/BambooTracker Source0: https://github.com/rerrahkr/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: make BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: qt5-qtmultimedia-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-gui BuildRequires: qt5-linguist BuildRequires: qtchooser %description BambooTracker is a music tracker for the Yamaha YM2608 (OPNA) sound chip which was used in NEC PC-8801/9801 series computers. %prep %autosetup -n %{name}-%{commit0} %build cd BambooTracker %qmake_qt5 "PREFIX=/usr" BambooTracker.pro %make_build PREFIX=/usr %install cd BambooTracker %make_install INSTALL_ROOT=%{buildroot} PREFIX=/usr cd .. %__install -m 755 -d %{buildroot}/%{_datadir}/applications/ %__install -m 644 BambooTracker.desktop %{buildroot}%{_datadir}/applications/ %__install -m 755 -d %{buildroot}/%{_datadir}/%{name}/demos/ cp -r demos/* %{buildroot}%{_datadir}/%{name}/demos/ %__install -m 755 -d %{buildroot}/%{_datadir}/man/man1 %__install -m 644 BambooTracker.1 %{buildroot}%{_datadir}/man/man1/%{name}.1 %__install -m 755 -d %{buildroot}/%{_datadir}/man/fr/man1 %__install -m 644 BambooTracker.fr.1 %{buildroot}%{_datadir}/man/fr/man1/%{name}.1 %__install -m 755 -d %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/ %__install -m 644 img/icon.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png desktop-file-install --vendor '' \ --add-category=Midi \ --add-category=Sequencer \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}.desktop %files %defattr(-,root,root,-) %doc CHANGELOG.md IMPORTANT.md LICENSE README.md README_ja.md %license LICENSE %{_bindir}/* %{_datadir}/* %changelog * Sun Jun 28 2020 Yann Collette - 0.4.3-1 - update to version 0.4.3-1 * Sun May 10 2020 Yann Collette - 0.4.2-1 - update to version 0.4.2-1 * Sat Apr 25 2020 Yann Collette - 0.4.1-1 - update to version 0.4.1-1 * Thu Apr 2 2020 Yann Collette - 0.4.0-1 - update to version 0.4.0-1 * Sun Feb 23 2020 Yann Collette - 0.3.5-1 - update to version 0.3.5-1 * Wed Jan 29 2020 Yann Collette 0.3.4-1 - Update to version 0.3.4 * Wed Dec 18 2019 Yann Collette 0.3.3-1 - Update to version 0.3.3 * Sun Dec 15 2019 Yann Collette 0.3.2-1 - Update to version 0.3.2 * Sat Nov 30 2019 Yann Collette 0.3.1-1 - Update to version 0.3.1 * Fri Nov 1 2019 Yann Collette 0.3.0-1 - Update to version 0.3.0 * Tue Sep 17 2019 Yann Collette 0.2.4-1 - Update to version 0.2.4 * Sun Sep 1 2019 Yann Collette 0.2.3-1 - Update to version 0.2.3 * Thu Jun 27 2019 Yann Collette 0.2.2-1 - Update to version 0.2.2 * Mon Jun 17 2019 Yann Collette 0.2.1-1 - Update to version 0.2.1 * Thu May 30 2019 Yann Collette 0.2.0-1 - Initial release of spec file