1 |
# $Id: smeserver-unifi.spec,v 1.1 2021/03/10 15:19:03 brianr Exp $ |
# $Id: smeserver-unifi.spec,v 1.7 2022/11/18 07:07:12 jpp Exp $ |
2 |
# Authority: unnilennium |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
# Name: Jean-Philippe Pialasse |
4 |
%define installer 7.1.68 |
%define installer 7.1.68 |
5 |
Summary: smeserver-unifi |
Summary: smeserver-unifi |
6 |
%define name smeserver-unifi |
%define name smeserver-unifi |
7 |
%define version 5.6.30 |
%define version 5.6.30 |
8 |
%define release 2 |
%define release 5 |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{installer}%{release}%{?dist} |
Release: %{installer}.%{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Applications/System |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tgz |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-unifi-5.6.30-smeserverSteveJenkins.patch |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArch: noarch |
BuildArch: noarch |
19 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
20 |
Requires: smeserver-release >= 10.0 |
Requires: smeserver-release >= 10.0 |
|
Requires: redhat-lsb |
|
|
#Requires: scl-utils |
|
21 |
Requires: mongodb-org >= 3.6 |
Requires: mongodb-org >= 3.6 |
22 |
|
#Requires: redhat-lsb |
23 |
|
#Requires: scl-utils |
24 |
#Requires: rh-mongodb34-runtime |
#Requires: rh-mongodb34-runtime |
25 |
#Requires: rh-mongodb34-mongodb-server |
#Requires: rh-mongodb34-mongodb-server |
26 |
#Requires: rh-mongodb34-mongodb |
#Requires: rh-mongodb34-mongodb |
32 |
%prep |
%prep |
33 |
%setup |
%setup |
34 |
%patch0 -p1 |
%patch0 -p1 |
35 |
|
%patch1 -p1 |
36 |
rm root/etc/rc.d -rf |
rm root/etc/rc.d -rf |
37 |
|
|
38 |
echo %{installer} > root/etc/e-smith/db/configuration/defaults/unifi/VersionToInstall |
echo %{installer} > root/etc/e-smith/db/configuration/defaults/unifi/VersionToInstall |
46 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
--dir /opt/UniFi 'attr(660,ubnt,ubnt)' \ |
--dir /opt/UniFi 'attr(660,ubnt,ubnt)' \ |
48 |
--dir /opt/UniFi_bak 'attr(660,ubnt,ubnt)' \ |
--dir /opt/UniFi_bak 'attr(660,ubnt,ubnt)' \ |
49 |
|
--file /sbin/e-smith/systemd/unifi 'attr(755,root,root)' \ |
50 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
51 |
|
|
52 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
62 |
%post |
%post |
63 |
|
|
64 |
%changelog |
%changelog |
65 |
|
* Mon Dec 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-5.sme |
66 |
|
- fix execution bit again [SME: 12225] |
67 |
|
|
68 |
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-4.sme |
69 |
|
- add execution bit [SME: 12225] |
70 |
|
|
71 |
|
* Sat Oct 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-3.sme |
72 |
|
- fix [SME: 10534] |
73 |
|
|
74 |
* Wed Aug 03 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-2.sme |
* Wed Aug 03 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-2.sme |
75 |
- systemd enabled [SME: 12139] |
- systemd enabled [SME: 12139] |
76 |
- update event [SME: 12139] |
- update event [SME: 12139] |