From 124800439541ae7265e89ef44e757d4955249387 Mon Sep 17 00:00:00 2001 From: zhuchunyi Date: Wed, 6 Nov 2019 19:51:01 +0800 Subject: [PATCH] update code --- radvd.spec | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/radvd.spec b/radvd.spec index dc265d9..1be1568 100644 --- a/radvd.spec +++ b/radvd.spec @@ -1,6 +1,6 @@ Name: radvd Version: 2.18 -Release: 1 +Release: 2 Summary: Router ADVertisement Daemon for IPv6 License: BSD with advertising URL: http://www.litech.org/radvd/ @@ -13,17 +13,17 @@ Requires(pre): shadow-utils %{?systemd_requires} %description -The router advertisement daemon (radvd) is run by Linux or BSD systems -acting as IPv6 routers. It sends Router Advertisement messages, -specified by RFC 2461, to a local Ethernet LAN periodically and when -requested by a node sending a Router Solicitation message. These +The router advertisement daemon (radvd) is run by Linux or BSD systems +acting as IPv6 routers. It sends Router Advertisement messages, +specified by RFC 2461, to a local Ethernet LAN periodically and when +requested by a node sending a Router Solicitation message. These messages are required for IPv6 stateless autoconfiguration. %package_help %prep %autosetup -n %{name}-%{version} -p1 - + for F in CHANGES; do iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new" touch -r "$F" "${F}.new" @@ -47,7 +47,7 @@ install -m 644 radvd.conf.empty %{buildroot}%{_sysconfdir}/radvd.conf install -m 644 radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/radvd popd -install -d -m 755 %{buildroot}%{_tmpfilesdir} +install -d -m 755 %{buildroot}%{_tmpfilesdir} install -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/radvd.conf pushd redhat/systemd @@ -62,7 +62,7 @@ make check %post %systemd_post radvd.service - + %preun %systemd_preun radvd.service @@ -73,8 +73,9 @@ getent passwd radvd >/dev/null || \ exit 0 %files -%doc CHANGES COPYRIGHT +%doc CHANGES %defattr(-,root,root) +%license COPYRIGHT %{_tmpfilesdir}/radvd.conf %config(noreplace) %{_sysconfdir}/radvd.conf %config(noreplace) %{_sysconfdir}/sysconfig/radvd @@ -89,5 +90,11 @@ exit 0 %{_mandir}/*/* %changelog +* Mon Oct 21 2019 openEuler Buildteam - 2.18-2 +- Type:enhancement +- Id:NA +- SUG:NA +- DESC:modify the location of COPYRIGHT + * Mon Sep 16 2018 openEuler Buildteam - 2.18-1 - Package init