1 |
%define name smeserver-subsonic |
2 |
%define version 4.8 |
3 |
%define release 4 |
4 |
Summary: subsonic is a helpdesk system |
5 |
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-subsonic-%{version}.tar.gz |
12 |
Patch0: smeserver-subsonic-4.8-patch0.patch |
13 |
Patch1: smeserver-subsonic-4.8-patch1.patch |
14 |
Patch2: smeserver-subsonic-4.8-patch2.patch |
15 |
Patch3: smeserver-subsonic-4.8-patch3.patch |
16 |
BuildArchitectures: noarch |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
18 |
BuildRequires: e-smith-devtools |
19 |
Requires: e-smith-release >= 8.0 |
20 |
Requires: subsonic |
21 |
Requires: ffmpeg |
22 |
Requires: java |
23 |
AutoReqProv: no |
24 |
|
25 |
%changelog |
26 |
* Sat Oct 26 2013 JP Pialasse <tests@pialasse.com> 4.8-4.sme |
27 |
- fixing some generator errors |
28 |
- adding configurations described in wiki manual installation |
29 |
- adding java and ffmpeg requirement |
30 |
|
31 |
* Sat Oct 26 2013 Contrib Maker <tests@pialasse.com> 4.8-1.sme |
32 |
- initial release |
33 |
- builds from unchanged .tar.gz |
34 |
|
35 |
|
36 |
%description |
37 |
subsonic is an application adapted as a contrib for SMEserver |
38 |
|
39 |
%pre |
40 |
|
41 |
grep '^subsonic:' /etc/passwd > /dev/null || \ |
42 |
/usr/sbin/useradd -c "subsonic" -M -d /usr/share/subsonic -s /bin/bash subsonic |
43 |
|
44 |
|
45 |
%prep |
46 |
%setup |
47 |
%patch0 -p1 |
48 |
%patch1 -p1 |
49 |
%patch2 -p1 |
50 |
%patch3 -p1 |
51 |
|
52 |
%build |
53 |
perl createlinks |
54 |
|
55 |
%install |
56 |
rm -rf $RPM_BUILD_ROOT |
57 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
58 |
rm -f %{name}-%{version}-filelist |
59 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
60 |
> %{name}-%{version}-filelist |
61 |
|
62 |
%clean |
63 |
rm -rf $RPM_BUILD_ROOT |
64 |
|
65 |
%files -f %{name}-%{version}-filelist |
66 |
%defattr(-,root,root) |
67 |
|
68 |
|
69 |
%post |
70 |
#(needed if a contrib and it contains DB templates) |
71 |
#/etc/e-smith/events/actions/initialize-default-databases |
72 |
#expand-template /etc/e-smith/sql/init/loggerdemo-create-schema.sql |
73 |
#/etc/rc.d/init.d/mysql.init start |
74 |
#true |