Репозитории ALT

S: | 0.3.12-alt1 |
5.1: | 0.3.6-alt2 |
4.1: | 0.3.5-alt1 |
4.0: | 0.3.5-alt1 |
3.0: | 0.3.3-alt1 |
Группа :: Работа с файлами
Пакет: chrooted
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: chrooted
Version: 0.3.5
Release: alt1
Summary: The chrooted environment helper
License: GPL
Group: File tools
BuildArch: noarch
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define _chrootdir %_sysconfdir/chroot.d
Source: %name-%version.tar
Provides: %_chrootdir
Requires: coreutils, getopt, glibc-utils, grep, sed
BuildPreReq: help2man
%description
This package is required for chroot-aware packages.
%prep
%setup -q
%build
sed -i 's/ at VERSION at /%version/g' -- update_chrooted
help2man -N -s8 -i update_chrooted.8.inc ./update_chrooted >update_chrooted.8
%install
mkdir -p %buildroot{/sbin,%_sbindir,%_man8dir,%_chrootdir}
install -pm755 update_chrooted %buildroot/sbin/
ln -s ../../sbin/update_chrooted %buildroot%_sbindir/
install -pm755 functions %buildroot%_chrootdir/
install -pm644 update_chrooted.8 %buildroot%_man8dir/
# Generate shell functions provides list.
(
echo '# shell functions provides list'
for f in %buildroot%_chrootdir/*; do
[ -x "$f" ] || continue
sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
done |LC_COLLATE=C sort -u
) >%buildroot%_chrootdir/.provides.sh
%post
/sbin/update_chrooted lib conf
%files
/sbin/*
%_sbindir/*
%_man8dir/*
%config %_chrootdir
%changelog
…
Полный changelog можно просмотреть здесь
Version: 0.3.5
Release: alt1
Summary: The chrooted environment helper
License: GPL
Group: File tools
BuildArch: noarch
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define _chrootdir %_sysconfdir/chroot.d
Source: %name-%version.tar
Provides: %_chrootdir
Requires: coreutils, getopt, glibc-utils, grep, sed
BuildPreReq: help2man
%description
This package is required for chroot-aware packages.
%prep
%setup -q
%build
sed -i 's/ at VERSION at /%version/g' -- update_chrooted
help2man -N -s8 -i update_chrooted.8.inc ./update_chrooted >update_chrooted.8
%install
mkdir -p %buildroot{/sbin,%_sbindir,%_man8dir,%_chrootdir}
install -pm755 update_chrooted %buildroot/sbin/
ln -s ../../sbin/update_chrooted %buildroot%_sbindir/
install -pm755 functions %buildroot%_chrootdir/
install -pm644 update_chrooted.8 %buildroot%_man8dir/
# Generate shell functions provides list.
(
echo '# shell functions provides list'
for f in %buildroot%_chrootdir/*; do
[ -x "$f" ] || continue
sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
done |LC_COLLATE=C sort -u
) >%buildroot%_chrootdir/.provides.sh
%post
/sbin/update_chrooted lib conf
%files
/sbin/*
%_sbindir/*
%_man8dir/*
%config %_chrootdir
%changelog
…
Полный changelog можно просмотреть здесь