Репозитории ALT
5.1: | 6.1.10-alt1 |
4.1: | 6.0-alt2.R1 |
4.0: | 6.0-alt1.rc26 |
+updates: | 6.0-alt1.rc26 |
Группа :: Система/Ядро и оборудование
Пакет: cronyx
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Packager: Denis Smirnov <mithraen at altlinux.ru>
%define cronyx_ver 600
%define vrelease 0.12
# cronyx must start before zaptel
# asterisk must start after zaptel
Name: cronyx
Version: 6.0
Release: alt1.rc26
Summary: Utilites for Cronyx hardware
License: BSD-like
Group: System/Kernel and hardware
Url: http://cronyx.ru/software/
BuildRequires: kernel-headers-modules-std-smp zaptel-devel
Conflicts: zaptel < 20070222:1.3-alt0.13
Source: %name.tar
Requires: asterisk-base
BuildPreReq: libnewt-devel
%package -n kernel-source-%name
Summary: Linux %name module sources
Group: Development/Kernel
%description
%summary
%description -n kernel-source-%name
This package contains %name sources for Linux kernel module
%description -n kernel-source-%name -l ru_RU.KOI8-R
Этот пакет содержит исходники %name для модуля ядра Линукс
%prep
%setup -c
t="$RPM_SOURCE_DIR/kernel-source-%name-%version"
%__rm -rf "$t"
mkdir -p $t/
cp -a ./ "$t/"
mv "$t" .
%build
./configure \
--with-zaptel=/usr/include/zaptel \
--with-ksrc=/usr/src/`ls -1 /usr/src | grep std-smp | head -n1`
%install
# Make kernel-source tarball
mkdir -p %buildroot%_usrsrc/kernel/sources
du -hsc kernel-source-%name-%version
%__tar cjf \
%buildroot%_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2 \
kernel-source-%name-%version
mkdir -p %buildroot/sbin/ %buildroot/etc %buildroot%_man8dir
make sconfig
install sconfig %buildroot/sbin/
install sconfig.en %buildroot%_man8dir/sconfig.8
#install sconfig.ru %buildroot%_man8dir/sconfig.8
install cronyx.conf.in %buildroot%_sysconfdir/cronyx.conf
%preun
%post
%files
# cronyx
/sbin/sconfig
%_man8dir/sconfig.8*
%config(noreplace) %_sysconfdir/cronyx.conf
%files -n kernel-source-%name
%_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2
%changelog
…
Полный changelog можно просмотреть здесь
%define cronyx_ver 600
%define vrelease 0.12
# cronyx must start before zaptel
# asterisk must start after zaptel
Name: cronyx
Version: 6.0
Release: alt1.rc26
Summary: Utilites for Cronyx hardware
License: BSD-like
Group: System/Kernel and hardware
Url: http://cronyx.ru/software/
BuildRequires: kernel-headers-modules-std-smp zaptel-devel
Conflicts: zaptel < 20070222:1.3-alt0.13
Source: %name.tar
Requires: asterisk-base
BuildPreReq: libnewt-devel
%package -n kernel-source-%name
Summary: Linux %name module sources
Group: Development/Kernel
%description
%summary
%description -n kernel-source-%name
This package contains %name sources for Linux kernel module
%description -n kernel-source-%name -l ru_RU.KOI8-R
Этот пакет содержит исходники %name для модуля ядра Линукс
%prep
%setup -c
t="$RPM_SOURCE_DIR/kernel-source-%name-%version"
%__rm -rf "$t"
mkdir -p $t/
cp -a ./ "$t/"
mv "$t" .
%build
./configure \
--with-zaptel=/usr/include/zaptel \
--with-ksrc=/usr/src/`ls -1 /usr/src | grep std-smp | head -n1`
%install
# Make kernel-source tarball
mkdir -p %buildroot%_usrsrc/kernel/sources
du -hsc kernel-source-%name-%version
%__tar cjf \
%buildroot%_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2 \
kernel-source-%name-%version
mkdir -p %buildroot/sbin/ %buildroot/etc %buildroot%_man8dir
make sconfig
install sconfig %buildroot/sbin/
install sconfig.en %buildroot%_man8dir/sconfig.8
#install sconfig.ru %buildroot%_man8dir/sconfig.8
install cronyx.conf.in %buildroot%_sysconfdir/cronyx.conf
%preun
%post
%files
# cronyx
/sbin/sconfig
%_man8dir/sconfig.8*
%config(noreplace) %_sysconfdir/cronyx.conf
%files -n kernel-source-%name
%_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2
%changelog
…
Полный changelog можно просмотреть здесь