1 |
brianr |
1.1 |
%define name smeserver-madsonic |
2 |
|
|
%define version 5.0.3761 |
3 |
brianr |
1.2 |
%define release 3 |
4 |
|
|
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 |
|
|
BuildArchitectures: noarch |
13 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
14 |
|
|
BuildRequires: e-smith-devtools |
15 |
|
|
Requires: e-smith-release >= 8.0 |
16 |
|
|
Requires: madsonic |
17 |
|
|
Requires: ffmpeg |
18 |
|
|
Requires: java-1.7.0-openjdk >= 1.7 |
19 |
|
|
AutoReqProv: no |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
madsonic is an application adapted as a contrib for SMEserver |
23 |
|
|
|
24 |
|
|
%changelog |
25 |
brianr |
1.2 |
* Sun Dec 20 2020 Brian Read <brianr@bjsystems.co.uk> 5.0.3761-3.sme |
26 |
|
|
- Initial Import in SME10 [SME: 11280] |
27 |
|
|
|
28 |
brianr |
1.1 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 5.0.3761-1.sme |
29 |
|
|
- initial import to SME9 contribs |
30 |
|
|
|
31 |
|
|
* Wed Nov 20 2013 CONTRIB MAKER <tests@pialasse.com> 5.0.3760-2.sme |
32 |
|
|
- initial release |
33 |
|
|
- builds from unchanged .tar.gz |
34 |
|
|
|
35 |
|
|
%pre |
36 |
|
|
grep '^madsonic:' /etc/passwd > /dev/null || \ |
37 |
|
|
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
38 |
|
|
|
39 |
|
|
%prep |
40 |
|
|
%setup |
41 |
|
|
|
42 |
|
|
%build |
43 |
|
|
perl createlinks |
44 |
|
|
|
45 |
|
|
%install |
46 |
|
|
rm -rf $RPM_BUILD_ROOT |
47 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
48 |
|
|
rm -f %{name}-%{version}-filelist |
49 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
50 |
|
|
> %{name}-%{version}-filelist |
51 |
|
|
|
52 |
|
|
%clean |
53 |
|
|
rm -rf $RPM_BUILD_ROOT |
54 |
|
|
|
55 |
|
|
%files -f %{name}-%{version}-filelist |
56 |
|
|
%defattr(-,root,root) |
57 |
|
|
|
58 |
|
|
|