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
|
|
|
#
|
2018-02-02 18:25:48 +01:00
|
|
|
# Copyright (c) 2018 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
|
2018-11-12 15:09:09 +01:00
|
|
|
Version: 4.1.4
|
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
|
2011-02-03 22:12:23 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-08 14:49:09 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2016-12-15 15:36:32 +01:00
|
|
|
BuildRequires: augeas-lenses
|
2017-01-02 12:10:37 +01:00
|
|
|
BuildRequires: autoyast2-installation
|
2012-01-04 13:29:06 +01:00
|
|
|
BuildRequires: perl-XML-Writer
|
|
|
|
BuildRequires: update-desktop-files
|
2017-03-23 13:22:12 +01:00
|
|
|
BuildRequires: yast2 >= 3.2.21
|
2011-02-03 22:12:23 +01:00
|
|
|
BuildRequires: yast2-country-data
|
2013-12-11 14:15:57 +01:00
|
|
|
BuildRequires: yast2-devtools >= 3.1.10
|
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)
|
|
|
|
|
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
|
2017-03-23 13:22:12 +01:00
|
|
|
Requires: yast2 >= 3.2.21
|
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
|
|
|
|
Requires: yast2-network
|
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
|
2014-04-01 13:36:16 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2016-06-09 17:22:23 +02:00
|
|
|
Obsoletes: yast2-ntp-client-devel-doc
|
|
|
|
|
2007-01-16 00:44:34 +01:00
|
|
|
%description
|
|
|
|
This package contains the YaST2 component for NTP client configuration.
|
|
|
|
|
|
|
|
%prep
|
2013-10-08 14:49:09 +02:00
|
|
|
%setup -n %{name}-%{version}
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2016-06-10 13:28:31 +02:00
|
|
|
%check
|
|
|
|
rake test:unit
|
|
|
|
|
2007-01-16 00:44:34 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2016-06-10 13:28:31 +02:00
|
|
|
rake install DESTDIR="%{buildroot}"
|
2007-01-16 00:44:34 +01:00
|
|
|
|
2018-03-07 12:23:36 +01:00
|
|
|
%post
|
|
|
|
# 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
|
|
|
|
|
2007-01-16 00:44:34 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-10-08 14:49:09 +02:00
|
|
|
%dir %{yast_yncludedir}/ntp-client
|
2016-12-15 15:36:32 +01:00
|
|
|
%{yast_clientdir}/*
|
|
|
|
%{yast_dir}/lib
|
2013-10-08 14:49:09 +02:00
|
|
|
%{yast_yncludedir}/ntp-client/*
|
|
|
|
%{yast_moduledir}/*.rb
|
|
|
|
%{yast_desktopdir}/ntp-client.desktop
|
|
|
|
%{yast_ydatadir}/ntp_servers.yml
|
|
|
|
%{yast_schemadir}/autoyast/rnc/ntpclient.rnc
|
2017-05-29 15:42:36 +02:00
|
|
|
%{yast_dir}/lib
|
2018-03-07 12:23:36 +01:00
|
|
|
%ghost /etc/cron.d/suse-ntp_synchronize
|
2013-10-08 14:49:09 +02:00
|
|
|
|
|
|
|
%dir %{yast_docdir}
|
2018-10-16 11:04:20 +02:00
|
|
|
%license COPYING
|
2016-06-10 13:28:31 +02:00
|
|
|
%doc %{yast_docdir}/README.md
|
|
|
|
%doc %{yast_docdir}/CONTRIBUTING.md
|
2013-08-15 11:22:15 +02:00
|
|
|
|
2011-02-03 22:12:23 +01:00
|
|
|
%changelog
|