Blame flacon.spec

3cfc852
Name:          flacon
3cfc852
Version:       2.0.1
3cfc852
Release:       4%{?dist}
3cfc852
Summary:       Audio File Encoder
3cfc852
3cfc852
License:       LGPLv2+
3cfc852
URL:           https://flacon.github.io/
3cfc852
Source0:       https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
3cfc852
Source1:       %{name}.appdata.xml
3cfc852
3cfc852
BuildRequires: desktop-file-utils
3cfc852
BuildRequires: cmake
3cfc852
BuildRequires: libappstream-glib
3cfc852
BuildRequires: qt5-linguist
3cfc852
BuildRequires: qt5-qtbase-devel
3cfc852
BuildRequires: uchardet-devel
3cfc852
3cfc852
Requires: flac
3cfc852
Requires: opus-tools
3cfc852
Requires: vorbisgain
3cfc852
Requires: vorbis-tools
3cfc852
Requires: shntool
3cfc852
Requires: wavpack
3cfc852
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
3cfc852
%prep
3cfc852
%autosetup
3cfc852
3cfc852
3cfc852
%build
3cfc852
mkdir -p %{_target_platform}
3cfc852
pushd %{_target_platform}
3cfc852
%cmake  \
3cfc852
    -DBUILD_TESTS=Yes \
3cfc852
    -DUSE_QT5=Yes \
3cfc852
    ..
3cfc852
popd
3cfc852
make %{?_smp_mflags} -C %{_target_platform}
3cfc852
3cfc852
3cfc852
%install
3cfc852
make install DESTDIR=%{buildroot} -C %{_target_platform}
3cfc852
mkdir -p %{buildroot}%{_datadir}/appdata 
3cfc852
cp -a %{SOURCE1} %{buildroot}%{_datadir}/appdata
3cfc852
%find_lang %{name} --with-qt
3cfc852
3cfc852
3cfc852
%check
3cfc852
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
3cfc852
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
3cfc852
pushd %{_target_platform}
3cfc852
    cd tests && ./flacon_test || :
3cfc852
popd
3cfc852
3cfc852
3cfc852
%post
3cfc852
update-desktop-database &> /dev/null ||
3cfc852
touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
3cfc852
3cfc852
3cfc852
%postun
3cfc852
update-desktop-database &> /dev/null ||
3cfc852
if [ $1 -eq 0 ] ; then 
3cfc852
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
3cfc852
    gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
3cfc852
fi
3cfc852
3cfc852
3cfc852
%posttrans
3cfc852
gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
3cfc852
3cfc852
3cfc852
%files 
3cfc852
%doc README.md
3cfc852
%license LICENSE
3cfc852
%{_bindir}/%{name}
3cfc852
%{_datadir}/%{name}
3cfc852
%{_datadir}/appdata/%{name}.appdata.xml
3cfc852
%{_datadir}/applications/%{name}.desktop
3cfc852
%{_datadir}/icons/hicolor/*/*/%{name}.*
3cfc852
%{_mandir}/man1/%{name}.1.*
3cfc852
3cfc852
3cfc852
%changelog
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