/[smecontribs]/rpms/smeserver-unifi/contribs10/smeserver-unifi.spec
ViewVC logotype

Contents of /rpms/smeserver-unifi/contribs10/smeserver-unifi.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Aug 4 02:24:25 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
Changes since 1.1: +19 -9 lines
* Wed Aug 03 2022 Jean-Philippe Pialasse <tests@pialasse.com> 5.6.30-2.sme
- systemd enabled [SME: 12139]
- update event [SME: 12139]
- update Ports [SME: 12139]
- use LE cert if available [SME: 10534]
- add to core backup [SME: 12027]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed