Split out alternatives into it's own package

This commit is contained in:
Peter Robinson 2019-03-14 15:32:58 +00:00
parent 3f17d374e3
commit bc41060993

View File

@ -1,13 +1,12 @@
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
Name: chkconfig
Version: 1.11
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
URL: https://github.com/fedora-sysv/chkconfig
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
Conflicts: initscripts <= 5.30-1
Provides: alternatives = %{version}-%{release}
%description
Chkconfig is a basic system utility. It updates and queries runlevel
@ -26,6 +25,15 @@ manipulating the numerous symbolic links in /etc/rc.d). Unless you
specify a runlevel or runlevels on the command line (see the man
page), ntsysv configures the current runlevel (5 if you're using X).
%package -n alternatives
Summary: A tool to maintain symbolic links determining default commands
%description -n alternatives
alternatives creates, removes, maintains and displays information about the
symbolic links comprising the alternatives system. It is possible for several
programs fulfilling the same or similar functions to be installed on a single
system at the same time.
%prep
%setup -q
@ -53,20 +61,14 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
%defattr(-,root,root)
%{!?_licensedir:%global license %%doc}
%license COPYING
%dir /etc/alternatives
/sbin/chkconfig
%{_sbindir}/update-alternatives
%{_sbindir}/alternatives
/etc/chkconfig.d
/etc/init.d
/etc/rc.d
/etc/rc.d/init.d
/etc/rc[0-6].d
/etc/rc.d/rc[0-6].d
%dir /var/lib/alternatives
%{_mandir}/*/chkconfig*
%{_mandir}/*/update-alternatives*
%{_mandir}/*/alternatives*
%{_prefix}/lib/systemd/systemd-sysv-install
%files -n ntsysv
@ -74,7 +76,19 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
%{_sbindir}/ntsysv
%{_mandir}/*/ntsysv.8*
%files -n alternatives
%license COPYING
%dir /etc/alternatives
%{_sbindir}/update-alternatives
%{_sbindir}/alternatives
%{_mandir}/*/update-alternatives*
%{_mandir}/*/alternatives*
%dir /var/lib/alternatives
%changelog
* Thu Mar 14 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.11-4
- Split out alternatives into it's own package
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild