%define oname Miam-Player Name: miam-player Version: 0.7.0 Release: %mkrel 2 Summary: A nice music player Group: Sound/Players License: GPLv3+ URL: http://www.miam-player.org/ # Repacked to remove windows packaging and dlls Source0: %{oname}-%{version}.tar.xz Patch0: miam-player-0.7.0-mga-libsuff.patch Patch1: miam-player-0.7.0-mga-fix-include.patch BuildRequires: imagemagick BuildRequires: pkgconfig(libvlc-qt) BuildRequires: pkgconfig(libvlc-qt-widgets) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(taglib) Requires: qtbase5-database-plugin-sqlite %description Miam Player is a cross-platform open source music player based on Qt5: - Read .mp3, .m4a (MP4), .flac, .ogg, .oga (OGG Vorbis), .asf, .ape (Monkey Audio) and more - Read and edit lots of tags using Taglib - Customize everything: user interface, covers, shortcuts, buttons, themes - Fast and reliable (audio player is provided by VLC Media Player) A plugin system makes it possible to extend the possibilites of the player. %prep %setup -q -n %{oname}-%{version} %apply_patches rm -rf code/MiamCore/3rdparty/taglib %build pushd code %qmake_qt5 %make popd %install %qmakeinstall_std -C code # Remove .so symlinks to prevent requiring devel libraries rm -f %{buildroot}%{_libdir}/*.so install -d %{buildroot}%{_datadir}/applications cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Name=Miam-Player GenericName=Music player GenericName[fr]=Lecteur audio Comment=%{summary} Comment[fr]=Un lecteur de musique sympa Exec=%{name} %U Icon=%{name} Type=Application Categories=AudioVideo;Player;Qt; EOF for size in 256 48 32 16; do install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps convert code/MiamPlayer/mp.jpg -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png done %files %doc README.txt %{_bindir}/%{name} %{_libdir}/libmiam-core.so* %{_libdir}/libmiam-uniquelibrary.so* %{_datadir}/applications/%{name}.desktop %{_iconsdir}/hicolor/*/apps/%{name}.png %changelog * Sun Feb 22 2015 akien <akien> 0.7.0-2.mga5 + Revision: 816395 - Add qtbase5-database-plugin-sqlite dependency * Wed Feb 18 2015 akien <akien> 0.7.0-1.mga5 + Revision: 815741 - imported package miam-player