# Disable tests because some of the tools are not available in Fedora %bcond_with tests Name: flacon Version: 9.4.0 Release: 1%{?dist} Summary: Audio File Encoder License: LGPLv2+ URL: https://flacon.github.io/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: uchardet-devel BuildRequires: pkgconfig(taglib) # For %%check BuildRequires: %{_bindir}/appstream-util BuildRequires: %{_bindir}/desktop-file-validate %if %{with tests} # Test deps BuildRequires: %{_bindir}/mac BuildRequires: %{_bindir}/flac BuildRequires: %{_bindir}/wavpack BuildRequires: %{_bindir}/ttaenc %endif BuildRequires: make # formats/aac.h (encoder) Recommends: %{_bindir}/faac # formats/ape.h (decoder) Recommends: %{_bindir}/mac # formats/flac.h (encoder, decoder) Recommends: %{_bindir}/flac # formats/flac.h (gain) Recommends: %{_bindir}/metaflac # formats/mp3.h (encoder) Recommends: %{_bindir}/lame # formats/mp3.h (gain) Recommends: %{_bindir}/mp3gain # formats/ogg.h (encoder) Recommends: %{_bindir}/oggenc # formats/ogg.h (gain) Recommends: %{_bindir}/vorbisgain # formats/opus.h (encoder) Recommends: %{_bindir}/opusenc # formats/tta.h (decoder) Recommends: %{_bindir}/ttaenc # formats/wv.h (encoder) Recommends: %{_bindir}/wavpack # formats/wc.h (decoder) Recommends: %{_bindir}/wvunpack # formats/wc.h (gain) Recommends: %{_bindir}/wvgain %description Flacon extracts individual tracks from one big audio file containing the entire album of music and saves them as separate audio files. To do this, it uses information from the appropriate CUE file. Besides, Flacon makes it possible to conveniently revise or specify tags both for all tracks at once or for each tag separately. %prep %autosetup -p1 %build %cmake -DBUILD_TESTS=%{?with_tests:Yes}%{!?with_tests:No} %cmake_build %install %cmake_install %find_lang %{name} --with-qt %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.github.Flacon.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %if %{with tests} cd %{_target_platform}/tests && ./flacon_test %endif %files -f %{name}.lang %doc README.md %license LICENSE %{_bindir}/%{name} %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/translations %{_datadir}/metainfo/com.github.Flacon.metainfo.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_mandir}/man1/%{name}.1* %changelog * Mon Oct 03 2022 Vasiliy N. Glazov - 9.4.0-1 - Update to 9.4.0 * Sat Sep 24 2022 Vasiliy N. Glazov - 9.3.0-1 - Update to 9.3.0 * Tue Aug 30 2022 Vasiliy N. Glazov - 9.2.0-1 - Update to 9.2.0 * Thu Jul 21 2022 Fedora Release Engineering - 9.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 28 2022 Vasiliy N. Glazov - 9.1.0-1 - Update to 9.1.0 * Sat Apr 30 2022 Vasiliy N. Glazov - 9.0.0-1 - Update to 9.0.0 * Tue Feb 08 2022 Timothée Ravier - 8.3.0-2 - Use AppStream metadata from upstream * Fri Feb 04 2022 Vasiliy N. Glazov - 8.3.0-1 - Update to 8.3.0 * Thu Jan 20 2022 Fedora Release Engineering - 8.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 21 2021 Vasiliy Glazov - 8.2.0-1 - Update to 8.2.0 * Mon Nov 29 2021 Vasiliy Glazov - 8.1.0-1 - Update to 8.1.0 * Tue Nov 16 2021 Vasiliy Glazov - 8.0.0-1 - Update to 8.0.0 * Wed Jul 28 2021 Vasiliy Glazov - 7.0.1-3 - Fix FTBFS * Wed Jul 21 2021 Fedora Release Engineering - 7.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Apr 26 2021 Vasiliy Glazov - 7.0.1-1 - Update to 7.0.1 * Tue Jan 26 2021 Fedora Release Engineering - 6.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 21 2020 Vasiliy Glazov - 6.1.0-1 - Update to 6.1.0 * Sat Aug 01 2020 Fedora Release Engineering - 5.5.1-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 5.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 5.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Oct 23 2019 Ilya Gradina - 5.5.1-1 - Update tp 5.5.1 * Thu Jul 25 2019 Fedora Release Engineering - 5.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed May 01 2019 Ilya Gradina - 5.4.0-1 - Update to 5.4.0 * Thu Jan 31 2019 Fedora Release Engineering - 5.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Nov 24 2018 Ilya Gradina - 5.0.0-1 - Update to 5.0.0 * Fri Jul 13 2018 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 25 2018 Ilya Gradina - 4.1.0-1 - Update to 4.1.0 * Wed Feb 07 2018 Fedora Release Engineering - 4.0.0-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 05 2018 Igor Gnatenko - 4.0.0-1.1 - Remove obsolete scriptlets * Sun Dec 24 2017 Igor Gnatenko - 4.0.0-1 - Update to 4.0.0 * Sun Oct 01 2017 Ilya Gradina - 3.1.1-4 - rebuilt package * Tue Sep 12 2017 Than Ngo - 3.1.1-3 - enable build on ppc64 * Mon Sep 11 2017 Ilya Gradina - 3.1.1-2 - fix build on ppc64 * Sat Aug 12 2017 Ilya Gradina - 3.1.1-1 - update to 3.1.1 * Wed Aug 02 2017 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 29 2017 Ilya Gradina - 3.0.0-1 - update to 3.0.0 * Fri Feb 10 2017 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 28 2016 Ilya Gradina - 2.1.1-1 - update to 2.1.1 * Thu Nov 10 2016 Ilya Gradina - 2.1.0-1 - update to 2.1.0 * Wed Aug 17 2016 Ilya Gradina - 2.0.1-5 - changes in appdata file * Tue May 10 2016 Ilya Gradina - 2.0.1-4 - remove the requires libfishsound - changes in the appdata.xml file * Sat May 7 2016 Ilya Gradina - 2.0.1-3 - added xml file * Sat Apr 30 2016 Ilya Gradina - 2.0.1-2 - changes in the file, thx Jiri Eischmann 1264715#c3 * Wed Apr 27 2016 Ilya Gradina - 2.0.1-1 - update to 2.0.1 - few small changes * Mon Sep 21 2015 Ilya Gradina - 1.2.0-1 - Initial package