]> git.pld-linux.org Git - SPECS.git/blob - gnump3d.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / gnump3d.spec
1 # TODO
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
6 Name:           gnump3d
7 Version:        3.0
8 Release:        0.1
9 License:        GPL v2+
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)
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and
26 other media formats. It is designed to be:
27
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.
32
33 %description -l hu.UTF-8
34 GNUMP3d egy stream szerver MP3, OGG, videó és egyéb média fájlokhoz. A
35 következők jellemzik:
36
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
41
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ć:
46
47 - mały, stabilny, przenośny, niezależny od innych programów,
48   bezpieczny;
49 - łatwy do instalacji, skonfigurowania, uruchomienia;
50 - przenośny pomiędzy różnymi wersjami Uniksa, systemem GNU oraz
51   systemami Microsoftu.
52
53 %prep
54 %setup -q
55 %{__sed} -i "s,\`perl.*\`,%{perl_vendorlib}/," Makefile
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %{__make} install \
60         PREFIX=$RPM_BUILD_ROOT \
61         MANDIR=%{_mandir}/man1
62
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
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %pre
73 %groupadd -g 202 gnump3d
74 %useradd -u 202 -r -d /home/services/gnump3d -s /bin/false -c "GNUMP3d User" -g gnump3d gnump3d
75
76 %postun
77 if [ "$1" = "0" ]; then
78         %userremove gnump3d
79         %groupremove gnump3d
80 fi
81
82 %files
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}/*
88 %{_datadir}/%{name}
89 %{_mandir}/man1/*
90 %dir %{perl_vendorlib}/gnump3d
91 %{perl_vendorlib}/gnump3d/*
92
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
This page took 0.171594 seconds and 3 git commands to generate.