1 |
# $Id: smeserver-support.spec,v 1.10 2016/06/16 03:04:53 unnilennium 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 8 |
%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 |
12 |
|
|
13 |
# TODO: check mkinitrd,mdadm to see if needed |
# TODO: check mkinitrd,mdadm to see if needed |
14 |
%define centos_excludes initscripts,libgsf |
%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} |
19 |
License: GPL |
License: GPL |
20 |
Group: Networking/Daemons |
Group: Networking/Daemons |
21 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
|
Source1: smeserver_logo.jpg |
|
|
Source2: smeserver_logo.gif |
|
|
Source3: btn_donateCC_LG.gif |
|
22 |
Patch0: smeserver-support-2.8.0-update_copyright_2016.patch |
Patch0: smeserver-support-2.8.0-update_copyright_2016.patch |
23 |
Patch1: smeserver-support-2.8.0-remove_smolt_service.patch |
Patch1: smeserver-support-2.8.0-remove_smolt_service.patch |
24 |
Patch2: smeserver-support-2.8.0.os-release.patch |
Patch2: smeserver-support-2.8.0.os-release.patch |
25 |
Patch3: smeserver-support-2.8.0-koozali.patch |
Patch3: smeserver-support-2.8.0-koozali.patch |
26 |
|
Patch4: smeserver-support-2.8.0-koozali_manager.patch |
27 |
|
Patch5: smeserver-support-2.8.0-bz9676hover.patch |
28 |
|
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 |
36 |
Provides: server-manager-images |
Provides: server-manager-images |
37 |
AutoReqProv: no |
AutoReqProv: no |
38 |
|
|
39 |
|
# SME 10 requires these explicitly |
40 |
|
Requires: perl(LWP::Protocol::https) |
41 |
|
|
42 |
# New features that we want to pull in on upgrades |
# New features that we want to pull in on upgrades |
43 |
Requires: screen |
Requires: screen |
44 |
Requires: smeserver-yum |
Requires: smeserver-yum |
52 |
Requires: e-smith-ibays |
Requires: e-smith-ibays |
53 |
Requires: e-smith-nutUPS |
Requires: e-smith-nutUPS |
54 |
Requires: e-smith-portforwarding |
Requires: e-smith-portforwarding |
55 |
Requires: e-smith-starterwebsite |
Obsoletes: e-smith-starterwebsite |
56 |
|
|
57 |
# 5.x used bind for name resolution - we need to pull in djbdns |
# 5.x used bind for name resolution - we need to pull in djbdns |
58 |
Requires: e-smith-dnscache |
Requires: e-smith-dnscache |
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 |
124 |
|
- obsoletes e-smith-starterwebsite [SME: 8903] |
125 |
|
|
126 |
|
* Wed May 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-15.sme |
127 |
|
- exclude libtevent,python-tevent from base and updates to avoid conflict with localy build version of samba [SME: 10573] |
128 |
|
|
129 |
|
* Sat Feb 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-14.sme |
130 |
|
- add back perl(LWP::Protocol::https) support [SME: 10516] |
131 |
|
|
132 |
|
* Mon Sep 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-13.sme |
133 |
|
- upstream samba packages were not all excluded [SME: 10428] |
134 |
|
|
135 |
|
* Mon Mar 20 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-12.sme |
136 |
|
- exclude samba from centos repo as we have our own with DC support [SME: 10155] |
137 |
|
|
138 |
|
* Fri Mar 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-11.sme |
139 |
|
- improving link to donation [SME: 9598] |
140 |
|
|
141 |
|
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-10.sme |
142 |
|
- fix hover color [SME: 9676] |
143 |
|
|
144 |
|
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-9.sme |
145 |
|
- Koozali branding of manager [SME: 9676] |
146 |
|
- new images in archive; removed old images from cvs |
147 |
|
- updated some css smeserver-support-2.8.0-koozali_manager.patch |
148 |
|
|
149 |
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-8.sme |
* Wed Jun 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.8.0-8.sme |
150 |
- reverting partly the changes in last patch [SME: 9598] |
- reverting partly the changes in last patch [SME: 9598] |
151 |
- wrong catch of proxy related url with the http to https changes |
- wrong catch of proxy related url with the http to https changes |
945 |
%patch1 -p1 |
%patch1 -p1 |
946 |
%patch2 -p1 |
%patch2 -p1 |
947 |
%patch3 -p1 |
%patch3 -p1 |
948 |
cp %{SOURCE1} root/etc/e-smith/web/common |
%patch4 -p1 |
949 |
cp %{SOURCE2} root/etc/e-smith/web/common |
%patch5 -p1 |
950 |
cp %{SOURCE3} root/etc/e-smith/web/common |
%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 |
977 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
978 |
|
|
979 |
%post |
%post |
|
[ -f /boot/grub/splash.xpm.gz ] || ln -s tux.xpm.gz /boot/grub/splash.xpm.gz |
|
|
/bin/true |
|
980 |
|
|
981 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
982 |
%defattr(-,root,root) |
%defattr(-,root,root) |