1 |
# $Id: smeserver-unifi.spec,v 1.3 2022/08/04 02:36:32 jpp Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
4 |
%define installer 7.1.68 |
5 |
Summary: smeserver-unifi |
6 |
%define name smeserver-unifi |
7 |
%define version 5.6.30 |
8 |
%define release 2 |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{installer}%{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-unifi-5.6.30-smeserverSteveJenkins.patch |
16 |
Patch1: smeserver-unifi-5.6.30-sme10.patch |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArch: noarch |
19 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
20 |
Requires: smeserver-release >= 10.0 |
21 |
Requires: mongodb-org >= 3.6 |
22 |
#Requires: redhat-lsb |
23 |
#Requires: scl-utils |
24 |
#Requires: rh-mongodb34-runtime |
25 |
#Requires: rh-mongodb34-mongodb-server |
26 |
#Requires: rh-mongodb34-mongodb |
27 |
Requires: java-1.8.0-openjdk |
28 |
|
29 |
%description |
30 |
Integration package for Ubiquiti Unifi controller on Koozali SME Server. |
31 |
|
32 |
%prep |
33 |
%setup |
34 |
%patch0 -p1 |
35 |
%patch1 -p1 |
36 |
rm root/etc/rc.d -rf |
37 |
|
38 |
echo %{installer} > root/etc/e-smith/db/configuration/defaults/unifi/VersionToInstall |
39 |
%build |
40 |
/usr/bin/perl createlinks |
41 |
|
42 |
%install |
43 |
/bin/rm -rf $RPM_BUILD_ROOT |
44 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
45 |
/bin/rm -f %{name}-%{version}-filelist |
46 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
--dir /opt/UniFi 'attr(660,ubnt,ubnt)' \ |
48 |
--dir /opt/UniFi_bak 'attr(660,ubnt,ubnt)' \ |
49 |
> %{name}-%{version}-filelist |
50 |
|
51 |
%files -f %{name}-%{version}-filelist |
52 |
%defattr(-,root,root,-) |
53 |
|
54 |
%clean |
55 |
rm -rf $RPM_BUILD_ROOT |
56 |
|
57 |
%pre |
58 |
%{_sbindir}/useradd -m -d /opt/UniFi ubnt >& /dev/null || : |
59 |
|
60 |
|
61 |
%post |
62 |
|
63 |
%changelog |
64 |
* Wed Aug 03 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-2.sme |
65 |
- systemd enabled [SME: 12139] |
66 |
- update event [SME: 12139] |
67 |
- update Ports [SME: 12139] |
68 |
- use LE cert if available [SME: 10534] |
69 |
- add to core backup [SME: 12027] |
70 |
|
71 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.30-1.sme |
72 |
- initial release |
73 |
|