Blame flacon.spec

38c825a
# Disable tests because some of the tools are not available in Fedora
38c825a
%bcond_with tests
38c825a
3cfc852
Name:          flacon
0e33d8f
Version:       6.1.0
0e33d8f
Release:       1%{?dist}
3cfc852
Summary:       Audio File Encoder
3cfc852
3cfc852
License:       LGPLv2+
3cfc852
URL:           https://flacon.github.io/
674503d
Source0:       https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
3cfc852
Source1:       %{name}.appdata.xml
3cfc852
fdfea93
BuildRequires:  cmake
d620cac
BuildRequires:  gcc-c++
674503d
BuildRequires:  cmake(Qt5Core)
674503d
BuildRequires:  cmake(Qt5Widgets)
674503d
BuildRequires:  cmake(Qt5Network)
674503d
BuildRequires:  cmake(Qt5LinguistTools)
fdfea93
BuildRequires:  uchardet-devel
598a6a5
# For %%check
598a6a5
BuildRequires:  %{_bindir}/appstream-util
598a6a5
BuildRequires:  %{_bindir}/desktop-file-validate
34eebfc
%if %{with tests}
34eebfc
# Test deps
34eebfc
BuildRequires:  %{_bindir}/mac
34eebfc
BuildRequires:  %{_bindir}/flac
34eebfc
BuildRequires:  %{_bindir}/wavpack
34eebfc
BuildRequires:  %{_bindir}/ttaenc
34eebfc
%endif
5454f42
BuildRequires: make
3cfc852
3eb1def
# formats/aac.h (encoder)
3eb1def
Recommends:     %{_bindir}/faac
3eb1def
# formats/ape.h (decoder)
3eb1def
Recommends:     %{_bindir}/mac
3eb1def
# formats/flac.h (encoder, decoder)
3eb1def
Recommends:     %{_bindir}/flac
3eb1def
# formats/flac.h (gain)
3eb1def
Recommends:     %{_bindir}/metaflac
3eb1def
# formats/mp3.h (encoder)
3eb1def
Recommends:     %{_bindir}/lame
3eb1def
# formats/mp3.h (gain)
3eb1def
Recommends:     %{_bindir}/mp3gain
3eb1def
# formats/ogg.h (encoder)
3eb1def
Recommends:     %{_bindir}/oggenc
3eb1def
# formats/ogg.h (gain)
3eb1def
Recommends:     %{_bindir}/vorbisgain
3eb1def
# formats/opus.h (encoder)
3eb1def
Recommends:     %{_bindir}/opusenc
3eb1def
# formats/tta.h (decoder)
3eb1def
Recommends:     %{_bindir}/ttaenc
3eb1def
# formats/wv.h (encoder)
3eb1def
Recommends:     %{_bindir}/wavpack
3eb1def
# formats/wc.h (decoder)
3eb1def
Recommends:     %{_bindir}/wvunpack
3eb1def
# formats/wc.h (gain)
3eb1def
Recommends:     %{_bindir}/wvgain
3cfc852
3cfc852
%description
3cfc852
Flacon extracts individual tracks from one big audio file containing
3cfc852
the entire album of music and saves them as separate audio files. 
3cfc852
To do this, it uses information from the appropriate CUE file. 
3cfc852
Besides, Flacon makes it possible to conveniently revise or specify 
3cfc852
tags both for all tracks at once or for each tag separately.
3cfc852
3cfc852
%prep
3cfc852
%autosetup
3cfc852
3cfc852
%build
0e33d8f
%cmake -DBUILD_TESTS=%{?with_tests:Yes}%{!?with_tests:No}
c0dd6c1
%make_build -C %{_target_platform}
3cfc852
3cfc852
%install
c0dd6c1
%make_install -C %{_target_platform}
3cfc852
mkdir -p %{buildroot}%{_datadir}/appdata 
3cfc852
cp -a %{SOURCE1} %{buildroot}%{_datadir}/appdata
1cf22ec
rm -r %{buildroot}%{_datadir}/metainfo
3cfc852
%find_lang %{name} --with-qt
3cfc852
3cfc852
%check
3cfc852
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
3cfc852
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
38c825a
%if %{with tests}
38c825a
cd %{_target_platform}/tests && ./flacon_test
38c825a
%endif
3cfc852
674503d
%files -f %{name}.lang
3cfc852
%doc README.md
3cfc852
%license LICENSE
3cfc852
%{_bindir}/%{name}
674503d
%dir %{_datadir}/%{name}
674503d
%dir %{_datadir}/%{name}/translations
3cfc852
%{_datadir}/appdata/%{name}.appdata.xml
3cfc852
%{_datadir}/applications/%{name}.desktop
674503d
%{_datadir}/icons/hicolor/*/apps/%{name}.*
674503d
%{_mandir}/man1/%{name}.1*
3cfc852
3cfc852
%changelog
0e33d8f
* Mon Dec 21 2020 Vasiliy Glazov <vascom2@gmail.com> - 6.1.0-1
0e33d8f
- Update to 6.1.0
0e33d8f
ae085db
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-4
ae085db
- Second attempt - Rebuilt for
ae085db
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ae085db
1167450
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-3
1167450
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1167450
e28b46f
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
e28b46f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e28b46f
1cf22ec
* Wed Oct 23 2019 Ilya Gradina <ilya.gradina@gmail.com> - 5.5.1-1
1cf22ec
- Update tp 5.5.1
1cf22ec
d9663d5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-2
d9663d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d9663d5
Ilia Gradina da6e01d
* Wed May 01 2019 Ilya Gradina <ilya.gradina@gmail.com> - 5.4.0-1
Ilia Gradina da6e01d
- Update to 5.4.0
Ilia Gradina da6e01d
e2cbaf2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
e2cbaf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e2cbaf2
Ilia Gradina 8292e43
* Sat Nov 24 2018 Ilya Gradina <ilya.gradina@gmail.com> - 5.0.0-1
Ilia Gradina 8292e43
- Update to 5.0.0
Ilia Gradina 8292e43
9e2a3c3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
9e2a3c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9e2a3c3
716c23a
* Mon Jun 25 2018 Ilya Gradina <ilya.gradina@gmail.com> - 4.1.0-1
716c23a
- Update to 4.1.0
716c23a
57c6ca3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2.1
57c6ca3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
57c6ca3
1863a8f
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.0-1.1
1863a8f
- Remove obsolete scriptlets
1863a8f
674503d
* Sun Dec 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.0-1
674503d
- Update to 4.0.0
674503d
85bd55e
* Sun Oct 01 2017 Ilya Gradina <ilya.gradina@gmail.com> - 3.1.1-4
85bd55e
- rebuilt package
85bd55e
9a008fa
* Tue Sep 12 2017 Than Ngo <than@redhat.com> - 3.1.1-3
9a008fa
- enable build on ppc64
9a008fa
0c6320b
* Mon Sep 11 2017 Ilya Gradina <ilya.gradina@gmail.com> - 3.1.1-2
0c6320b
- fix build on ppc64 
0c6320b
084961c
* Sat Aug 12 2017 Ilya Gradina <ilya.gradina@gmail.com> - 3.1.1-1
084961c
- update to 3.1.1
084961c
3d354f3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
3d354f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3d354f3
61f33e9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
61f33e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
61f33e9
ce369bf
* Thu Jun 29 2017 Ilya Gradina <ilya.gradina@gmail.com> - 3.0.0-1
ce369bf
- update to 3.0.0
ce369bf
0557a48
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
0557a48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0557a48
5ba97c1
* Wed Dec 28 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.1.1-1
5ba97c1
- update to 2.1.1
5ba97c1
5ba97c1
* Thu Nov 10 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.1.0-1
a153749
- update to 2.1.0
a153749
a8673cf
* Wed Aug 17 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.0.1-5
a8673cf
- changes in appdata file
a8673cf
3cfc852
* Tue May 10 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.0.1-4
3cfc852
- remove the requires libfishsound
3cfc852
- changes in the appdata.xml file
3cfc852
3cfc852
* Sat May  7 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.0.1-3
3cfc852
- added xml file
3cfc852
3cfc852
* Sat Apr 30 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.0.1-2
3cfc852
- changes in the file, thx Jiri Eischmann 1264715#c3
3cfc852
3cfc852
* Wed Apr 27 2016 Ilya Gradina <ilya.gradina@gmail.com> - 2.0.1-1
3cfc852
- update to 2.0.1 
3cfc852
- few small changes
3cfc852
3cfc852
* Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 1.2.0-1
3cfc852
- Initial package