1 |
# $Id: smeserver-centos2sme.spec,v 1.2 2018/03/09 20:23:58 jpp Exp $ |
# $Id: smeserver-centos2sme.spec,v 1.3 2018/03/10 04:30:17 jpp Exp $ |
2 |
# Authority: unnilennium |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
# Name: Jean-Philippe Pialasse |
4 |
|
|
6 |
%define name smeserver-centos2sme |
%define name smeserver-centos2sme |
7 |
%define version 6.9.1 |
%define version 6.9.1 |
8 |
# version number CentosMajorVersion.SMEmajorVersion.RPMversion |
# version number CentosMajorVersion.SMEmajorVersion.RPMversion |
9 |
%define release 3 |
%define release 4 |
10 |
Name: %{name} |
Name: %{name} |
11 |
Version: %{version} |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
13 |
License: GPL |
License: GPL |
14 |
Group: Applications/System |
Group: Applications/System |
15 |
Source: %{name}-%{version}.tgz |
Source: %{name}-%{version}.tgz |
16 |
|
Patch0: smeserver-centos2sme-6.9.1-bz10535-fix-path.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 |
26 |
Do not use on a machine with user data present or with extra packages already installed. |
Do not use on a machine with user data present or with extra packages already installed. |
27 |
%prep |
%prep |
28 |
%setup |
%setup |
29 |
|
%patch0 -p1 |
30 |
|
|
31 |
%build |
%build |
32 |
# /usr/bin/perl createlinks |
# /usr/bin/perl createlinks |
35 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
36 |
(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) |
37 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
38 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
39 |
|
--file /usr/bin/centos2sme '%attr(0755,root,root)' \ |
40 |
|
> %{name}-%{version}-filelist |
41 |
|
cat %{name}-%{version}-filelist |
42 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
43 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
44 |
|
|
49 |
touch /etc/hosts.deny_ssh |
touch /etc/hosts.deny_ssh |
50 |
|
|
51 |
%changelog |
%changelog |
52 |
|
* Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-4.sme |
53 |
|
- fix execution permission on /usr/bin/centos2sme [SME: 10535] |
54 |
|
- added warning at the begining of script to check for working network interface |
55 |
|
- added warning at end of script to add a SSH key before the reboot |
56 |
|
- added full path to signal-event in the last messages |
57 |
|
- set path after first packages installation. |
58 |
|
|
59 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-3.sme |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-3.sme |
60 |
- fix bad dependencies to smeserver release and formagick [SME: 10535] |
- fix bad dependencies to smeserver release and formagick [SME: 10535] |
61 |
- added requirement for centos-release between 6 and 7. |
- added requirement for centos-release between 6 and 7. |