diff --git a/chkconfig-1.14.tar.gz b/chkconfig-1.14.tar.gz deleted file mode 100644 index 419a615..0000000 Binary files a/chkconfig-1.14.tar.gz and /dev/null differ diff --git a/chkconfig-1.15.tar.gz b/chkconfig-1.15.tar.gz new file mode 100644 index 0000000..cd3c3f9 Binary files /dev/null and b/chkconfig-1.15.tar.gz differ diff --git a/chkconfig.spec b/chkconfig.spec index 3797890..550a152 100644 --- a/chkconfig.spec +++ b/chkconfig.spec @@ -1,21 +1,20 @@ +Summary: A system tool for maintaining the /etc/rc*.d hierarchy Name: chkconfig -Version: 1.14 -Release: 2 -Summary: chkconfig updates and queries runlevel information for system services +Version: 1.15 +Release: 1 License: GPLv2 URL: https://github.com/fedora-sysv/chkconfig -Source0: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz - -BuildRequires: gcc newt-devel gettext popt-devel libselinux-devel beakerlib +Source: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc systemd-devel make Conflicts: initscripts <= 5.30-1 Provides: ntsysv = %{version}-%{release} Obsoletes: ntsysv < %{version}-%{release} %description -chkconfig provides a simple command-line tool for maintaining -the /etc/rc[0-6].d directory hierarchy by relieving system -administrators of the task of directly manipulating the numerous -symbolic links in those directories. +Chkconfig is a basic system utility. It updates and queries runlevel +information for system services. Chkconfig manipulates the numerous +symbolic links in /etc/rc.d, to relieve system administrators of some +of the drudgery of manually editing the symbolic links. %package_help @@ -31,15 +30,13 @@ make check %install %make_install MANDIR=%{_mandir} SBINDIR=%{_sbindir} -mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d -for i in {0..6};do - mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc${i}.d +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d +for n in 0 1 2 3 4 5 6; do + mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc${n}.d + ln -s rc.d/rc${n}.d $RPM_BUILD_ROOT/etc/rc${n}.d done -ln -s rc.d/init.d %{buildroot}%{_sysconfdir}/init.d -for i in {0..6};do - ln -s rc.d/rc${i}.d %{buildroot}%{_sysconfdir}/rc${i}.d -done -mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d +mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d %files %dir %{_sysconfdir}/alternatives @@ -57,6 +54,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d %{_mandir}/man8/* %changelog + +* Thur Jul 8 2021 duyiwei - 1.15-1 +- Update to 1.15 + * Mon Aug 31 2020 wangchen - 1.14-2 - Open make check because beakerlib exist @@ -68,3 +69,4 @@ mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d * Fri Aug 30 2019 openEuler Buildteam - 1.10-7 - Package Init +