File musicbox.spec of Package musicbox
#
# spec file for package musicbox
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: musicbox
Version: 1.0.1
Release: 0
Summary: Music Player
License: GPL-2.0
Group: Productivity/Multimedia/Sound/Players
Url: http://hugo.pereira.free.fr/software
Source: %{name}-%{version}.tar.gz
Patch1: desktop.diff
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: extra-cmake-modules
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig(libmpd)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(libssh2)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(taglib)
BuildRequires: pkgconfig(libcdio_paranoia)
BuildRequires: pkgconfig(libcddb)
Requires(post): desktop-file-utils
Requires(pre): desktop-file-utils
Requires: mpd
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Musicbox is a music player client for the Music Player Daemon.
%prep
%setup -q
%patch1 -p1
%build
%cmake \
-DUSE_QT5=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
%make_jobs
%install
%cmake_install
install -Dm 0644 %{name}.desktop -t %{buildroot}%{_datadir}/applications/
install -Dm 0644 %{name}.png -t %{buildroot}%{_datadir}/pixmaps/
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog