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

Annotation of /rpms/smeserver-unifi/contribs9/smeserver-unifi.spec

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


Revision 1.2 - (hide annotations) (download)
Fri Mar 9 07:23:39 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
Changes since 1.1: +13 -4 lines
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.30-1.sme
- initial release

1 jpp 1.2 # $Id: smeserver-unifi.spec,v 1.1 2018/03/09 05:12:43 jpp Exp $
2 jpp 1.1 # Authority: unnilennium
3     # Name: Jean-Philippe Pialasse
4    
5     Summary: smeserver-unifi
6     %define name smeserver-unifi
7 jpp 1.2 %define version 5.6.30
8 jpp 1.1 %define release 1
9     Name: %{name}
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: GPL
13     Group: Applications/System
14     Source: %{name}-%{version}.tgz
15 jpp 1.2 Patch0: smeserver-unifi-5.6.30-smeserverSteveJenkins.patch
16 jpp 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17     BuildArch: noarch
18     BuildRequires: e-smith-devtools >= 1.13.1-03
19     Requires: smeserver-release >= 9.0
20     Requires: redhat-lsb
21     Requires: scl-utils
22     Requires: rh-mongodb34-runtime
23     Requires: rh-mongodb34-mongodb-server
24     Requires: rh-mongodb34-mongodb
25     Requires: java-1.8.0-openjdk
26    
27     %description
28     Integration package for Ubiquiti Unifi controller on Koozali SME Server.
29    
30     %prep
31     %setup
32 jpp 1.2 %patch0 -p1
33 jpp 1.1
34     %build
35     /usr/bin/perl createlinks
36    
37     %install
38     /bin/rm -rf $RPM_BUILD_ROOT
39     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
40     /bin/rm -f %{name}-%{version}-filelist
41 jpp 1.2 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
42     --dir /opt/UniFi 'attr(ubnt,ubnt)' \
43     --dir /opt/UniFi_bak 'attr(ubnt,ubnt)' \
44     > %{name}-%{version}-filelist
45 jpp 1.1
46     %files -f %{name}-%{version}-filelist
47     %defattr(-,root,root,-)
48    
49     %clean
50     rm -rf $RPM_BUILD_ROOT
51    
52 jpp 1.2 %pre
53     %{_sbindir}/useradd -m -d /opt/UniFi ubnt >& /dev/null || :
54    
55    
56 jpp 1.1 %post
57    
58     %changelog
59 jpp 1.2 * Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.30-1.sme
60 jpp 1.1 - initial release
61    

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