chkconfig/chkconfig.spec

87 lines
2.5 KiB
RPMSpec
Raw Normal View History

2021-07-08 03:24:30 +00:00
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
2019-09-30 10:35:10 -04:00
Name: chkconfig
2022-10-12 10:16:03 +08:00
Version: 1.21
2023-02-17 16:47:17 +08:00
Release: 2
2019-09-30 10:35:10 -04:00
License: GPLv2
URL: https://github.com/fedora-sysv/chkconfig
2022-10-12 10:16:03 +08:00
Source: https://github.com/fedora-sysv/chkconfig/archive/refs/tags/%{name}-%{version}.tar.gz
2021-07-08 03:24:30 +00:00
BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc systemd-devel make
2019-09-30 10:35:10 -04:00
Conflicts: initscripts <= 5.30-1
2019-12-25 21:16:22 +08:00
Provides: ntsysv = %{version}-%{release}
Obsoletes: ntsysv < %{version}-%{release}
2021-12-30 09:23:17 +08:00
Provides: /sbin/chkconfig
2019-09-30 10:35:10 -04:00
Patch0: fix-coredump-while-parseServiceInfo-return-1.patch
2019-09-30 10:35:10 -04:00
%description
2021-07-08 03:24:30 +00:00
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.
2019-09-30 10:35:10 -04:00
%package_help
%prep
%autosetup -p1
%build
%make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%check
2023-02-17 16:47:17 +08:00
%make_build check
2019-09-30 10:35:10 -04:00
%install
%make_install MANDIR=%{_mandir} SBINDIR=%{_sbindir}
2021-07-08 03:24:30 +00:00
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
2019-09-30 10:35:10 -04:00
done
2021-07-08 03:24:30 +00:00
mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
2019-09-30 10:35:10 -04:00
%files
%dir %{_sysconfdir}/alternatives
%dir /var/lib/alternatives
%{_sysconfdir}/{init.d,rc.d,rc[0-6].d}
%{_sysconfdir}/rc.d/{inid.d,rc[0-6].d}
%{_sysconfdir}/chkconfig.d
%{_sbindir}/{*alternatives,ntsysv}
2021-12-30 09:23:17 +08:00
%{_sbindir}/chkconfig
2019-09-30 10:35:10 -04:00
%{_prefix}/lib/systemd/systemd-sysv-install
%license COPYING
%{_datadir}/locale/*/LC_MESSAGES/chkconfig.mo
%files help
%{_mandir}/man8/*
%changelog
2023-02-17 16:47:17 +08:00
* Fri Feb 17 2023 tanyulong <tanyulong@kylinos.cn> - 1.21-2
- enable check
2022-10-12 10:16:03 +08:00
* Wed Oct 12 2022 fushanqing <fushanqing@kylinos.cn> - 1.21-1
- Update to 1.21
* Sat Aug 27 2022 yixiangzhike <yixiangzhike007@163.com> - 1.20-2
- fix coredump while parseServiceInfo return non-zero
2021-12-30 09:23:17 +08:00
* Thu Dec 30 2021 wangchen <wangchen137@huawei.com> - 1.20-1
- Update to 1.20
2021-07-08 03:24:30 +00:00
2021-12-30 09:23:17 +08:00
* Thu Jul 8 2021 duyiwei <duyiwei@kylinos.cn> - 1.15-1
2021-07-08 03:24:30 +00:00
- Update to 1.15
* Mon Aug 31 2020 wangchen <wangchen137@huawei.com> - 1.14-2
- Open make check because beakerlib exist
2020-07-31 11:11:09 +08:00
* Fri Jul 31 2020 wangchen <wangchen137@huawei.com> - 1.14-1
- Update to 1.14
2019-12-25 21:16:22 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10-8
- Add obsoletes of ntsysv
2019-09-30 10:35:10 -04:00
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10-7
- Package Init
2021-07-08 03:24:30 +00:00