1 |
# $Id: smeserver-unifi.pec,v 1.10 2018/03/06 17:01:42 unnilennium Exp $ |
# $Id: smeserver-unifi.spec,v 1.1 2018/03/09 05:12:43 jpp Exp $ |
2 |
# Authority: unnilennium |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
# Name: Jean-Philippe Pialasse |
4 |
|
|
5 |
Summary: smeserver-unifi |
Summary: smeserver-unifi |
6 |
%define name smeserver-unifi |
%define name smeserver-unifi |
7 |
%define version 5.6.36 |
%define version 5.6.30 |
8 |
%define release 1 |
%define release 1 |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
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 |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArch: noarch |
BuildArch: noarch |
18 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
29 |
|
|
30 |
%prep |
%prep |
31 |
%setup |
%setup |
32 |
|
%patch0 -p1 |
33 |
|
|
34 |
%build |
%build |
35 |
/usr/bin/perl createlinks |
/usr/bin/perl createlinks |
38 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
39 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
40 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
41 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/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 |
|
|
46 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
47 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
49 |
%clean |
%clean |
50 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
51 |
|
|
52 |
|
%pre |
53 |
|
%{_sbindir}/useradd -m -d /opt/UniFi ubnt >& /dev/null || : |
54 |
|
|
55 |
|
|
56 |
%post |
%post |
57 |
|
|
58 |
%changelog |
%changelog |
59 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.36-1.sme |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.6.30-1.sme |
60 |
- initial release |
- initial release |
61 |
|
|