1 |
# $Id: e-smith-ntp.spec,v 1.5 2019/01/25 15:52:31 jpp Exp $ |
# $Id: e-smith-ntp.spec,v 1.9 2020/11/27 05:12:40 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith specific NTP configuration files and templates |
Summary: e-smith specific NTP configuration files and templates |
4 |
%define name e-smith-ntp |
%define name e-smith-ntp |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 6 |
%define release 9 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-ntp-2.6.0-bz9690.syslog.patch |
Patch0: e-smith-ntp-2.6.0-bz9690.syslog.patch |
14 |
Patch1: %{name}-%{version}-bz11008_systemd.patch |
Patch1: %{name}-%{version}-bz11008_systemd.patch |
15 |
|
Patch2: e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch |
16 |
|
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
AutoReqProv: no |
AutoReqProv: no |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
|
* Fri Nov 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
28 |
|
- fix systemd-preset fragment [SME: 11008] |
29 |
|
add +x to ExecStartPRe script |
30 |
|
|
31 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
32 |
|
- improve systemd integration [SME: 11008] |
33 |
|
- change driftfile path [SME: 8881] |
34 |
|
|
35 |
* Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme |
* Wed Sep 23 2020 Michel Begue <mab974@gmail.com> 2.6.0-6.sme |
36 |
- from service to systemd [SME: 11008] |
- from service to systemd [SME: 11008] |
37 |
- add ntpd-update event [SME: 11009] |
- add ntpd-update event [SME: 11009] |
751 |
%setup |
%setup |
752 |
%patch0 -p1 |
%patch0 -p1 |
753 |
%patch1 -p1 |
%patch1 -p1 |
754 |
|
%patch2 -p1 |
755 |
|
/usr/bin/rm -rf root/var/service/ntpd/ |
756 |
|
|
757 |
%build |
%build |
758 |
for i in ip-change post-install post-upgrade timeserver-update \ |
for i in ip-change post-install post-upgrade timeserver-update \ |
776 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
777 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
778 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
779 |
|
--file '/sbin/e-smith/systemd/initializedate' 'attr(0554,root,root)' \ |
780 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
781 |
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
# --dir '/var/service/ntpd' 'attr(1755,root,root)' \ |
782 |
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |
# --file '/var/service/ntpd/down' 'attr(0644,root,root)' \ |