2 # - use FHS (/var, /usr) instead of /home/services/gnump3d
3 Summary: GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and other media formats
4 Summary(hu.UTF-8): GNUMP3d egy stream server MP3, OGG, videó és egyéb média fájlokhoz.
5 Summary(pl.UTF-8): GNUMP3d jest serwerem pozwalającym na strumieniowe transmisje dźwięku i filmów
10 Group: Applications/Multimedia
11 Source0: http://savannah.gnu.org/download/gnump3d/%{name}-%{version}.tar.bz2
12 # Source0-md5: 41786650bbc591484c08014a89478bf9
13 URL: http://www.gnu.org/software/gnump3d/
14 BuildRequires: sed >= 4.0
15 Requires(postun): /usr/sbin/groupdel
16 Requires(postun): /usr/sbin/userdel
17 Requires(pre): /usr/sbin/groupadd
18 Requires(pre): /usr/sbin/useradd
19 Provides: group(gnump3d)
20 Provides: user(gnump3d)
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and
26 other media formats. It is designed to be:
28 - Small, stable, portable, self-contained, and secure.
29 - Simple to install, configure, and use.
30 - Portable across different varieties of Unix, the GNU Operating
31 System, and Microsoft Windows platforms.
33 %description -l hu.UTF-8
34 GNUMP3d egy stream szerver MP3, OGG, videó és egyéb média fájlokhoz. A
37 - kicsi, stabil, hordozható, biztonságos
38 - egyszerű telepítés, beállítás és használat
39 - hordozható a Unix különböző változatai, a GNU Operációs Rendszer és
40 a Microsoft Windows platformok között
42 %description -l pl.UTF-8
43 GNUMP3d jest serwerem pozwalającym na strumieniowe transmisje danych
44 multimedialnych takich jak muzyka w formacie mp3 lub ogg oraz filmy.
45 HNUMP3d został tak zaprojektowany, aby być:
47 - mały, stabilny, przenośny, niezależny od innych programów,
49 - łatwy do instalacji, skonfigurowania, uruchomienia;
50 - przenośny pomiędzy różnymi wersjami Uniksa, systemem GNU oraz
55 %{__sed} -i "s,\`perl.*\`,%{perl_vendorlib}/," Makefile
58 rm -rf $RPM_BUILD_ROOT
60 PREFIX=$RPM_BUILD_ROOT \
61 MANDIR=%{_mandir}/man1
63 ln -sf gnump3d2 $RPM_BUILD_ROOT%{_bindir}/gnump3d
64 %{__sed} -i "s|^user =.*|user = gnump3d|" $RPM_BUILD_ROOT%{_sysconfdir}/gnump3d/gnump3d.conf
65 %{__sed} -i "s@/var/\([^/]*\)/gnump3d@/home/services/gnump3d/\1@" $RPM_BUILD_ROOT%{_sysconfdir}/gnump3d/gnump3d.conf
66 install -d $RPM_BUILD_ROOT/home/services/gnump3d/{log,cache}
67 touch $RPM_BUILD_ROOT/home/services/gnump3d/cache/serving
70 rm -rf $RPM_BUILD_ROOT
73 %groupadd -g 202 gnump3d
74 %useradd -u 202 -r -d /home/services/gnump3d -s /bin/false -c "GNUMP3d User" -g gnump3d gnump3d
77 if [ "$1" = "0" ]; then
83 %defattr(644,root,root,755)
84 %dir %{_sysconfdir}/gnump3d
85 # XXX %config tags for config files!
86 %{_sysconfdir}/gnump3d/*
87 %attr(755,root,root) %{_bindir}/*
90 %dir %{perl_vendorlib}/gnump3d
91 %{perl_vendorlib}/gnump3d/*
93 %dir /home/services/gnump3d
94 # XXX own dirs by root, let it be group writable, unless there's good reason otherwise
95 %attr(755,gnump3d,gnump3d) /home/services/gnump3d/log
96 %dir %attr(755,gnump3d,gnump3d) /home/services/gnump3d/cache
97 %attr(755,gnump3d,gnump3d) /home/services/gnump3d/cache/serving