1 |
# $Id: smeserver-support.spec,v 1.20 2018/05/02 17:58:16 jpp Exp $ |
# $Id: smeserver-support.spec,v 1.24 2021/04/08 01:50:58 jpp Exp $ |
2 |
|
%define copykooz 2013 - 2021 |
3 |
Summary: SME Server module to display support and licensing information |
Summary: SME Server module to display support and licensing information |
4 |
%define name smeserver-support |
%define name smeserver-support |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.8.0 |
%define version 2.8.0 |
7 |
%define release 16 |
%define release 20 |
8 |
|
|
9 |
# These packages come from CentOS, but we need to use care when |
# These packages come from CentOS, but we need to use care when |
10 |
# updating them - either we've patched them, or we need to do something |
# updating them - either we've patched them, or we need to do something |
11 |
# prior to taking the update |
# prior to taking the update |
12 |
|
|
13 |
# TODO: check mkinitrd,mdadm to see if needed |
# TODO: check mkinitrd,mdadm to see if needed |
14 |
%define centos_excludes initscripts,libgsf,samba*,libsmbclient,libwbclient,libtevent,python-tevent |
%define centos_excludes initscripts,libgsf |
15 |
%define centos_remove kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,openssl |
%define centos_remove kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,openssl,samba,samba-client,samba-client-libs,samba-common,samba-common-libs,samba-common-tools,samba-libs,samba*,libsmbclient,libwbclient,libtevent,python-tevent |
16 |
|
|
17 |
Version: %{version} |
Version: %{version} |
18 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
26 |
Patch4: smeserver-support-2.8.0-koozali_manager.patch |
Patch4: smeserver-support-2.8.0-koozali_manager.patch |
27 |
Patch5: smeserver-support-2.8.0-bz9676hover.patch |
Patch5: smeserver-support-2.8.0-bz9676hover.patch |
28 |
Patch6: smeserver-support-2.8.0-bz10516.patch |
Patch6: smeserver-support-2.8.0-bz10516.patch |
29 |
|
Patch7: smeserver-support-2.8.0-bz11167-update.patch |
30 |
|
Patch8: smeserver-support-2.8.0-bz11535.patch |
31 |
|
Patch9: smeserver-support-2.8.0-bz11568-copyright.patch |
32 |
|
|
33 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
34 |
BuildRequires: e-smith-devtools >= 1.7.5 |
BuildRequires: e-smith-devtools >= 1.7.5 |
35 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
108 |
Requires: dmraid |
Requires: dmraid |
109 |
|
|
110 |
%changelog |
%changelog |
111 |
|
* Mon Apr 19 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.8.0-20.sme |
112 |
|
- fix copyright date and make it easier to update from spec file [SME: 11568] |
113 |
|
|
114 |
|
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.8.0-19.sme |
115 |
|
- fix typo and wording [SME: 11535] |
116 |
|
|
117 |
|
* Fri Jan 08 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-18.sme |
118 |
|
- add update event [SME: 11167] |
119 |
|
|
120 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-17.sme |
121 |
|
- revert update of samba using upstream CentOS repo [SME: 11196] |
122 |
|
|
123 |
* Thu May 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-16.sme |
* Thu May 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-16.sme |
124 |
- obsoletes e-smith-starterwebsite [SME: 8903] |
- obsoletes e-smith-starterwebsite [SME: 8903] |
125 |
|
|
948 |
%patch4 -p1 |
%patch4 -p1 |
949 |
%patch5 -p1 |
%patch5 -p1 |
950 |
%patch6 -p1 |
%patch6 -p1 |
951 |
|
%patch7 -p1 |
952 |
|
%patch8 -p1 |
953 |
|
%patch9 -p1 |
954 |
|
|
955 |
%build |
%build |
956 |
perl createlinks |
perl createlinks |
957 |
|
|
958 |
ln -s initial.cgi root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/index.cgi |
ln -s initial.cgi root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/index.cgi |
959 |
|
find root/ -type f | xargs grep -l ____COPYYEARS____ | xargs sed -i -e 's/____COPYYEARS____/%{copykooz}/g' |
960 |
YUM_REPOS=root/etc/e-smith/db/yum_repositories/ |
YUM_REPOS=root/etc/e-smith/db/yum_repositories/ |
961 |
for dir in base updates |
for dir in base updates |
962 |
do |
do |