Package init
This commit is contained in:
commit
337361ca44
BIN
ntpstat-0.5.tar.gz
Normal file
BIN
ntpstat-0.5.tar.gz
Normal file
Binary file not shown.
49
ntpstat.spec
Normal file
49
ntpstat.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Name: ntpstat
|
||||||
|
Version: 0.5
|
||||||
|
Release: 3
|
||||||
|
Summary: Print NTP synchronisation status
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/mlichvar/ntpstat
|
||||||
|
Source0: https://github.com/mlichvar/ntpstat/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: git
|
||||||
|
Requires: (ntp or chrony)
|
||||||
|
|
||||||
|
%description
|
||||||
|
ntpstat is a shell script which prints the ntpd or chronyd synchronisation
|
||||||
|
status, using the ntpq or chronyc program.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
summary: Help files for %{name}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Contains secondary development documentation and interface function
|
||||||
|
descriptions, man, info, etc. related documents and manuals for %{name}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1 -S git
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install -m755 ntpstat $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install -d $RPM_BUILD_ROOT%{_mandir}/man1
|
||||||
|
install -p -m644 ./ntpstat.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/ntpstat
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc NEWS README
|
||||||
|
%{_mandir}/man1/ntpstat.*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5-3
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user