chkconfig/chkconfig.spec

102 lines
3.4 KiB
RPMSpec

Name: chkconfig
Version: 1.3.59
Release: 1mamba
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
Group: System/Configuration
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://download.fedora.redhat.com
Source: http://pkgs.fedoraproject.org/repo/pkgs/chkconfig/chkconfig-%{version}.tar.bz2/b2fe3a26aa0fbe89a1dae69805156b57/chkconfig-%{version}.tar.bz2
Patch: %{name}-1.3.33-lang_it.patch
Patch1: %{name}-1.3.34-alternatives_fixlinks.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libnewt-devel
BuildRequires: libpopt-devel
## AUTOBUILDREQ-END
BuildRequires: gettext-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
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.
%package -n ntsysv
Summary: A tool to set the stop/start of system services in a runlevel
Group: System/Configuration
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n ntsysv
Ntsysv provides a simple interface for setting which system services are started or stopped in various runlevels (instead of directly manipulating the numerous symbolic links in /etc/rc.d).
Unless you specify a runlevel or runlevels on the command line, ntsysv configures the current runlevel.
%prep
%setup -q
%build
%make CC=%{_host}-gcc \
%if "%{_build}" != "%{_host}"
LDFLAGS="-lslang -ldl -lm"
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall MANDIR=%{_mandir} SBINDIR=%{_sbindir}
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
/sbin/chkconfig
%{_sbindir}/alternatives
%{_sbindir}/update-alternatives
%{_sbindir}/ntsysv
%dir %{_sysconfdir}/alternatives
%dir /var/lib/alternatives
%{_mandir}/man8/*
%exclude %{_mandir}/man8/ntsysv.*
%files -n ntsysv
%defattr(-,root,root)
%{_sbindir}/ntsysv
%{_mandir}/man8/ntsysv.*
%changelog
* Fri Aug 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.59-1mamba
- update to 1.3.59
* Sun Jul 12 2009 Automatic Build System <autodist@mambasoft.it> 1.3.34-4mamba
- automatic rebuild by autodist
* Fri Aug 03 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.34-3mamba
- alternatives: don't try to rewrite symlinks if they are correct
* Wed Jun 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.34-2mamba
- alternatives:added a patch that fixes master link if wrong
* Mon Jun 04 2007 Aleph0 <aleph0@openmamba.org> 1.3.34-1mamba
- update to 1.3.34
* Thu Mar 22 2007 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.33-1qilnx
- update to version 1.3.33 by autospec
- new subpackage ntsysv
- updated italian translations patch
* Mon Feb 27 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.3.6-4qilnx
- fixed italian translations patch
* Fri Nov 18 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.3.6-3qilnx
- italian translations patched
* Mon Sep 12 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.6-2qilnx
- specfile updates
* Wed Apr 16 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.3.6-1qilnx
- creation of chkconfig package