# Global variables for github repository %global commit0 6053ab0499859fce09117901ccb486c6d5de2d9f %global gittag0 master %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Summary: Audio recorder Name: timemachine Version: 0.3.4 Release: 6%{?dist} License: GPL URL: https://github.com/swh/timemachine Vendor: Audinux Distribution: Audinux Source0: https://github.com/swh/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: intltool BuildRequires: make BuildRequires: alsa-lib-devel BuildRequires: gtk2-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: libsndfile-devel BuildRequires: liblo-devel BuildRequires: gettext-devel BuildRequires: desktop-file-utils %description I used to always keep a minidisc recorder in my studio running in a mode where when you pressed record it wrote the last 10 seconds of audio to the disk and then caught up to realtime and kept recording. The recorder died and haven't been able to replace it, so this is a simple jack app to do the same job. It has the advantage that it never clips and can be wired to any part of the jack graph. %prep %autosetup -n %{name}-%{commit0} # Force wav as the default format sed -i -e "s/w64/wav/g" src/main.h %build ./autogen.sh %configure %make_build %install %make_install mkdir -p %{buildroot}%{_datadir}/applications/ cat > %{buildroot}%{_datadir}/applications/timemachine.desktop << EOF [Desktop Entry] Name=timemachine Comment=Audio recorder. Exec=/usr/bin/timemachine Type=Application Terminal=0 Icon=/usr/share/timemachine/pixmaps/timemachine-icon.png Categories=AudioVideo; EOF %files %doc AUTHORS ChangeLog INSTALL NEWS README.md %license COPYING %{_bindir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/* %changelog * Sun Feb 05 2023 Yann Collette 0.3.4-6 - update to 0.3.4-6 - fix hangs * Sat Jul 11 2020 Yann Collette 0.3.4-5 - remove fedora flags which make tm hangs. Still hangs under F32 * Fri Jul 10 2020 Yann Collette 0.3.4-4 - fix spec file * Sun Dec 15 2019 Yann Collette 0.3.4-3 - Set default format to wav instead of w64 / remove fedora flags which make tm hangs * Wed Aug 21 2019 Yann Collette 0.3.4-2 - Set default format to wav instead of w64 * Thu May 9 2019 Yann Collette 0.3.4-1 - Initial spec file