2007-01-15 23:44:34 +00:00
|
|
|
#
|
2011-02-03 21:12:23 +00:00
|
|
|
# spec file for package yast2-ntp-client
|
2007-01-15 23:44:34 +00:00
|
|
|
#
|
2022-01-12 15:39:14 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-02-03 21:12:23 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-01-22 14:54:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-03 21:12:23 +00:00
|
|
|
#
|
|
|
|
|
2008-02-20 15:36:14 +00:00
|
|
|
|
2011-02-03 21:12:23 +00:00
|
|
|
Name: yast2-ntp-client
|
2022-04-12 16:58:59 +00:00
|
|
|
Version: 4.5.0
|
2011-09-13 12:58:20 +00:00
|
|
|
Release: 0
|
2014-04-01 11:36:16 +00:00
|
|
|
Summary: YaST2 - NTP Client Configuration
|
2018-08-23 07:57:33 +00:00
|
|
|
License: GPL-2.0-or-later
|
2014-04-01 11:36:16 +00:00
|
|
|
Group: System/YaST
|
2021-01-22 14:54:23 +00:00
|
|
|
URL: https://github.com/yast/yast-ntp-client
|
2019-06-04 14:53:41 +00:00
|
|
|
|
2013-10-08 12:49:09 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2019-06-04 14:53:41 +00:00
|
|
|
|
2016-12-15 14:36:32 +00:00
|
|
|
BuildRequires: augeas-lenses
|
2012-01-04 12:29:06 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2019-10-15 13:03:41 +00:00
|
|
|
# need as it own /usr/lib/systemd and for systemd macros
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%{?systemd_requires}
|
2022-01-26 08:00:25 +00:00
|
|
|
# Replace PackageSystem with Package
|
|
|
|
BuildRequires: yast2 >= 4.4.38
|
2019-11-14 13:47:38 +00:00
|
|
|
BuildRequires: yast2-country
|
2011-02-03 21:12:23 +00:00
|
|
|
BuildRequires: yast2-country-data
|
2019-06-04 14:53:41 +00:00
|
|
|
BuildRequires: yast2-devtools >= 4.2.2
|
2017-03-23 12:22:12 +00:00
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.0
|
2016-06-10 11:28:31 +00:00
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:rspec)
|
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
|
2020-02-20 23:15:56 +00:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
BuildRequires: yast2-network >= 4.2.55
|
2022-01-21 12:30:17 +00:00
|
|
|
# yast/rspec/helpers.rb
|
|
|
|
BuildRequires: yast2-ruby-bindings >= 4.4.7
|
2016-06-10 11:28:31 +00:00
|
|
|
|
2017-03-23 12:22:12 +00:00
|
|
|
# proper acting TargetFile when scr is switched
|
2016-12-15 14:36:32 +00:00
|
|
|
Requires: augeas-lenses
|
2022-01-26 08:00:25 +00:00
|
|
|
# Replace PackageSystem with Package
|
|
|
|
Requires: yast2 >= 4.4.38
|
2012-07-18 14:18:07 +00:00
|
|
|
Requires: yast2-country-data
|
2017-12-04 13:30:44 +00:00
|
|
|
# needed for network/config agent
|
2020-02-20 23:15:56 +00:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
Requires: yast2-network >= 4.2.55
|
2013-07-31 09:39:20 +00:00
|
|
|
Requires: yast2-ruby-bindings >= 1.0.0
|
2017-03-23 12:22:12 +00:00
|
|
|
Requires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.0
|
2007-01-15 23:44:34 +00:00
|
|
|
|
2016-06-09 15:22:23 +00:00
|
|
|
Obsoletes: yast2-ntp-client-devel-doc
|
|
|
|
|
2020-08-12 10:18:47 +00:00
|
|
|
Supplements: autoyast(ntp-client)
|
|
|
|
|
2019-06-04 14:53:41 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2007-01-15 23:44:34 +00:00
|
|
|
%description
|
|
|
|
This package contains the YaST2 component for NTP client configuration.
|
|
|
|
|
|
|
|
%prep
|
2019-06-04 14:53:41 +00:00
|
|
|
%setup -q
|
2007-01-15 23:44:34 +00:00
|
|
|
|
2016-06-10 11:28:31 +00:00
|
|
|
%check
|
2019-06-04 14:53:41 +00:00
|
|
|
%yast_check
|
2016-06-10 11:28:31 +00:00
|
|
|
|
2007-01-15 23:44:34 +00:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2019-06-04 14:53:41 +00:00
|
|
|
%yast_install
|
|
|
|
%yast_metainfo
|
2007-01-15 23:44:34 +00:00
|
|
|
|
2018-03-07 11:23:36 +00:00
|
|
|
%post
|
2019-10-15 13:03:41 +00:00
|
|
|
%service_add_post yast-timesync.service
|
|
|
|
|
2018-03-07 11:23:36 +00:00
|
|
|
# upgrade old name and convert it to chrony (bsc#1079122)
|
|
|
|
if [ -f /etc/cron.d/novell.ntp-synchronize ]; then
|
|
|
|
mv /etc/cron.d/novell.ntp-synchronize /etc/cron.d/suse-ntp_synchronize
|
|
|
|
sed -i 's:\* \* \* \* root .*:* * * * root /usr/sbin/chronyd -q \&>/dev/null:' /etc/cron.d/suse-ntp_synchronize
|
|
|
|
fi
|
|
|
|
|
2019-10-15 13:03:41 +00:00
|
|
|
# and now update cron to systemd timer. We need to support upgrade from SLE12 and also SLE15 SP1.
|
|
|
|
# jsc#SLE-9113
|
|
|
|
if [ -f /etc/cron.d/suse-ntp_synchronize ]; then
|
|
|
|
/usr/bin/erb timeout=$(grep -o '[[:digit:]]\+' /etc/cron.d/suse-ntp_synchronize) /usr/share/YaST2/data/yast-timesync.timer.erb > /etc/systemd/system/yast-timesync.timer
|
2020-01-23 14:06:34 +00:00
|
|
|
/usr/bin/systemctl enable yast-timesync.timer
|
|
|
|
/usr/bin/systemctl start yast-timesync.timer
|
2019-10-15 13:03:41 +00:00
|
|
|
rm /etc/cron.d/suse-ntp_synchronize
|
|
|
|
fi
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre yast-timesync.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun yast-timesync.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun yast-timesync.service
|
|
|
|
|
2007-01-15 23:44:34 +00:00
|
|
|
%files
|
2019-06-04 14:53:41 +00:00
|
|
|
%{yast_clientdir}
|
|
|
|
%{yast_libdir}
|
|
|
|
%{yast_yncludedir}
|
|
|
|
%{yast_moduledir}
|
|
|
|
%{yast_desktopdir}
|
|
|
|
%{yast_metainfodir}
|
|
|
|
%{yast_ydatadir}
|
|
|
|
%{yast_schemadir}
|
2018-11-28 14:02:47 +00:00
|
|
|
%{yast_icondir}
|
2019-10-15 13:03:41 +00:00
|
|
|
%{_unitdir}/yast-timesync.service
|
2018-10-16 09:04:20 +00:00
|
|
|
%license COPYING
|
2019-06-04 14:53:41 +00:00
|
|
|
%doc %{yast_docdir}
|
2013-08-15 09:22:15 +00:00
|
|
|
|
2011-02-03 21:12:23 +00:00
|
|
|
%changelog
|