1 |
%define name smeserver-madsonic |
%define name smeserver-madsonic |
2 |
%define version 5.0.3761 |
%define version 5.0.3761 |
3 |
%define release 3 |
%define release 4 |
4 |
Summary: madsonic is a music streaming system |
Summary: madsonic is a music streaming system |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
9 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: smeserver-madsonic-%{version}.tar.gz |
Source: smeserver-madsonic-%{version}.tar.gz |
12 |
|
Patch0: smeserver-madsonic-5.0.3761-sme10.patch |
13 |
|
|
14 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
16 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 8.0 |
Requires: e-smith-release >= 8.0 |
18 |
Requires: madsonic |
Requires: madsonic |
19 |
|
Requires: alsa-utils |
20 |
Requires: ffmpeg |
Requires: ffmpeg |
21 |
Requires: java-1.7.0-openjdk >= 1.7 |
Requires: java-1.7.0-openjdk >= 1.7 |
22 |
AutoReqProv: no |
AutoReqProv: no |
25 |
madsonic is an application adapted as a contrib for SMEserver |
madsonic is an application adapted as a contrib for SMEserver |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-4.sme |
29 |
|
- fix new configuration for madsonic 6 [SME: 11280] |
30 |
|
add update event |
31 |
|
- add madsonic user to audio group [SME: 10700] |
32 |
|
- add /var/media folders and subfolders [SME: 10701] |
33 |
|
|
34 |
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-3.sme |
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-3.sme |
35 |
- Initial Import in SME10 [SME: 11280] |
- Initial Import in SME10 [SME: 11280] |
36 |
|
|
44 |
%pre |
%pre |
45 |
grep '^madsonic:' /etc/passwd > /dev/null || \ |
grep '^madsonic:' /etc/passwd > /dev/null || \ |
46 |
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
47 |
|
/usr/sbin/usermod -aG audio madsonic |
48 |
|
|
49 |
%prep |
%prep |
50 |
%setup |
%setup |
51 |
|
%patch0 -p1 |
52 |
|
mkdir -p root/var/media/playlist/export root/var/media/playlist/import root/var/media/incoming root/var/media/podcast root/var/media/playlists/backup |
53 |
|
|
54 |
%build |
%build |
55 |
perl createlinks |
perl createlinks |
59 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
60 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
61 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
62 |
|
--dir /var/media/ 'attr(0755,madsonic,madsonic)' \ |
63 |
|
--dir /var/media/playlist/ 'attr(0750,madsonic,madsonic)' \ |
64 |
|
--dir /var/media/playlist/export/ 'attr(0750,madsonic,madsonic)' \ |
65 |
|
--dir /var/media/playlist/import/ 'attr(0750,madsonic,madsonic)' \ |
66 |
|
--dir /var/media/incoming/ 'attr(0750,madsonic,madsonic)' \ |
67 |
|
--dir /var/media/podcast/ 'attr(0750,madsonic,madsonic)' \ |
68 |
|
--dir /var/media/playlists/backup/ 'attr(0750,madsonic,madsonic)' \ |
69 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
70 |
|
|
71 |
%clean |
%clean |