]> git.pld-linux.org Git - packages/mpd.git/blobdiff - mpd.spec
- initial
[packages/mpd.git] / mpd.spec
index f8b919d2f90ce7e3f903983c277d33d94a683fbc..aa97bb271bb8c0a90b00078ac557194bc43ff5ad 100644 (file)
--- a/mpd.spec
+++ b/mpd.spec
 # TODO:
 # - add initscript
-# - create user for daemon (group audio)
 # - add dir to store playlists and songs DB
-# - create default config 
 # - add logrotate
 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.11.5
-Release:       0.1
-Epoch:         0
-License:       GPL
+Version:       0.13.2
+Release:       1.1
+License:       GPL v2+
 Group:         Applications/Multimedia
-Source0:       http://mercury.chem.pitt.edu/~shank/%{name}-%{version}.tar.gz
-# Source0-md5: 1a9a1a9d31f00a43838b3752024f7ebe
+Source0:       http://musicpd.org/uploads/files/%{name}-%{version}.tar.bz2
+# Source0-md5: b461896369949ff3cff955692ead9f8b
+Source1:       %{name}.conf
 URL:           http://www.musicpd.org/
-BuildRequires: alsa-lib-devel
+BuildRequires: alsa-lib-devel >= 0.9.0
 BuildRequires: audiofile-devel >= 0.1.7
+BuildRequires: avahi-devel
 BuildRequires: faad2-devel
 BuildRequires: flac-devel >= 1.1.0
+BuildRequires: jack-audio-connection-kit-devel >= 0.4
 BuildRequires: libao-devel >= 0.8.3
 BuildRequires: libid3tag-devel
 BuildRequires: libmad-devel
-BuildRequires: libmikmod-devel
+BuildRequires: libmikmod-devel >= 3.1.7
+BuildRequires: libmpcdec-devel
 BuildRequires: libogg-devel
+BuildRequires: libsamplerate-devel >= 0.0.15
+BuildRequires: libshout-devel
 BuildRequires: libvorbis-devel
+BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: pulseaudio-devel
 BuildRequires: zlib-devel
-#BuildRequires:        gcc-c++
+Provides:      group(mpd)
+Provides:      user(mpd)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-mpd
+Music Player Daemon (MPD) allows remote access for playing music (MP3,
+Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists.
+MPD is designed for integrating a computer into a stereo system that
+provides control for music playback over a local network. It is also
+makes a great desktop music player, especially if you are a console
+junkie, like frontend options, or restart X often.
+
+%description -l hu.UTF-8
+Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
+(MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
+menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
+irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
+zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
+sűrűn indítják újra az X-et.
+
+%description -l pl.UTF-8
+Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
+muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
+zarządzania playlistami. MPD jest zaprojektowany do integrowania
+komputera w system stereo umożliwiający sterowanie odtwarzaniem muzyki
+w sieci lokalnej. Służy także za dobry odtwarzacz muzyki dla
+komputerów biurkowych, zwłaszcza dla miłośników konsoli, różnych opcji
+frontendów albo często restartujących X.
 
 %prep
-%setup -q 
+%setup -q
 
 %build
-%configure
+# ac_cv_* hacks to avoid unwanted linking
+%configure \
+       ac_cv_lib_iconv_main=no \
+       ac_cv_lib_nsl_gethostbyname=no \
+       --enable-ao
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-# create directories if necessary
-#install -d $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 204 mpd
+%useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd
+
+%postun
+if [ "$1" = "0" ]; then
+       %userremove mpd
+       %groupremove mpd
+fi
+
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO UPGRADING doc/COMMANDS doc/mpdconf.example
-
+%doc AUTHORS ChangeLog README TODO doc/mpdconf.example UPGRADING doc/COMMANDS
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/mpd.1*
+%{_mandir}/man5/mpd.conf.5*
+%{_sysconfdir}/mpd.conf
 
 #%{_datadir}/%{name}
 
-# initscript and it's config
+# initscript and its config
 #%attr(754,root,root) /etc/rc.d/init.d/%{name}
 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
This page took 0.117994 seconds and 4 git commands to generate.