1 |
jpp |
1.3 |
# $Id: smeserver-centos2sme.spec,v 1.2 2018/03/09 20:23:58 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.3 |
%define release 3 |
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 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
|
|
BuildArch: noarch |
18 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
19 |
jpp |
1.3 |
Requires: centos-release >= 6 |
20 |
|
|
Requires: centos-release < 7 |
21 |
jpp |
1.1 |
|
22 |
|
|
%description |
23 |
|
|
Package to help transform a centos box into a Koozali SME Server. |
24 |
|
|
Just run /usr/bin/centos2sme ; answer the few question and sit back while your base install of centos is morphed into a SME Server. |
25 |
|
|
Do not use on a machine with user data present or with extra packages already installed. |
26 |
|
|
%prep |
27 |
|
|
%setup |
28 |
|
|
|
29 |
|
|
%build |
30 |
|
|
# /usr/bin/perl createlinks |
31 |
|
|
|
32 |
|
|
%install |
33 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
34 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
35 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
36 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
37 |
|
|
|
38 |
|
|
%files -f %{name}-%{version}-filelist |
39 |
|
|
%defattr(-,root,root,-) |
40 |
|
|
|
41 |
|
|
%clean |
42 |
|
|
rm -rf $RPM_BUILD_ROOT |
43 |
|
|
|
44 |
|
|
%post |
45 |
|
|
touch /etc/hosts.deny_ssh |
46 |
|
|
|
47 |
|
|
%changelog |
48 |
jpp |
1.3 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-3.sme |
49 |
|
|
- fix bad dependencies to smeserver release and formagick [SME: 10535] |
50 |
|
|
- added requirement for centos-release between 6 and 7. |
51 |
|
|
|
52 |
jpp |
1.2 |
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-2.sme |
53 |
jpp |
1.1 |
- initial version [SME: 10533] |
54 |
|
|
|