]> git.pld-linux.org Git - packages/mpd.git/blobdiff - mpd.spec
up to 0.20.22
[packages/mpd.git] / mpd.spec
index 1daef911486b7f1952628bbfda5aa47c923c089f..45e185fab7c0b3907d1f066d348466e43bc546a6 100644 (file)
--- a/mpd.spec
+++ b/mpd.spec
@@ -2,20 +2,19 @@
 # - 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.19.3
+Version:       0.20.22
 Release:       1
 License:       GPL v2+
 Group:         Applications/Multimedia
-Source0:       http://www.musicpd.org/download/mpd/0.19/%{name}-%{version}.tar.xz
-# Source0-md5: f539bc9e60367d5084ed14b078140ef7
+Source0:       http://www.musicpd.org/download/mpd/0.20/%{name}-%{version}.tar.xz
+# Source0-md5: 6acee2bc5b30f6c97fdaf46682b0116c
 Source1:       %{name}.conf
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
@@ -36,24 +35,26 @@ BuildRequires:      dbus-devel
 BuildRequires: doxygen
 BuildRequires: expat-devel
 BuildRequires: faad2-devel >= 2.6.1-5
-BuildRequires: ffmpeg-devel
+BuildRequires: ffmpeg-devel >= 0.8.0
 BuildRequires: flac-devel >= 1.2.0
 BuildRequires: fluidsynth-devel >= 1.1
 BuildRequires: game-music-emu-devel
+BuildRequires: gcc >= 6:4.7
 BuildRequires: glib2-devel >= 1:2.28.0
-BuildRequires: harfbuzz-icu-devel
 BuildRequires: jack-audio-connection-kit-devel >= 0.100
 BuildRequires: lame-libs-devel
 BuildRequires: libao-devel >= 0.8.3
 BuildRequires: libcdio-devel
 BuildRequires: libcdio-paranoia-devel
 BuildRequires: libcue-devel
+BuildRequires: libicu-devel
 BuildRequires: libid3tag-devel
 BuildRequires: libmad-devel
 %{?with_mod:BuildRequires:     libmikmod-devel >= 3.1.7}
 BuildRequires: libmms-devel >= 0.4
 BuildRequires: libmodplug-devel
 BuildRequires: libmpdclient-devel >= 2.2
+BuildRequires: libmpg123-devel
 BuildRequires: libnfs-devel
 BuildRequires: libogg-devel
 BuildRequires: libsamplerate-devel >= 0.1.3
@@ -63,9 +64,8 @@ BuildRequires:        libsmbclient-devel >= 0.2
 BuildRequires: libsndfile-devel
 BuildRequires: libstdc++-devel >= 0.2
 BuildRequires: libupnp-devel
-BuildRequires: libwrap-devel
 BuildRequires: libvorbis-devel
-BuildRequires: mp4v2-devel
+BuildRequires: libwrap-devel
 BuildRequires: musepack-devel
 BuildRequires: opus-devel
 BuildRequires: pkgconfig >= 1:0.9.0
@@ -73,7 +73,7 @@ BuildRequires:        pkgconfig >= 1:0.9.0
 BuildRequires: rpmbuild(macros) >= 1.629-2
 BuildRequires: shine-devel >= 3.1
 BuildRequires: soxr-devel
-BuildRequires: sqlite3-devel
+BuildRequires: sqlite3-devel >= 3.7.3
 BuildRequires: systemd-devel
 BuildRequires: twolame-devel
 BuildRequires: wavpack-devel
@@ -82,8 +82,31 @@ BuildRequires:       xmlto
 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:      curl-libs >= 7.18
+Requires:      faad2-libs >= 2.6.1-5
+Requires:      ffmpeg-libs >= 0.8.0
+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}
+Requires:      libmms >= 0.4
+Requires:      libmpdclient >= 2.2
+Requires:      libsamplerate >= 0.1.3
+Requires:      libsidplay2 >= 2.1.1-5
+Requires:      libsmbclient >= 0.2
+%{?with_pulseaudio:Requires:   pulseaudio-libs >= 0.9.16}
+Requires:      shine >= 3.1
+Requires:      sqlite3 >= 3.7.3
 Requires:      systemd-units >= 38
+Requires:      yajl >= 2.0
+Requires:      zziplib >= 0.13
 Provides:      group(mpd)
 Provides:      user(mpd)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -117,6 +140,9 @@ frontendów albo często restartujących X.
 Summary:       MPD API documentation
 Summary(pl.UTF-8):     Dokumentacja API biblioteki API
 Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description apidocs
 API and internal documentation for MPD library.
@@ -190,7 +216,6 @@ GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
        --enable-mikmod \
        --enable-mms \
        --enable-modplug \
-       --enable-mp4v2 \
        --enable-mpc \
        --enable-nfs \
        --enable-openal \
@@ -199,7 +224,7 @@ GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
        --enable-pipe-output \
        --enable-recorder-output \
        --enable-sidplay \
-       --enable-shine \
+       --enable-shine-encoder \
        --enable-shout \
        --enable-smbclient \
        --enable-sndfile \
@@ -216,12 +241,12 @@ GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
        --enable-wave-encoder \
        --enable-wavpack \
        --enable-wildmidi \
-       --enable-zeroconf \
        --enable-zlib \
        --enable-zzip \
        --with-zeroconf=avahi \
        --without-tremor \
-       --with-systemdsystemunitdir=%{systemdunitdir}
+       --with-systemdsystemunitdir=%{systemdunitdir} \
+       --with-systemduserunitdir=%{systemduserunitdir}
 %{__make}
 
 %install
@@ -236,7 +261,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpd
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/mpd
-install %{SOURCE4} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
+cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 
 touch $RPM_BUILD_ROOT/var/lib/mpd/mpd.db
 touch $RPM_BUILD_ROOT/var/lib/mpd/mpdstate
@@ -262,6 +287,7 @@ for f in mpd.log; do
 done
 /sbin/chkconfig --add mpd
 %systemd_post %{name}.service %{name}.socket
+%update_icon_cache hicolor
 
 %preun
 if [ "$1" = "0" ]; then
@@ -276,13 +302,14 @@ 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 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
@@ -290,6 +317,7 @@ fi
 %{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}
@@ -298,6 +326,7 @@ fi
 %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*
 
This page took 0.095983 seconds and 4 git commands to generate.