Группа :: Система/Настройка/Прочее
Пакет: condstopstart-web
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
# %%branch_switch set %%branch_release use
#%%define branch_switch Mxx
Name: condstopstart-web
Version: 0.3
Release: %branch_release alt2.qa1
Summary: Condstopstart for web serwers
License: %gpl2plus
Group: System/Configuration/Other
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildArch: noarch
Source: web-command.sh
Source10: tmpfiles.conf
Requires: %condstopstart_subsysdir
Requires: %condstopstart_subsysrundir
Provides: %condstopstart_webdir
Provides: %condstopstart_webrundir
BuildRequires(pre): rpm-macros-branch
BuildRequires(pre): rpm-macros-condstopstart
BuildPreReq: rpm-build-licenses
%description
%summary
%install
install -d %buildroot%condstopstart_webdir/
install -d %buildroot%condstopstart_webrundir/
# Generate web-cond*
for condcommand in condstop condstart condstop-rpm condstart-rpm; do
condcommandfile="%buildroot%_sbindir/web-$condcommand"
install -m 755 -pD %SOURCE0 $condcommandfile
sed -ri "
s| at COMMAND at |$condcommand|g
s| at SCRIPTSDIR at |%condstopstart_webdir|g
s| at RUNDIR at |%condstopstart_webrundir|g
" $condcommandfile
done
install -pD -m 644 %SOURCE10 %buildroot%_tmpfilesdir/%name.conf
sed -i "
s| at RUNDIR at |%condstopstart_webrundir|g
" %buildroot%_tmpfilesdir/*
%files
%config %_tmpfilesdir/*
%attr(755,root,root) %dir %condstopstart_webdir/
%attr(755,root,root) %dir %condstopstart_webrundir/
%_sbindir/*
%changelog
…
Полный changelog можно просмотреть здесь
# %%branch_switch set %%branch_release use
#%%define branch_switch Mxx
Name: condstopstart-web
Version: 0.3
Release: %branch_release alt2.qa1
Summary: Condstopstart for web serwers
License: %gpl2plus
Group: System/Configuration/Other
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildArch: noarch
Source: web-command.sh
Source10: tmpfiles.conf
Requires: %condstopstart_subsysdir
Requires: %condstopstart_subsysrundir
Provides: %condstopstart_webdir
Provides: %condstopstart_webrundir
BuildRequires(pre): rpm-macros-branch
BuildRequires(pre): rpm-macros-condstopstart
BuildPreReq: rpm-build-licenses
%description
%summary
%install
install -d %buildroot%condstopstart_webdir/
install -d %buildroot%condstopstart_webrundir/
# Generate web-cond*
for condcommand in condstop condstart condstop-rpm condstart-rpm; do
condcommandfile="%buildroot%_sbindir/web-$condcommand"
install -m 755 -pD %SOURCE0 $condcommandfile
sed -ri "
s| at COMMAND at |$condcommand|g
s| at SCRIPTSDIR at |%condstopstart_webdir|g
s| at RUNDIR at |%condstopstart_webrundir|g
" $condcommandfile
done
install -pD -m 644 %SOURCE10 %buildroot%_tmpfilesdir/%name.conf
sed -i "
s| at RUNDIR at |%condstopstart_webrundir|g
" %buildroot%_tmpfilesdir/*
%files
%config %_tmpfilesdir/*
%attr(755,root,root) %dir %condstopstart_webdir/
%attr(755,root,root) %dir %condstopstart_webrundir/
%_sbindir/*
%changelog
…
Полный changelog можно просмотреть здесь