# - add logrotate
#
# Conditional build:
-%bcond_without mod # enable MOD support
-%bcond_without pulseaudio # disable PulseAudio support
+%bcond_without mod # MOD support via libmikmod
+%bcond_without pulseaudio # PulseAudio support
%bcond_without audiofile # Audiofile support (WAV and others)
Summary: Music Player Daemon
-Summary(hu.UTF-8): Music Player Daemon
Summary(pl.UTF-8): Music Player Daemon - demon odtwarzajÄ…cy muzykÄ™
Name: mpd
-Version: 0.20.7
+Version: 0.20.22
Release: 1
License: GPL v2+
Group: Applications/Multimedia
Source0: http://www.musicpd.org/download/mpd/0.20/%{name}-%{version}.tar.xz
-# Source0-md5: 160155d292b6a6f9f58130292550103e
+# Source0-md5: 6acee2bc5b30f6c97fdaf46682b0116c
Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}.sysconfig
BuildRequires: yajl-devel >= 2.0
BuildRequires: zlib-devel
BuildRequires: zziplib-devel >= 0.13
+Requires(post,postun): gtk-update-icon-cache
Requires(post,preun,postun): systemd-units >= 38
Requires: alsa-lib >= 0.9.0
%{?with_audiofile:Requires: audiofile >= 0.3}
Requires: flac >= 1.2.0
Requires: fluidsynth >= 1.1
Requires: glib2 >= 1:2.28.0
+Requires: hicolor-icon-theme
Requires: jack-audio-connection-kit-libs >= 0.100
Requires: libao >= 0.8.3
%{?with_mod:Requires: libmikmod >= 3.1.7}
--enable-zzip \
--with-zeroconf=avahi \
--without-tremor \
- --with-systemdsystemunitdir=%{systemdunitdir}
+ --with-systemdsystemunitdir=%{systemdunitdir} \
+ --with-systemduserunitdir=%{systemduserunitdir}
%{__make}
%install
done
/sbin/chkconfig --add mpd
%systemd_post %{name}.service %{name}.socket
+%update_icon_cache hicolor
%preun
if [ "$1" = "0" ]; then
%groupremove mpd
fi
%systemd_reload
+%update_icon_cache hicolor
%triggerpostun -- %{name} < 0.16.6-1
%systemd_trigger %{name}.service
%files
%defattr(644,root,root,755)
-%doc AUTHORS INSTALL NEWS README.md doc/mpdconf.example
+%doc AUTHORS NEWS README.md doc/mpdconf.example
%attr(755,root,root) %{_bindir}/*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpd.conf
%attr(754,root,root) /etc/rc.d/init.d/mpd
%{systemdtmpfilesdir}/%{name}.conf
%{systemdunitdir}/mpd.service
%{systemdunitdir}/mpd.socket
+%{systemduserunitdir}/mpd.service
%dir %attr(770,root,mpd) /var/lib/%{name}
%dir %attr(770,root,mpd) /var/lib/%{name}/playlists
%dir %attr(751,root,root) /var/log/%{name}
%attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpdstate
%attr(644,mpd,mpd) %ghost /var/lib/%{name}/sticker.sql
%attr(644,mpd,mpd) %ghost /var/log/%{name}/mpd.log
+%{_iconsdir}/hicolor/scalable/apps/mpd.svg
%{_mandir}/man1/mpd.1*
%{_mandir}/man5/mpd.conf.5*