Update chrony.spec.sample
This commit is contained in:
parent
829b3adac3
commit
25aa9f5b42
1 changed files with 27 additions and 22 deletions
|
@ -1,38 +1,43 @@
|
||||||
|
%global chrony_version @@VERSION@@
|
||||||
|
%if 0%(echo %{chrony_version} | grep -q pre && echo 1)
|
||||||
|
%global prerelease %(echo %{chrony_version} | sed 's/.*-//')
|
||||||
|
%endif
|
||||||
Summary: An NTP client/server
|
Summary: An NTP client/server
|
||||||
Name: chrony
|
Name: chrony
|
||||||
Version: @@VERSION@@
|
Version: %(echo %{chrony_version} | sed 's/-.*//')
|
||||||
Release: 1
|
Release: %{!?prerelease:1}%{?prerelease:0.1.%{prerelease}}
|
||||||
Source: chrony-%{version}.tar.gz
|
Source: chrony-%{version}%{?prerelease:-%{prerelease}}.tar.gz
|
||||||
Copyright: GPL
|
License: GPLv2
|
||||||
Group: Applications/Utilities
|
Group: Applications/Utilities
|
||||||
Packager: Richard P. Curnow <rc@rc0.org.uk>
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
|
||||||
Requires: info
|
Requires: info
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A pair of programs for keeping computer clocks accurate. chronyd is a
|
chrony is a client and server for the Network Time Protocol (NTP).
|
||||||
background (daemon) program and chronyc is a command-line interface to it.
|
This program keeps your computer's clock accurate. It was specially
|
||||||
Time reference sources for chronyd can be RFC1305 NTP servers, human (via
|
designed to support systems with intermittent Internet connections,
|
||||||
keyboard and chronyc), and the computer's real-time clock at boot time (Linux
|
but it also works well in permanently connected environments. It can
|
||||||
only). chronyd can determine the rate at which the computer gains or loses
|
also use hardware reference clocks, the system real-time clock, or
|
||||||
time and compensate for it whilst no external reference is present. chronyd's
|
manual input as time references.
|
||||||
use of NTP servers can be switched on and off (through chronyc) to support
|
|
||||||
computers with dial-up/intermittent access to the Internet. chronyd can also
|
|
||||||
act as an RFC1305-compatible NTP server.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q -n %{name}-%{version}%{?prerelease:-%{prerelease}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
./configure \
|
||||||
make CC=gcc CFLAGS=-O2 prefix=%{_prefix}
|
--prefix=%{_prefix} \
|
||||||
make chrony.txt prefix=%{_prefix}
|
--bindir=%{_bindir} \
|
||||||
make chrony.info prefix=%{_prefix}
|
--sbindir=%{_sbindir} \
|
||||||
|
--infodir=%{_infodir} \
|
||||||
|
--mandir=%{_mandir}
|
||||||
|
make
|
||||||
|
make chrony.txt
|
||||||
|
make chrony.info
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
cd $RPM_BUILD_DIR/chrony-%{version}
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
|
rm -rf $RPM_BUILD_ROOT%{_docdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
||||||
cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
||||||
|
|
||||||
|
@ -47,6 +52,6 @@ cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
||||||
%doc README
|
%doc README
|
||||||
%doc chrony.txt
|
%doc chrony.txt
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%doc examples/chrony.conf.example
|
%doc examples/chrony.conf.example*
|
||||||
%doc examples/chrony.keys.example
|
%doc examples/chrony.keys.example
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue