1 |
brianr |
1.1 |
%define name smeserver-madsonic |
2 |
|
|
%define version 5.0.3761 |
3 |
brianr |
1.7 |
%define release 7 |
4 |
brianr |
1.2 |
Summary: madsonic is a music streaming system |
5 |
brianr |
1.1 |
Name: %{name} |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
Distribution: SME Server |
9 |
|
|
License: GNU GPL version 2 |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: smeserver-madsonic-%{version}.tar.gz |
12 |
jpp |
1.3 |
Patch0: smeserver-madsonic-5.0.3761-sme10.patch |
13 |
jpp |
1.5 |
Patch1: smeserver-madsonic-5.0.3761-bz12014-backup.patch |
14 |
jpp |
1.6 |
Patch2: smeserver-madsonic-5.0.3761-to62.patch |
15 |
jpp |
1.3 |
|
16 |
brianr |
1.1 |
BuildArchitectures: noarch |
17 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
18 |
|
|
BuildRequires: e-smith-devtools |
19 |
|
|
Requires: e-smith-release >= 8.0 |
20 |
jpp |
1.6 |
Requires: madsonic >= 6.2.9092 |
21 |
jpp |
1.3 |
Requires: alsa-utils |
22 |
brianr |
1.1 |
Requires: ffmpeg |
23 |
jpp |
1.6 |
Requires: java-1.8.0-openjdk >= 1.8 |
24 |
|
|
Requires: perl-DateTime |
25 |
brianr |
1.1 |
AutoReqProv: no |
26 |
|
|
|
27 |
|
|
%description |
28 |
jpp |
1.6 |
This is all the configurations needed to install madsonic as a contrib for SME Server |
29 |
brianr |
1.1 |
|
30 |
|
|
%changelog |
31 |
brianr |
1.7 |
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-7.sme |
32 |
|
|
- Re-build and link to latest devtools [SME: 11997] |
33 |
|
|
|
34 |
jpp |
1.5 |
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-6.sme |
35 |
|
|
- add to core backup [SME: 12014] |
36 |
jpp |
1.6 |
- update for 6.2 neededing java-1.8.0 |
37 |
|
|
- add local test webservices |
38 |
|
|
- main rpm is now using systemd [SME: 11619] |
39 |
jpp |
1.5 |
|
40 |
jpp |
1.4 |
* Sun Jun 06 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-5.sme |
41 |
brianr |
1.7 |
- Re-build and link to latest devtools services not restarted on install [SME: 11280] |
42 |
jpp |
1.4 |
|
43 |
jpp |
1.3 |
* Fri Jun 04 2021 Jean-Philippe Pialasse <tests@pialasse.com> 5.0.3761-4.sme |
44 |
brianr |
1.7 |
- Re-build and link to latest devtools new configuration for madsonic 6 [SME: 11280] |
45 |
jpp |
1.3 |
add update event |
46 |
|
|
- add madsonic user to audio group [SME: 10700] |
47 |
|
|
- add /var/media folders and subfolders [SME: 10701] |
48 |
|
|
|
49 |
brianr |
1.2 |
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-3.sme |
50 |
|
|
- Initial Import in SME10 [SME: 11280] |
51 |
|
|
|
52 |
brianr |
1.1 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 5.0.3761-1.sme |
53 |
|
|
- initial import to SME9 contribs |
54 |
|
|
|
55 |
|
|
* Wed Nov 20 2013 CONTRIB MAKER <tests@pialasse.com> 5.0.3760-2.sme |
56 |
|
|
- initial release |
57 |
|
|
- builds from unchanged .tar.gz |
58 |
|
|
|
59 |
|
|
%pre |
60 |
|
|
grep '^madsonic:' /etc/passwd > /dev/null || \ |
61 |
|
|
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
62 |
jpp |
1.3 |
/usr/sbin/usermod -aG audio madsonic |
63 |
brianr |
1.1 |
|
64 |
|
|
%prep |
65 |
|
|
%setup |
66 |
jpp |
1.3 |
%patch0 -p1 |
67 |
|
|
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 |
68 |
jpp |
1.5 |
%patch1 -p1 |
69 |
jpp |
1.6 |
%patch2 -p1 |
70 |
brianr |
1.1 |
|
71 |
|
|
%build |
72 |
|
|
perl createlinks |
73 |
|
|
|
74 |
|
|
%install |
75 |
|
|
rm -rf $RPM_BUILD_ROOT |
76 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
77 |
|
|
rm -f %{name}-%{version}-filelist |
78 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
79 |
jpp |
1.3 |
--dir /var/media/ 'attr(0755,madsonic,madsonic)' \ |
80 |
|
|
--dir /var/media/playlist/ 'attr(0750,madsonic,madsonic)' \ |
81 |
|
|
--dir /var/media/playlist/export/ 'attr(0750,madsonic,madsonic)' \ |
82 |
|
|
--dir /var/media/playlist/import/ 'attr(0750,madsonic,madsonic)' \ |
83 |
|
|
--dir /var/media/incoming/ 'attr(0750,madsonic,madsonic)' \ |
84 |
|
|
--dir /var/media/podcast/ 'attr(0750,madsonic,madsonic)' \ |
85 |
|
|
--dir /var/media/playlists/backup/ 'attr(0750,madsonic,madsonic)' \ |
86 |
jpp |
1.6 |
--file /var/www/backend/validateLicense.view 'attr(0750,www,www)' \ |
87 |
|
|
--dir /var/www/backend/ 'attr(0750,www,www)' \ |
88 |
brianr |
1.1 |
> %{name}-%{version}-filelist |
89 |
|
|
|
90 |
|
|
%clean |
91 |
|
|
rm -rf $RPM_BUILD_ROOT |
92 |
|
|
|
93 |
|
|
%files -f %{name}-%{version}-filelist |
94 |
|
|
%defattr(-,root,root) |
95 |
|
|
|
96 |
|
|
|