+# TODO:
+# - update add,noxinet,pl.po-update patches
+# - optflags
Summary: Updates and queries runlevel information for system services
Summary(de): Aktualisiert runlevel-Informationen für Systemdienste und fragt diese ab
+Summary(es): Herramienta para actualizar y listar servicios del sistema, por nivel de ejecución (runlevel)
Summary(fr): Mises à jour et interrogations des services systèmes
+Summary(ja): /etc/rc.d ¤Î³¬Áؤò¥á¥ó¥Æ¥Ê¥ó¥¹¤¹¤ë¤¿¤á¤Î¥·¥¹¥Æ¥à¥Ä¡¼¥ë
Summary(pl): Narzêdzie do aktualizacji i odpytywania o informacje nt serwisów systemowych
-Summary(pt_BR): Ferramenta para atualizar e listar serviços do sistema, pelo nível de execução (runlevel)
+Summary(pt): Ferramenta para atualizar e listar serviços do sistema, pelo nível de execução (runlevel)
+Summary(ru): óÉÓÔÅÍÎÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÉÅÒÁÒÈÉÅÊ /etc/rc.d
Summary(tr): Sistem servis bilgilerini sorgular ve yeniler
+Summary(uk): óÉÓÔÅÍÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ¦¤ÒÁÒȦ¤À /etc/rc.d
Name: chkconfig
-Version: 0.9.5
-Release: 3
-Copyright: GPL
-Group: Utilities/System
-Group(pt): Utilitários/Sistema
-Group(pl_BR): Narzêdzia/System
-Source: ftp://ftp.redhat.com/pub/redhat/code/chkconfig/%{name}-%{version}.tar.gz
-BuildRoot: /tmp/%{name}-%{version}-root
+Version: 1.3.20
+Release: 0.2
+Epoch: 1
+License: GPL
+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
+#BuildRequires: autoconf
+#BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: newt-devel
+BuildRequires: popt-devel
+#BuildRequires: slang-devel >= 2.0.0
+Requires: rc-scripts
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-chkconfig provides a simple command-line tool for maintaining the
-/etc/rc.d directory hierarchy by relieving system administrators of
-directly manipulating the numerous symbolic links in that directory.
+chkconfig provides a simple command-line tool for maintaining the
+/etc/rc.d directory hierarchy by relieving system administrators of
+directly manipulating the numerous symbolic links in that directory.
%description -l de
chkconfig bietet ein einfaches Befehlszeilen-Tool zum Verwalten der
-Verzeichnishierarchie /etc/rc.d, indem es dem Systemadministrator das direkte
-Bearbeiten der zahlreichen symbolischen Verknüpfungen in diesem
-Verzeichnis abnimmt.
+Verzeichnishierarchie /etc/rc.d, indem es dem Systemadministrator das
+direkte Bearbeiten der zahlreichen symbolischen Verknüpfungen in
+diesem Verzeichnis abnimmt.
+
+%description -l es
+Chkconfig provee una herramienta sencilla en la línea de comando para
+mantener la jerarquía de directorios /etc/rc.d, atenuando los
+administradores del sistema del manejo directo de numerosos links
+simbólicos.
%description -l fr
chkconfig offre un outil simple en ligne de commande pour maintenir la
hiérarchie du répertoire /etc/rc.d tout en évitant aux administrateurs
système de manipuler les différents liens symbolique de ce répertoire.
+%description -l ja
+chkconfig
+¤Ï´ðËÜŪ¤Ê¥·¥¹¥Æ¥à¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç¤¢¤ë¡£¤³¤ì¤Ï¥·¥¹¥Æ¥à¥µ¡¼¥Ó¥¹¤Î
+runlevel ¤Î¾ðÊó¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤ä¸¡¾Ú¤¹¤ë¡£chkconfig ¤Ï /etc/rc.d ¤Î
+¿¿ô¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÁàºî¤·¤Þ¤¹¤Î¤Ç¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ï¼êÆ°¤Ç
+¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò¤¿¤Ó¤¿¤Ó¥¨¥Ç¥£¥Ã¥È¤·¤Ê¤¯¤Æ¤â¤è¤¤¡£
+
%description -l pl
-Pakiet chkconfig udostêpnia proste narzêdzia do zarz±dzania zawarto¶ci±
-katalogów w /etc/rc.d
+Pakiet chkconfig udostêpnia proste narzêdzia do zarz±dzania
+zawarto¶ci± katalogów w /etc/rc.d .
%description -l pt_BR
-Chkconfig provê uma ferramenta simples na linha de comando
-para manter a hierarquia de diretórios /etc/rc.d, aliviando os
-administradores do sistema da manipulação direta de numerosos
-links simbólicos.
+Chkconfig provê uma ferramenta simples na linha de comando para manter
+a hierarquia de diretórios /etc/rc.d, aliviando os administradores do
+sistema da manipulação direta de numerosos links simbólicos.
+
+%description -l ru
+chkconfig - ÜÔÏ ÐÒÏÓÔÁÑ ÕÔÉÌÉÔÁ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÁÑ ÄÌÑ
+ÕÐÒÁ×ÌÅÎÉÑ ÉÅÒÁÒÈÉÅÊ /etc/rc.d, ÏÓ×ÏÂÏÖÄÁÀÝÁÑ ÓÉÓÔÅÍÎÏÇÏ
+ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ ÏÔ ÎÅÏÂÈÏÄÉÍÏÓÔÉ ×ÒÕÞÎÕÀ ÓÏÚÄÁ×ÁÔØ/ÕÄÁÌÑÔØ
+ÍÎÏÇÏÞÉÓÌÅÎÎÙÅ ÓÉÍÌÉÎËÉ × ÜÔÏÍ ËÁÔÁÌÏÇÅ.
%description -l tr
-Saðladýðý basit bir komut satýrý programý yardýmýyla, /etc/rc.d dizinlerinin
-yapýsýyla ilgilenerek sistem yöneticilerinin bu dizinlerde bulunan çok
-sayýdaki simgesel baðlantýyý düzenleme iþini hafifletir.
+Saðladýðý basit bir komut satýrý programý yardýmýyla, /etc/rc.d
+dizinlerinin yapýsýyla ilgilenerek sistem yöneticilerinin bu
+dizinlerde bulunan çok sayýdaki simgesel baðlantýyý düzenleme iþini
+hafifletir.
+
+%description -l uk
+chkconfig - ÃÅ ÐÒÏÓÔÁ ÕÔÉ̦ÔÁ ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ, ÐÒÉÚÎÁÞÅÎÁ ÄÌÑ
+ËÅÒÕ×ÁÎÎÑ ¦¤ÒÁÒȦ¤À /etc/rc.d, ÑËÁ ÚצÌØÎѤ ÓÉÓÔÅÍÎÏÇÏ ÁÄͦΦÓÔÒÁÔÏÒÁ
+×¦Ä ÎÅÏÂȦÄÎÏÓÔ¦ ×ÒÕÞÎÕ ÓÔ×ÏÒÀ×ÁÔÉ/×ÉÄÁÌÑÔÉ ÞÉÓÌÅÎΦ ÓÉÍ×ÏÌØΦ
+ÐÏÓÉÌÁÎÎÑ × ÃØÏÍÕ ËÁÔÁÌÏÚ¦.
%package -n ntsysv
Summary: Full-screen interface for configurating runlevel information
-Summary(pt_BR): Interface com menus para configuração de informações de níveis de execução
-Group: Utilities/System
-Group(pt_BR): Utilitários/Sistema
-Group(pl): Narzêdzia/System
-Requires: chkconfig = %{version}
+Summary(es): Interface con menús para configuración de información de niveles de ejecución
+Summary(ja): /etc/rc.d ³¬³¬Áؤò¥á¥ó¥Æ¥Ê¥ó¥¹¤¹¤ë¥·¥¹¥Æ¥à¥Ä¡¼¥ë
+Summary(pl): Pe³noekranowy interfejs do wybierania dzia³aj±cych us³ug systemowych
+Summary(pt): Interface com menus para configuração de informações de níveis de execução
+Summary(ru): ðÏÌÎÏÜËÒÁÎÎÙÊ ÉÎÔÅÒÆÅÊÓ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÕÒÏ×ÎÅÊ ÉÓÐÏÌÎÅÎÉÑ
+Summary(uk): ðÏ×ÎÏÅËÒÁÎÎÉÊ ¦ÎÔÅÒÆÅÊÓ ÄÌÑ ÎÁÌÁÇÏÄÖÅÎÎÑ Ò¦×Î¦× ×ÉËÏÎÁÎÎÑ
+Group: Applications/System
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description -n ntsysv
-ntsysv provides a full-screen tool for updating the /etc/rc.d directory
-hierarchy, which controls the starting and stopping of system services.
+ntsysv provides a full-screen tool for updating the /etc/rc.d
+directory hierarchy, which controls the starting and stopping of
+system services.
+
+%description -n ntsysv -l es
+ntsysv ofrece una herramienta basada en menús para actualizar la
+jerarquía de directorios /etc/rc.d, que controla el arranque y el
+cierre de servicios del sistema.
+
+%description -n ntsysv -l ja
+ntsysv ¤Ï¥·¥¹¥Æ¥à¥µ¡¼¥Ó¥¹¤Î runlevel ¤Î¾ðÊó¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤ä¸¡¾Ú¤¹¤ë¡£
+ntsysv ¤Ï ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤¬Ä¾ÀÜ/etc/rc.d ¤Î¿¿ô¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò
+Áàºî¤¹¤ë¤³¤È¤«¤é²òÊü¤¹¤ë¡£
-%description -l pl -n ntsysv
+%description -n ntsysv -l pl
ntsysv udostêpnia pe³noekranowe narzêdzie do aktualizowania zawarto¶ci
-katalogów w /etc/rc.d, które kontroluj± startowanie i stopowanie
+katalogów w /etc/rc.d, które kontroluj± w³±czanie i wy³±czanie
poszczególnych serwisów systemowych.
-%description -l pt_BR -n ntsysv
+%description -n ntsysv -l pt_BR
O ntsysv fornece uma ferramenta baseada em menus para atualizar a
hierarquia de diretórios /etc/rc.d, que controla a inicialização e a
terminação de serviços do sistema.
+%description -n ntsysv -l ru
+ntsysv - ÜÔÏ ÐÏÌÎÏÜËÒÁÎÎÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ÏÂÎÏ×ÌÅÎÉÑ É ÉÚÍÅÎÅÎÉÑ ÉÅÒÁÒÈÉÉ
+ËÁÔÁÌÏÇÏ× /etc/rc.d, ËÏÔÏÒÙÅ ÕÐÒÁ×ÌÑÀÔ ÚÁÐÕÓËÏÍ É ÏÓÔÁÎÏ×ËÏÊ ÓÉÓÔÅÍÎÙÈ
+ÓÅÒ×ÉÓÏ×.
+
+%description -n ntsysv -l uk
+ntsysv - ÃÅ ÐÏ×ÎÏÅËÒÁÎÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ÏÎÏ×ÌÅÎÎÑ ÔÁ ÚͦÎÉ ¦¤ÒÁÒȦ§
+ËÁÔÁÌÏÇ¦× /etc/rc.d, ËÏÔÒ¦ ËÅÒÕÀÔØ ÚÁÐÕÓËÏÍ ÔÁ ÚÕÐÉÎËÏÀ ÓÉÓÔÅÍÎÉÈ
+ÓÅÒצӦ×.
+
+%package -n alternatives
+Summary: Maintain symbolic links determining default commands
+Summary(pl): 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;
+it is intended to be a drop in replacement for Debian's
+update-alternatives script.
+
+%description -n alternatives -l pl
+alternatives tworzy, usuwa, utrzymuje i wy¶wietla informacje o
+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.
+
%prep
%setup -q
+#%patch0 -p1
+#%patch1 -p1
+#%patch2 -p1
+#%patch3 -p1
+#%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -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
-
-%ifarch sparc
-LIBMHACK=-lm
+%if 0
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --with-max-level=6
%endif
-
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBMHACK=$LIBMHACK
+%{__make} \
+ CC="%{__cc}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/rc.d/rc{0,1,2,3,4,5,6}.d
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/{init,rc{0,1,2,3,4,5,6}}.d,env.d},/sbin}
+
+%{__make} install \
+ MANDIR=%{_mandir} \
+ instroot=$RPM_BUILD_ROOT
+
+%find_lang %{name}
-make instroot=$RPM_BUILD_ROOT install
+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
%clean
rm -rf $RPM_BUILD_ROOT
-%files
-%defattr(644, root, root, 755)
-%attr(755, root, root) /sbin/chkconfig
-%attr(644, root, man) /usr/man/man8/*
-/etc/rc.d
-%lang(cs) /usr/share/locale/cs/LC_MESSAGES/chkconfig.mo
-%lang(de) /usr/share/locale/de/LC_MESSAGES/chkconfig.mo
-%lang(en) /usr/share/locale/en*/LC_MESSAGES/chkconfig.mo
-%lang(fr) /usr/share/locale/fr/LC_MESSAGES/chkconfig.mo
-%lang(no) /usr/share/locale/no/LC_MESSAGES/chkconfig.mo
-%lang(pt_BR) /usr/share/locale/pt_BR/LC_MESSAGES/chkconfig.mo
-%lang(ro) /usr/share/locale/ro/LC_MESSAGES/chkconfig.mo
-%lang(sk) /usr/share/locale/sk/LC_MESSAGES/chkconfig.mo
-%lang(sr) /usr/share/locale/sr/LC_MESSAGES/chkconfig.mo
-%lang(tr) /usr/share/locale/tr/LC_MESSAGES/chkconfig.mo
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) /sbin/chkconfig
+%{_mandir}/man8/chkconfig.8*
+%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
%files -n ntsysv
-%attr(755, root, root) /usr/sbin/ntsysv
-%attr(644, root, man) /usr/man/man8/*
-
-%changelog
-* Tue Jan 26 1999 Micha³ Kuratczyk <kurkens@polbox.com>
- [0.9.5-3]
-- fixed pl translation,
-- added "Group(pl)",
-- cosmetics changes in %%files.
-
-* Thu Oct 15 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.9.5-2]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added %lang macros for files /usr/share/locale/*/LC_MESSAGES/chkconfig.mo
-- added pl translation,
-- fiew simplification in %files and %install,
-- added "Requires: chkconfig = %%{version}" for ntsysv,
-- added full %attr description in %files.
-
-* Thu Oct 08 1998 Cristian Gafton <gafton@redhat.com>
-- updated czech translation (and use cs instead of cz)
-
-* Tue Sep 22 1998 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
-- added pt_BR translations
-- added more translatable strings
-- support for i18n init.d scripts description
-
-* Sun Aug 02 1998 Erik Troan <ewt@redhat.com>
-- built against newt 0.30
-- split ntsysv into a separate package
-
-* Thu May 07 1998 Erik Troan <ewt@redhat.com>
-- added numerous translations
-
-* Mon Mar 23 1998 Erik Troan <ewt@redhat.com>
-- added i18n support
-
-* Sun Mar 22 1998 Erik Troan <ewt@redhat.com>
-- added --back
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/ntsysv
+%{_mandir}/man8/ntsysv.8*
+
+%files -n alternatives
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/alternatives
+%attr(755,root,root) %{_sbindir}/alternatives
+%attr(755,root,root) %{_sbindir}/update-alternatives
+%dir /var/lib/alternatives
+%{_mandir}/man8/alternatives.8*