Accepting request 147993 from home:mrdocs:branches:network:time
Cleanup for Factory submission OBS-URL: https://build.opensuse.org/request/show/147993 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=3
This commit is contained in:
parent
738db637bb
commit
cc0ce55084
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 11 04:29:12 UTC 2013 - mrdocs@opensuse.org
|
||||||
|
|
||||||
|
-run spec-cleaner on the spec file, fix license and remove cruft
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 29 13:55:16 UTC 2011 - aj@suse.de
|
Tue Nov 29 13:55:16 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
111
chrony.spec
111
chrony.spec
@ -1,32 +1,34 @@
|
|||||||
# norootforbuild
|
|
||||||
|
|
||||||
Name: chrony
|
|
||||||
Version: 1.26
|
|
||||||
Release: 0
|
|
||||||
Summary: System Clock Synchronization Client and Server
|
|
||||||
#
|
#
|
||||||
Source: http://download.tuxfamily.org/chrony/chrony-%{version}.tar.gz
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
Source1: chrony.init
|
#
|
||||||
Source2: chrony.sysconfig
|
|
||||||
Patch1: chrony-config.patch
|
Name: chrony
|
||||||
URL: http://chrony.tuxfamily.org/
|
Version: 1.26
|
||||||
Group: Productivity/Networking/Other
|
Release: 0
|
||||||
License: GNU General Public License version 2 or later (GPL v2 or later)
|
License: GPL-2.0+
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
Summary: System Clock Synchronization Client and Server
|
||||||
BuildRequires: texinfo
|
Url: http://chrony.tuxfamily.org/
|
||||||
BuildRequires: readline-devel
|
Group: Productivity/Networking/Other
|
||||||
BuildRequires: libcap-devel
|
Source: http://download.tuxfamily.org/chrony/chrony-%{version}.tar.gz
|
||||||
BuildRequires: ncurses-devel
|
Source1: chrony.init
|
||||||
BuildRequires: gcc make glibc-devel
|
Source2: chrony.sysconfig
|
||||||
%if 0%{?suse_version} >= 1030 && 0%{?suse_version} <= 1140
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
||||||
BuildRequires: licenses
|
Patch1: chrony-config.patch
|
||||||
Requires: licenses
|
BuildRequires: gcc
|
||||||
%endif
|
BuildRequires: glibc-devel
|
||||||
PreReq: %install_info_prereq
|
BuildRequires: libcap-devel
|
||||||
PreReq: %fillup_prereq
|
BuildRequires: make
|
||||||
PreReq: %insserv_prereq
|
BuildRequires: ncurses-devel
|
||||||
PreReq: /usr/sbin/groupadd
|
BuildRequires: readline-devel
|
||||||
PreReq: /usr/sbin/useradd
|
BuildRequires: texinfo
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
|
||||||
|
Requires(pre): %fillup_prereq
|
||||||
|
Requires(pre): %insserv_prereq
|
||||||
|
Requires(pre): %install_info_prereq
|
||||||
|
Requires(pre): /usr/sbin/groupadd
|
||||||
|
Requires(pre): /usr/sbin/useradd
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Chrony is a pair of programs which are used to maintain the accuracy of the
|
Chrony is a pair of programs which are used to maintain the accuracy of the
|
||||||
@ -61,44 +63,44 @@ as the Chronyd instance it is controlling or a different computer.
|
|||||||
--mandir="%{_mandir}" \
|
--mandir="%{_mandir}" \
|
||||||
--docdir="%{_docdir}/%{name}"
|
--docdir="%{_docdir}/%{name}"
|
||||||
|
|
||||||
%__make %{?jobs:-j%{jobs}} \
|
make %{?_smp_mflags} \
|
||||||
CC="%__cc" \
|
CC="gcc" \
|
||||||
CFLAGS="%{optflags} -Wall" \
|
CFLAGS="%{optflags} -Wall" \
|
||||||
prefix="%{_prefix}"
|
prefix="%{_prefix}"
|
||||||
|
|
||||||
%__make chrony.txt prefix="%{_prefix}"
|
make chrony.txt prefix="%{_prefix}"
|
||||||
%__make chrony.info prefix="%{_prefix}"
|
make chrony.info prefix="%{_prefix}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
%__rm -rf "%{buildroot}%{_docdir}/%{name}"
|
rm -rf "%{buildroot}%{_docdir}/%{name}"
|
||||||
|
|
||||||
%__install -d "%{buildroot}%{_infodir}"
|
install -d "%{buildroot}%{_infodir}"
|
||||||
%__install -m0644 chrony.info "%{buildroot}%{_infodir}"/
|
install -m0644 chrony.info "%{buildroot}%{_infodir}"/
|
||||||
|
|
||||||
%__install -D -m0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/chronyd"
|
install -D -m0755 "%{SOURCE1}" "%{buildroot}%{_initddir}/chronyd"
|
||||||
%__install -d "%{buildroot}/usr/sbin"
|
install -d "%{buildroot}%{_prefix}/sbin"
|
||||||
%__ln_s ../../etc/init.d/chronyd "%{buildroot}/usr/sbin/rcchronyd"
|
ln -s ../../etc/init.d/chronyd "%{buildroot}%{_sbindir}/rcchronyd"
|
||||||
|
|
||||||
%__install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_var}/adm/fillup-templates/sysconfig.chronyd"
|
install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.chronyd"
|
||||||
|
|
||||||
%__install -d "%{buildroot}%{_var}/lib/chrony"
|
install -d "%{buildroot}%{_localstatedir}/lib/chrony"
|
||||||
%__install -d "%{buildroot}%{_var}/log/chrony"
|
install -d "%{buildroot}%{_localstatedir}/log/chrony"
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1030 && 0%{?suse_version} <= 1140
|
%if 0%{?suse_version} >= 1030 && 0%{?suse_version} <= 1140
|
||||||
h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ")
|
h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ")
|
||||||
test -e "$h" && %__ln_s -f "$h" .
|
test -e "$h" && ln -s -f "$h" .
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%__install -d "%{buildroot}%{_sysconfdir}"
|
install -d "%{buildroot}%{_sysconfdir}"
|
||||||
%__install -m0644 examples/chrony.conf.example "%{buildroot}%{_sysconfdir}/chrony.conf"
|
install -m0644 examples/chrony.conf.example "%{buildroot}%{_sysconfdir}/chrony.conf"
|
||||||
%__install -m0600 examples/chrony.keys.example "%{buildroot}%{_sysconfdir}/chrony.keys"
|
install -m0600 examples/chrony.keys.example "%{buildroot}%{_sysconfdir}/chrony.keys"
|
||||||
rm examples/chrony.keys.example.orig
|
rm examples/chrony.keys.example.orig
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -r chrony || :
|
/usr/sbin/groupadd -r chrony || :
|
||||||
/usr/sbin/useradd -r -g chrony -c "Chrony Daemon" -d "%{_var}/lib/chrony" chrony || :
|
/usr/sbin/useradd -r -g chrony -c "Chrony Daemon" -d "%{_localstatedir}/lib/chrony" chrony || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_only -an chronyd}
|
%{fillup_only -an chronyd}
|
||||||
@ -113,7 +115,7 @@ rm examples/chrony.keys.example.orig
|
|||||||
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/chrony.info%{ext_info}"
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/chrony.info%{ext_info}"
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%__rm -rf "%{buildroot}"
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -128,15 +130,10 @@ rm examples/chrony.keys.example.orig
|
|||||||
%doc %{_mandir}/man5/chrony.conf.5%{ext_man}
|
%doc %{_mandir}/man5/chrony.conf.5%{ext_man}
|
||||||
%doc %{_mandir}/man8/chronyd.8%{ext_man}
|
%doc %{_mandir}/man8/chronyd.8%{ext_man}
|
||||||
%doc %{_infodir}/chrony.info%{ext_info}
|
%doc %{_infodir}/chrony.info%{ext_info}
|
||||||
%config /etc/init.d/chronyd
|
%config %{_sysconfdir}/init.d/chronyd
|
||||||
/usr/sbin/rcchronyd
|
%{_sbindir}/rcchronyd
|
||||||
%{_var}/adm/fillup-templates/sysconfig.chronyd
|
%{_localstatedir}/adm/fillup-templates/sysconfig.chronyd
|
||||||
%attr(0750,chrony,chrony) %{_var}/lib/chrony
|
%attr(0750,chrony,chrony) %{_localstatedir}/lib/chrony
|
||||||
%attr(0750,chrony,chrony) %{_var}/log/chrony
|
%attr(0750,chrony,chrony) %{_localstatedir}/log/chrony
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
# vim: set sw=3 ts=3 noet:
|
|
||||||
# Local Variables:
|
|
||||||
# mode: rpm-spec
|
|
||||||
# tab-width: 3
|
|
||||||
# End:
|
|
||||||
|
Loading…
Reference in New Issue
Block a user