1 |
%define name smeserver-madsonic |
2 |
%define version 5.0.3761 |
3 |
%define release 1 |
4 |
Summary: madsonic 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-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 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 5.0.3761-1.sme |
26 |
- initial import to SME9 contribs |
27 |
|
28 |
* Wed Nov 20 2013 CONTRIB MAKER <tests@pialasse.com> 5.0.3760-2.sme |
29 |
- initial release |
30 |
- builds from unchanged .tar.gz |
31 |
|
32 |
%pre |
33 |
grep '^madsonic:' /etc/passwd > /dev/null || \ |
34 |
/usr/sbin/useradd -c "madsonic" -M -d /usr/share/madsonic -s /bin/bash madsonic |
35 |
|
36 |
%prep |
37 |
%setup |
38 |
|
39 |
%build |
40 |
perl createlinks |
41 |
|
42 |
%install |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
45 |
rm -f %{name}-%{version}-filelist |
46 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
> %{name}-%{version}-filelist |
48 |
|
49 |
%clean |
50 |
rm -rf $RPM_BUILD_ROOT |
51 |
|
52 |
%files -f %{name}-%{version}-filelist |
53 |
%defattr(-,root,root) |
54 |
|
55 |
|