1 |
# $Id: smeserver-centos2sme.spec,v 1.1 2018/03/09 19:55:57 jpp Exp $ |
# $Id: smeserver-centos2sme.spec,v 1.4 2018/03/10 17:26:09 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 2 |
%define release 5 |
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 |
|
Patch1: smeserver-centos2sme-6.9.1-bz10535-improvements.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArch: noarch |
BuildArch: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
Requires: smeserver-release >= 8.0 |
Requires: centos-release >= 6 |
22 |
Requires: centos2sme >= 2.6-20 |
Requires: centos-release < 7 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
|
23 |
|
|
24 |
%description |
%description |
25 |
Package to help transform a centos box into a Koozali SME Server. |
Package to help transform a centos box into a Koozali SME Server. |
27 |
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. |
28 |
%prep |
%prep |
29 |
%setup |
%setup |
30 |
|
%patch0 -p1 |
31 |
|
%patch1 -p1 |
32 |
|
|
33 |
%build |
%build |
34 |
# /usr/bin/perl createlinks |
# /usr/bin/perl createlinks |
37 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
38 |
(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) |
39 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
40 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/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 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
45 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
46 |
|
|
51 |
touch /etc/hosts.deny_ssh |
touch /etc/hosts.deny_ssh |
52 |
|
|
53 |
%changelog |
%changelog |
54 |
|
* 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 |
|
* 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 |
|
* 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 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-2.sme |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-2.sme |
69 |
- initial version [SME: 10533] |
- initial version [SME: 10533] |
70 |
|
|