1 |
unnilennium |
1.1 |
%define name smeserver-subsonic |
2 |
|
|
%define version 4.8 |
3 |
unnilennium |
1.2 |
%define release 4 |
4 |
unnilennium |
1.1 |
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 |
unnilennium |
1.2 |
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 |
unnilennium |
1.1 |
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 |
unnilennium |
1.2 |
Requires: ffmpeg |
22 |
|
|
Requires: java |
23 |
unnilennium |
1.1 |
AutoReqProv: no |
24 |
|
|
|
25 |
unnilennium |
1.2 |
%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 |
unnilennium |
1.1 |
|
35 |
|
|
|
36 |
|
|
%description |
37 |
|
|
subsonic is an application adapted as a contrib for SMEserver |
38 |
|
|
|
39 |
unnilennium |
1.2 |
%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 |
unnilennium |
1.1 |
|
45 |
|
|
%prep |
46 |
|
|
%setup |
47 |
unnilennium |
1.2 |
%patch0 -p1 |
48 |
|
|
%patch1 -p1 |
49 |
|
|
%patch2 -p1 |
50 |
|
|
%patch3 -p1 |
51 |
unnilennium |
1.1 |
|
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 |