Search
SailfishOS Open Build Service
>
Projects
>
home:kontio
:
nfs
>
chkconfig
> chkconfig.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File chkconfig.spec of Package chkconfig
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.20 # # >> macros # << macros Name: chkconfig Summary: A system tool for maintaining the /etc/rc*.d hierarchy Version: 1.3.48 Release: 1 Group: System/Base License: GPLv2 URL: http://git.fedorahosted.org/git/chkconfig.git Source0: http://fedorahosted.org/releases/c/h/%{name}/%{name}-%{version}.tar.bz2 Source100: chkconfig.yaml BuildRequires: pkgconfig(ncurses) BuildRequires: newt-devel BuildRequires: gettext BuildRequires: popt-devel %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/Base Requires: %{name} = %{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 (see the man page), ntsysv configures the current runlevel (5 if you're using X). %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre # << build pre # >> build post make %{?jobs:-j%jobs} # << build post %install rm -rf %{buildroot} # >> install pre # << install pre # >> install post make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SBINDIR=%{_sbindir} install for n in 0 1 2 3 4 5 6; do mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc${n}.d ln -s rc.d/rc${n}.d $RPM_BUILD_ROOT/etc/rc${n}.d done mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d # << install post %find_lang %{name} %files -f %{name}.lang %defattr(-,root,root,-) # >> files %doc COPYING %dir /etc/alternatives /sbin/chkconfig %{_sbindir}/update-alternatives %{_sbindir}/alternatives /etc/chkconfig.d /etc/rc[0-6].d /etc/rc.d/rc[0-6].d %dir /var/lib/alternatives %doc %{_mandir}/*/chkconfig* %doc %{_mandir}/*/update-alternatives* %doc %{_mandir}/*/alternatives* # << files %files -n ntsysv %defattr(-,root,root,-) # >> files ntsysv %{_sbindir}/ntsysv %doc %{_mandir}/*/ntsysv.8* # << files ntsysv