2007-01-16 00:44:34 +01:00
|
|
|
#
|
2011-02-03 22:12:23 +01:00
|
|
|
# spec file for package yast2-ntp-client
|
2007-01-16 00:44:34 +01:00
|
|
|
#
|
2020-01-23 15:06:34 +01:00
|
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-02-03 22:12:23 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-20 16:36:14 +01:00
|
|
|
|
2011-02-03 22:12:23 +01:00
|
|
|
Name: yast2-ntp-client
|
2020-08-12 12:18:47 +02:00
|
|
|
Version: 4.3.1
|
2011-09-13 14:58:20 +02:00
|
|
|
Release: 0
|
2014-04-01 13:36:16 +02:00
|
|
|
Summary: YaST2 - NTP Client Configuration
|
2018-08-23 09:57:33 +02:00
|
|
|
License: GPL-2.0-or-later
|
2014-04-01 13:36:16 +02:00
|
|
|
Group: System/YaST
|
2019-06-04 16:53:41 +02:00
|
|
|
Url: https://github.com/yast/yast-ntp-client
|
|
|
|
|
2013-10-08 14:49:09 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2019-06-04 16:53:41 +02:00
|
|
|
|
2016-12-15 15:36:32 +01:00
|
|
|
BuildRequires: augeas-lenses
|
2012-01-04 13:29:06 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2019-10-15 15:03:41 +02:00
|
|
|
# need as it own /usr/lib/systemd and for systemd macros
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%{?systemd_requires}
|
2019-07-05 16:10:46 +02:00
|
|
|
# cwm/popup
|
|
|
|
BuildRequires: yast2 >= 4.1.15
|
2019-11-14 14:47:38 +01:00
|
|
|
BuildRequires: yast2-country
|
2011-02-03 22:12:23 +01:00
|
|
|
BuildRequires: yast2-country-data
|
2019-06-04 16:53:41 +02:00
|
|
|
BuildRequires: yast2-devtools >= 4.2.2
|
2017-03-23 13:22:12 +01:00
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.0
|
2016-06-10 13:28:31 +02:00
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:rspec)
|
|
|
|
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
|
2020-02-21 00:15:56 +01:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
BuildRequires: yast2-network >= 4.2.55
|
2016-06-10 13:28:31 +02:00
|
|
|
|
2017-03-23 13:22:12 +01:00
|
|
|
# proper acting TargetFile when scr is switched
|
2016-12-15 15:36:32 +01:00
|
|
|
Requires: augeas-lenses
|
2019-07-05 16:10:46 +02:00
|
|
|
# cwm/popup
|
|
|
|
Requires: yast2 >= 4.1.15
|
2012-07-18 16:18:07 +02:00
|
|
|
Requires: yast2-country-data
|
2017-12-04 14:30:44 +01:00
|
|
|
# needed for network/config agent
|
2020-02-21 00:15:56 +01:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
Requires: yast2-network >= 4.2.55
|
2013-07-31 11:39:20 +02:00
|
|
|
Requires: yast2-ruby-bindings >= 1.0.0
|
2017-03-23 13:22:12 +01:00
|
|
|
Requires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.0
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2016-06-09 17:22:23 +02:00
|
|
|
Obsoletes: yast2-ntp-client-devel-doc
|
|
|
|
|
2020-08-12 12:18:47 +02:00
|
|
|
Supplements: autoyast(ntp-client)
|
|
|
|
|
2019-06-04 16:53:41 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2007-01-16 00:44:34 +01:00
|
|
|
%description
|
|
|
|
This package contains the YaST2 component for NTP client configuration.
|
|
|
|
|
|
|
|
%prep
|
2019-06-04 16:53:41 +02:00
|
|
|
%setup -q
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2016-06-10 13:28:31 +02:00
|
|
|
%check
|
2019-06-04 16:53:41 +02:00
|
|
|
%yast_check
|
2016-06-10 13:28:31 +02:00
|
|
|
|
2007-01-16 00:44:34 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2019-06-04 16:53:41 +02:00
|
|
|
%yast_install
|
|
|
|
%yast_metainfo
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2018-03-07 12:23:36 +01:00
|
|
|
%post
|
2019-10-15 15:03:41 +02:00
|
|
|
%service_add_post yast-timesync.service
|
|
|
|
|
2018-03-07 12:23:36 +01: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 15:03:41 +02: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 15:06:34 +01:00
|
|
|
/usr/bin/systemctl enable yast-timesync.timer
|
|
|
|
/usr/bin/systemctl start yast-timesync.timer
|
2019-10-15 15:03:41 +02: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-16 00:44:34 +01:00
|
|
|
%files
|
2019-06-04 16:53:41 +02:00
|
|
|
%{yast_clientdir}
|
|
|
|
%{yast_libdir}
|
|
|
|
%{yast_yncludedir}
|
|
|
|
%{yast_moduledir}
|
|
|
|
%{yast_desktopdir}
|
|
|
|
%{yast_metainfodir}
|
|
|
|
%{yast_ydatadir}
|
|
|
|
%{yast_schemadir}
|
2018-11-28 15:02:47 +01:00
|
|
|
%{yast_icondir}
|
2019-10-15 15:03:41 +02:00
|
|
|
%{_unitdir}/yast-timesync.service
|
2018-10-16 11:04:20 +02:00
|
|
|
%license COPYING
|
2019-06-04 16:53:41 +02:00
|
|
|
%doc %{yast_docdir}
|
2013-08-15 11:22:15 +02:00
|
|
|
|
2011-02-03 22:12:23 +01:00
|
|
|
%changelog
|