-#
-# TODO:
-# - update add,noxinet,pl.po-update patches
-#
Summary: Updates and queries runlevel information for system services
-Summary(de.UTF-8): Aktualisiert runlevel-Informationen für Systemdienste und fragt diese ab
-Summary(es.UTF-8): Herramienta para actualizar y listar servicios del sistema, por nivel de ejecución (runlevel)
-Summary(fr.UTF-8): Mises à jour et interrogations des services systèmes
-Summary(ja.UTF-8): /etc/rc.d の階層をメンテナンスするためのシステムツール
-Summary(pl.UTF-8): Narzędzie do aktualizacji i odpytywania o informacje nt serwisów systemowych
-Summary(pt.UTF-8): Ferramenta para atualizar e listar serviços do sistema, pelo nível de execução (runlevel)
-Summary(ru.UTF-8): Системная утилита для управления иерархией /etc/rc.d
-Summary(tr.UTF-8): Sistem servis bilgilerini sorgular ve yeniler
-Summary(uk.UTF-8): Системна утиліта для керування ієрархією /etc/rc.d
+Summary(de.UTF-8): Aktualisiert runlevel-Informationen für Systemdienste und fragt diese ab
+Summary(es.UTF-8): Herramienta para actualizar y listar servicios del sistema, por nivel de ejecución (runlevel)
+Summary(fr.UTF-8): Mises à jour et interrogations des services systèmes
+Summary(ja.UTF-8): /etc/rc.d の階層をメンテナンスするためのシステムツール
+Summary(pl.UTF-8): Narzędzie do aktualizacji i odpytywania o informacje nt serwisów systemowych
+Summary(pt.UTF-8): Ferramenta para atualizar e listar serviços do sistema, pelo nível de execução (runlevel)
+Summary(ru.UTF-8): Системная утилита для управления иерархией /etc/rc.d
+Summary(tr.UTF-8): Sistem servis bilgilerini sorgular ve yeniler
+Summary(uk.UTF-8): Системна утиліта для керування ієрархією /etc/rc.d
Name: chkconfig
-Version: 1.3.20
-Release: 0.4
-Epoch: 1
-License: GPL
+Version: 1.25
+Release: 2
+Epoch: 2
+License: GPL v2
Group: Applications/System
-Source0: %{name}-%{version}.tar.gz
-# Source0-md5: a993765a3fcd0c0cd891e16022e35d13
-#Patch0: %{name}-add.patch
-#Patch1: %{name}-noxinet.patch
-#Patch2: %{name}-pl.po-update.patch
-Patch5: %{name}-more_readable.patch
-Patch6: %{name}-rc.d.patch
-Patch7: %{name}-nostatic.patch
-Patch8: %{name}-optflags.patch
-Patch9: %{name}-pl.patch
-#BuildRequires: autoconf
-#BuildRequires: automake
-BuildRequires: gettext-devel
+#Source0Download: https://github.com/fedora-sysv/chkconfig/releases
+Source0: https://github.com/fedora-sysv/chkconfig/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 12a7b241ba7d3730b9dc389115be50ee
+Patch0: %{name}-add.patch
+Patch1: %{name}-noxinet.patch
+Patch2: %{name}-rc.d.patch
+Patch3: %{name}-optflags.patch
+Patch4: %{name}-pl.patch
+Patch5: %{name}-split-usr.patch
+URL: https://github.com/fedora-sysv/chkconfig
+BuildRequires: gettext-tools
+BuildRequires: libselinux-devel
BuildRequires: newt-devel
BuildRequires: popt-devel
-#BuildRequires: slang-devel >= 2.0.0
Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package -n ntsysv
Summary: Full-screen interface for configurating runlevel information
-Summary(es.UTF-8): Interface con menús para configuración de información de niveles de ejecución
-Summary(ja.UTF-8): /etc/rc.d 階階層をメンテナンスするシステムツール
-Summary(pl.UTF-8): Pełnoekranowy interfejs do wybierania działających usług systemowych
-Summary(pt.UTF-8): Interface com menus para configuração de informações de níveis de execução
-Summary(ru.UTF-8): Полноэкранный интерфейс для настройки уровней исполнения
-Summary(uk.UTF-8): Повноекранний інтерфейс для налагодження рівнів виконання
+Summary(es.UTF-8): Interface con menús para configuración de información de niveles de ejecución
+Summary(ja.UTF-8): /etc/rc.d 階階層をメンテナンスするシステムツール
+Summary(pl.UTF-8): Pełnoekranowy interfejs do wybierania działających usług systemowych
+Summary(pt.UTF-8): Interface com menus para configuração de informações de níveis de execução
+Summary(ru.UTF-8): Полноэкранный интерфейс для настройки уровней исполнения
+Summary(uk.UTF-8): Повноекранний інтерфейс для налагодження рівнів виконання
Group: Applications/System
Requires: %{name} = %{epoch}:%{version}-%{release}
%package -n alternatives
Summary: Maintain symbolic links determining default commands
-Summary(pl.UTF-8): Utrzymywanie dowiązań symbolicznych określających domyślne polecenia
+Summary(pl.UTF-8): Utrzymywanie dowiązań symbolicznych określających domyślne polecenia
Group: Applications/System
%description -n alternatives
alternatives creates, removes, maintains and displays information
about the symbolic links comprising the alternatives system. The
alternatives system is a reimplementation of the Debian alternatives
-system. It was rewritten primarily to remove the dependence on perl;
+system. It was rewritten primarily to remove the dependence on Perl;
it is intended to be a drop in replacement for Debian's
update-alternatives script.
dowiązaniach symbolicznych obejmujących system alternatyw. System
alternatyw to reimplementacja systemu alternatyw ("alternatives") z
Debiana. Została napisana głównie w celu usunięcia zależności od
-perla; ma być zamiennikiem skryptu update-alternatives z Debiana.
+Perla; ma być zamiennikiem skryptu update-alternatives z Debiana.
%prep
%setup -q
-#%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
-#%patch3 -p1
-#%patch4 -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-
-#mv -f po/{eu_ES,eu}.po
-mv -f po/{no,nb}.po
-mv -f po/{sr,sr@Latn}.po
-#mv -f po/{zh,zh_TW}.po
-#mv -f po/{zh_CN.GB2312,zh_CN}.po
%build
-%if 0
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-%configure \
- --with-max-level=6
-%endif
%{__make} \
CC="%{__cc}" \
- OPTFLAGS="%{rpmcflags}"
+ OPTFLAGS="%{rpmcppflags} %{rpmcflags}" \
+ OPTLDFLAGS="%{rpmldflags}" \
+ SYSTEMDUTILDIR=/lib/systemd
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
MANDIR=%{_mandir} \
- instroot=$RPM_BUILD_ROOT
+ SYSTEMDUTILDIR=/lib/systemd \
+ DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{name}
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bal
-cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_ON
-# display custom string instead of "on" (or its translation)
-#CHKCONFIG_ON="*****"
-EOF
-cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_OFF
-# display custom string instead of "off" (or its translation)
-#CHKCONFIG_OFF="-----"
-EOF
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(755,root,root) /sbin/chkconfig
+%attr(755,root,root) /lib/systemd/systemd-sysv-install
%{_mandir}/man8/chkconfig.8*
-%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
%files -n ntsysv
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/update-alternatives
%dir /var/lib/alternatives
%{_mandir}/man8/alternatives.8*
+%{_mandir}/man8/update-alternatives.8*