]> git.pld-linux.org Git - packages/chkconfig.git/blobdiff - chkconfig.spec
- adjust for PLD
[packages/chkconfig.git] / chkconfig.spec
index 56ae6865f57685f75fcf3ca7a07311ed9adf67d4..17a956e5173a02d39342830e192b2d3a31339c48 100644 (file)
@@ -9,24 +9,27 @@ Summary(ru):  
 Summary(tr):   Sistem servis bilgilerini sorgular ve yeniler
 Summary(uk):   óÉÓÔÅÍÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ¦¤ÒÁÒȦ¤À /etc/rc.d
 Name:          chkconfig
-Version:       1.2.24h
-Release:       6
+Version:       1.3.20
+Release:       0.2
 Epoch:         1
 License:       GPL
 Group:         Applications/System
-Source0:       http://www.buttsoft.com/~thumper/downloads/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 032eae68329d07d0844775486ac74668
-Patch0:                %{name}-add.patch
-Patch1:                %{name}-noxinet.patch
-Patch2:                %{name}-pl.po-update.patch
-Patch3:                %{name}-ponames.patch
-Patch4:                %{name}-more_readable.patch
-BuildRequires: autoconf
-BuildRequires: automake
+Source0:       %{name}-%{version}.tar.gz
+# Source0-md5: a993765a3fcd0c0cd891e16022e35d13
+#Patch0:               %{name}-add.patch
+#Patch1:               %{name}-noxinet.patch
+#Patch2:               %{name}-pl.po-update.patch
+#Patch3:               %{name}-ponames.patch
+#Patch4:               %{name}-link.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
+#BuildRequires:        slang-devel >= 2.0.0
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -95,7 +98,7 @@ Summary(pt):  Interface com menus para configura
 Summary(ru):   ðÏÌÎÏÜËÒÁÎÎÙÊ ÉÎÔÅÒÆÅÊÓ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÕÒÏ×ÎÅÊ ÉÓÐÏÌÎÅÎÉÑ
 Summary(uk):   ðÏ×ÎÏÅËÒÁÎÎÉÊ ¦ÎÔÅÒÆÅÊÓ ÄÌÑ ÎÁÌÁÇÏÄÖÅÎÎÑ Ò¦×Φנ×ÉËÏÎÁÎÎÑ
 Group:         Applications/System
-Requires:      %{name} = %{epoch}:%{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n ntsysv
 ntsysv provides a full-screen tool for updating the /etc/rc.d
@@ -132,38 +135,64 @@ ntsysv - 
 ËÁÔÁÌÏǦנ/etc/rc.d, ËÏÔÒ¦ ËÅÒÕÀÔØ ÚÁÐÕÓËÏÍ ÔÁ ÚÕÐÉÎËÏÀ ÓÉÓÔÅÍÎÉÈ
 ÓÅÒצӦ×.
 
-%prep
-%setup  -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%package -n alternatives
+Summary:       Maintain symbolic links determining default commands
+Group:         Applications/System
 
-mv -f po/eu{_ES,}.po
-mv -f po/zh{,_TW}.po
-mv -f po/zh_CN{.GB2312,}.po
+%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-dependencies script.
 
-%patch4 -p1
+%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
+%if 0
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure \
        --with-max-level=6
-%{__make}
+%endif
+%{__make} CC="%{__cc}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/rc.d/{init,rc{0,1,2,3,4,5,6}}.d,sbin}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/{init,rc{0,1,2,3,4,5,6}}.d,env.d},/sbin}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-
-mv $RPM_BUILD_ROOT%{_sbindir}/chkconfig $RPM_BUILD_ROOT/sbin
+       MANDIR=%{_mandir} \
+       instroot=$RPM_BUILD_ROOT
 
 %find_lang %{name}
 
+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
 
@@ -171,8 +200,17 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/chkconfig
 %{_mandir}/man8/chkconfig.8*
+%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
 
 %files -n ntsysv
 %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*
This page took 0.059413 seconds and 4 git commands to generate.