1 |
jpp |
1.5 |
# $Id: smeserver-centos2sme.spec,v 1.4 2018/03/10 17:26:09 jpp Exp $ |
2 |
jpp |
1.1 |
# Authority: unnilennium |
3 |
|
|
# Name: Jean-Philippe Pialasse |
4 |
|
|
|
5 |
|
|
Summary: smeserver-centos2sme |
6 |
|
|
%define name smeserver-centos2sme |
7 |
|
|
%define version 6.9.1 |
8 |
|
|
# version number CentosMajorVersion.SMEmajorVersion.RPMversion |
9 |
jpp |
1.5 |
%define release 5 |
10 |
jpp |
1.1 |
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: Applications/System |
15 |
|
|
Source: %{name}-%{version}.tgz |
16 |
jpp |
1.4 |
Patch0: smeserver-centos2sme-6.9.1-bz10535-fix-path.patch |
17 |
jpp |
1.5 |
Patch1: smeserver-centos2sme-6.9.1-bz10535-improvements.patch |
18 |
jpp |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
BuildArch: noarch |
20 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
jpp |
1.3 |
Requires: centos-release >= 6 |
22 |
|
|
Requires: centos-release < 7 |
23 |
jpp |
1.1 |
|
24 |
|
|
%description |
25 |
|
|
Package to help transform a centos box into a Koozali SME Server. |
26 |
|
|
Just run /usr/bin/centos2sme ; answer the few question and sit back while your base install of centos is morphed into a SME Server. |
27 |
|
|
Do not use on a machine with user data present or with extra packages already installed. |
28 |
|
|
%prep |
29 |
|
|
%setup |
30 |
jpp |
1.4 |
%patch0 -p1 |
31 |
jpp |
1.5 |
%patch1 -p1 |
32 |
jpp |
1.1 |
|
33 |
|
|
%build |
34 |
|
|
# /usr/bin/perl createlinks |
35 |
|
|
|
36 |
|
|
%install |
37 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
38 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
39 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
40 |
jpp |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
41 |
|
|
--file /usr/bin/centos2sme '%attr(0755,root,root)' \ |
42 |
|
|
> %{name}-%{version}-filelist |
43 |
|
|
cat %{name}-%{version}-filelist |
44 |
jpp |
1.1 |
%files -f %{name}-%{version}-filelist |
45 |
|
|
%defattr(-,root,root,-) |
46 |
|
|
|
47 |
|
|
%clean |
48 |
|
|
rm -rf $RPM_BUILD_ROOT |
49 |
|
|
|
50 |
|
|
%post |
51 |
|
|
touch /etc/hosts.deny_ssh |
52 |
|
|
|
53 |
|
|
%changelog |
54 |
jpp |
1.5 |
* Mon Mar 12 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-5.sme |
55 |
|
|
- few improvements and bug fixes see patch improvements |
56 |
|
|
|
57 |
jpp |
1.4 |
* Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-4.sme |
58 |
|
|
- fix execution permission on /usr/bin/centos2sme [SME: 10535] |
59 |
|
|
- added warning at the begining of script to check for working network interface |
60 |
|
|
- added warning at end of script to add a SSH key before the reboot |
61 |
|
|
- added full path to signal-event in the last messages |
62 |
|
|
- set path after first packages installation. |
63 |
|
|
|
64 |
jpp |
1.3 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-3.sme |
65 |
|
|
- fix bad dependencies to smeserver release and formagick [SME: 10535] |
66 |
|
|
- added requirement for centos-release between 6 and 7. |
67 |
|
|
|
68 |
jpp |
1.2 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-2.sme |
69 |
jpp |
1.1 |
- initial version [SME: 10533] |
70 |
|
|
|