Group :: System/Kernel and hardware
RPM: dahdi-linux
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
#============================================================================
# Please do not edit!
# Created by specgen utility from files in specs/ subdir
#============================================================================
Name: dahdi-linux
Summary: DAHDI drivers for Digium hardware and Asterisk
Version: 3.0.0
Release: alt1
License: GPL
Group: System/Kernel and hardware
Packager: Denis Smirnov <mithraen at altlinux.ru>
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Source2: %name.watch
Url: http://downloads.asterisk.org/pub/telephony/dahdi-linux/
%package headers
Summary: DAHDI headers
Group: System/Kernel and hardware
%description headers
DAHDI headers
%package -n firmware-dahdi
Summary: firmware for Digium cards
Group: System/Kernel and hardware
BuildArch: noarch
%description -n firmware-dahdi
firmware for Digium cards
%package -n kernel-source-dahdi
Summary: Linux DAHDI module sources
Group: Development/Kernel
BuildArch: noarch
%description -n kernel-source-dahdi
This package contains DAHDI sources for Linux kernel module
%description -n kernel-source-dahdi -l ru_RU.KOI8-R
Этот пакет содержит исходники DAHDI для модуля ядра Линукс
%description
Dahdi drivers only
%prep
%setup
%patch -p1
sed -i 's/^all:.*/all:/' drivers/dahdi/firmware/Makefile
t="$RPM_SOURCE_DIR/kernel-source-dahdi-%version"
rm -rf "$t"
mkdir -p $t/dahdi
cp -a ./ "$t/dahdi"
mv "$t" .
%install
make DESTDIR=%buildroot install-include
mkdir -p %buildroot/lib/firmware
install -m 6400 drivers/dahdi/firmware/*.bin %buildroot/lib/firmware/
mkdir -p %buildroot%_usrsrc/kernel/sources
du -hsc kernel-source-dahdi-%version
tar cjf \
%buildroot%_usrsrc/kernel/sources/kernel-source-dahdi-%version.tar.bz2 \
kernel-source-dahdi-%version
%files headers
%dir %_includedir/dahdi
%_includedir/dahdi/dahdi_config.h
%_includedir/dahdi/fasthdlc.h
%_includedir/dahdi/kernel.h
%_includedir/dahdi/user.h
%_includedir/dahdi/wctdm_user.h
%files -n firmware-dahdi
/lib/firmware/*
%files -n kernel-source-dahdi
%_usrsrc/kernel/sources/kernel-source-dahdi-%version.tar.bz2
%changelog
…
Full changelog you can see here
# Please do not edit!
# Created by specgen utility from files in specs/ subdir
#============================================================================
Name: dahdi-linux
Summary: DAHDI drivers for Digium hardware and Asterisk
Version: 3.0.0
Release: alt1
License: GPL
Group: System/Kernel and hardware
Packager: Denis Smirnov <mithraen at altlinux.ru>
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Source2: %name.watch
Url: http://downloads.asterisk.org/pub/telephony/dahdi-linux/
%package headers
Summary: DAHDI headers
Group: System/Kernel and hardware
%description headers
DAHDI headers
%package -n firmware-dahdi
Summary: firmware for Digium cards
Group: System/Kernel and hardware
BuildArch: noarch
%description -n firmware-dahdi
firmware for Digium cards
%package -n kernel-source-dahdi
Summary: Linux DAHDI module sources
Group: Development/Kernel
BuildArch: noarch
%description -n kernel-source-dahdi
This package contains DAHDI sources for Linux kernel module
%description -n kernel-source-dahdi -l ru_RU.KOI8-R
Этот пакет содержит исходники DAHDI для модуля ядра Линукс
%description
Dahdi drivers only
%prep
%setup
%patch -p1
sed -i 's/^all:.*/all:/' drivers/dahdi/firmware/Makefile
t="$RPM_SOURCE_DIR/kernel-source-dahdi-%version"
rm -rf "$t"
mkdir -p $t/dahdi
cp -a ./ "$t/dahdi"
mv "$t" .
%install
make DESTDIR=%buildroot install-include
mkdir -p %buildroot/lib/firmware
install -m 6400 drivers/dahdi/firmware/*.bin %buildroot/lib/firmware/
mkdir -p %buildroot%_usrsrc/kernel/sources
du -hsc kernel-source-dahdi-%version
tar cjf \
%buildroot%_usrsrc/kernel/sources/kernel-source-dahdi-%version.tar.bz2 \
kernel-source-dahdi-%version
%files headers
%dir %_includedir/dahdi
%_includedir/dahdi/dahdi_config.h
%_includedir/dahdi/fasthdlc.h
%_includedir/dahdi/kernel.h
%_includedir/dahdi/user.h
%_includedir/dahdi/wctdm_user.h
%files -n firmware-dahdi
/lib/firmware/*
%files -n kernel-source-dahdi
%_usrsrc/kernel/sources/kernel-source-dahdi-%version.tar.bz2
%changelog
…
Full changelog you can see here