Name: yarock Version: 1.1.5 Release: 3%{?dist} Summary: Lightweight, beautiful music player # Main license is GPLv2+ in sources, # but GPLv3+ in README.md and BSD (3 clause) for widgets/flowlayout License: GPLv3+ and BSD URL: https://launchpad.net/%{name} Source0: %{url}/1.x/%{version}/+download/Yarock_%{version}_source.tar.gz BuildRequires: cmake BuildRequires: taglib-devel BuildRequires: qjson-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-linguist BuildRequires: phonon-qt5-devel BuildRequires: sqlite-devel BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: htmlcxx-devel Requires: hicolor-icon-theme %description Yarock is a music player designed to provide a clean, simple and beautiful music collection based on album cover-art. %prep %setup -q -n Yarock_%{version}_source # Fix the incorrect PHONON include directory for QT5 sed -i 's/PHONON_INCLUDE_DIR/PHONON4QT5_INCLUDE_DIR/g' src/core/player/phonon/CMakeLists.txt # remove empty dir src3party rm -rfv src3party %build mkdir -p %{_target_platform} pushd %{_target_platform} %cmake .. \ -DENABLE_PHONON:BOOL=ON \ -DENABLE_VLC:BOOL=OFF popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --all-name --with-qt desktop-file-install \ --remove-key=Version \ %{buildroot}%{_datadir}/applications/%{name}.desktop %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %post /sbin/ldconfig touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %license COPYING %doc *.md %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/icons/hicolor/*/*/* %{_datadir}/applications/%{name}.desktop %{_datadir}/appdata/%{name}.appdata.xml %dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/translations/ %changelog * Mon Feb 08 2016 Raphael Groner - 1.1.5-3 - unretire - add license breakdown - add calls to ldconfig - cleanup * Fri Feb 05 2016 Fedora Release Engineering - 1.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 07 2016 Parag Nemade - 1.1.5-1 - Update to 1.1.5 - Drop upstream committed patch - This package is now started using only QT5 libraries * Wed Dec 16 2015 Parag Nemade - 1.1.4-1 - Update to 1.1.4 * Wed Dec 02 2015 Parag Nemade - 1.1.2-1 - Update 1.1.2 - Thanks to Rex for the unbundling patches * Fri Jun 19 2015 Fedora Release Engineering - 0.9.67-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.9.67-4 - Rebuilt for GCC 5 C++11 ABI change * Mon Aug 18 2014 Fedora Release Engineering - 0.9.67-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.67-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 10 2014 James Abtahi 0.9.67-1 - update for the latest version - the patch .system_libs by Rex Dieter was applied to upstream - the patch .installationpath was replaced by .translation_path * Wed Dec 04 2013 James Abtahi 0.9.64-3 - install translation files in {_datadir}/{name}/translations * Sun Dec 01 2013 James Abtahi 0.9.64-2 - fixed a typo in description - added {_datadir}/locale/{name}/ - added comments to patches * Sat Nov 30 2013 James Abtahi 0.9.64-2 - revert to {_datadir}/icons/hicolor/*/*/* * Sat Nov 23 2013 James Abtahi 0.9.64-2 - fixed a typo and added qtsinglecoreapplication-devel dependency - added desktop-file-validate * Fri Nov 22 2013 Rex Dieter 0.9.64-2 - use system qtsingleapplication, qxt libraries - use %%cmake macro * Fri Nov 22 2013 James Abtahi 0.9.64-1 - Added hicolor-icon-theme requirement and icon scriplets - Added {_prefix} macro to cmake - Removed redundant requirements - Added VERBOSE to make - Adding {optflags} * Wed Nov 20 2013 James Abtahi 0.9.64-1 - Removed extra empty lines - Some editing in Summary and Description - Removed rm -rf in install section - Removed clean section - More specific file listing for {_datadir}/icons/hicolor/*/*/* * Sat Nov 16 2013 James Abtahi 0.9.64-1 - Initial Build