--- rpms/smeserver-support/sme10/smeserver-support.spec 2021/04/08 01:50:58 1.24 +++ rpms/smeserver-support/sme10/smeserver-support.spec 2021/04/20 02:56:24 1.25 @@ -1,10 +1,10 @@ -# $Id: smeserver-support.spec,v 1.23 2021/01/08 18:58:31 jpp Exp $ - +# $Id: smeserver-support.spec,v 1.24 2021/04/08 01:50:58 jpp Exp $ +%define copykooz 2013 - 2021 Summary: SME Server module to display support and licensing information %define name smeserver-support Name: %{name} %define version 2.8.0 -%define release 19 +%define release 20 # These packages come from CentOS, but we need to use care when # updating them - either we've patched them, or we need to do something @@ -28,6 +28,7 @@ Patch5: smeserver-support-2.8.0-bz9676ho Patch6: smeserver-support-2.8.0-bz10516.patch Patch7: smeserver-support-2.8.0-bz11167-update.patch Patch8: smeserver-support-2.8.0-bz11535.patch +Patch9: smeserver-support-2.8.0-bz11568-copyright.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRequires: e-smith-devtools >= 1.7.5 @@ -107,6 +108,9 @@ Requires: psacct Requires: dmraid %changelog +* Mon Apr 19 2021 Jean-Philippe Pialasse 2.8.0-20.sme +- fix copyright date and make it easier to update from spec file [SME: 11568] + * Wed Apr 07 2021 Jean-Philippe Pialasse 2.8.0-19.sme - fix typo and wording [SME: 11535] @@ -946,12 +950,13 @@ SME Server module to display support and %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build perl createlinks ln -s initial.cgi root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/index.cgi - +find root/ -type f | xargs grep -l ____COPYYEARS____ | xargs sed -i -e 's/____COPYYEARS____/%{copykooz}/g' YUM_REPOS=root/etc/e-smith/db/yum_repositories/ for dir in base updates do