Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
dahdi-linux
> dahdi-linux.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dahdi-linux.spec of Package dahdi-linux
# # spec file for package dahdi-linux # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: dahdi-linux Summary: Digium Asterisk Hardware Device Interface driver License: GPL-2.0 Group: Productivity/Telephony/Utilities Version: 2.6.2 Release: 0 Url: http://asterisk.org/ Obsoletes: dahdi #DL-URL: http://downloads.asterisk.org/pub/telephony/asterisk/ Source0: %{name}-%{version}.tar.bz2 Source1: %name-preamble # tarball made of http://downloads.digium.com/pub/telephony/firmware/releases/ Source2: firmware-20111101.tar.bz2 Patch0: sles.patch Patch5: dahdi-pmake.diff Patch6: dahdi-moddir.diff Patch7: dahdi-kill-xpp_h.diff Patch8: dahdi-warn-on-once.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: kernel-syms BuildRequires: module-init-tools BuildRequires: udev Provides: dahdi = %version-%release # EC2 and UM have no PCI, but DAHDI is all about PCI device drivers %kernel_module_package -p %name-preamble -x ec2 um %description This package contains configuration files, header files, and setup tools needed for the zapata telephony interface drivers. See /usr/share/doc/packages/dahdi/README for a list of supported hardware. %package KMP Summary: Digium Asterisk Hardware Device Interface driver Group: System/Kernel %description KMP This package contains the kernel modules of the Zapata Telephony Interface. For details see the dahdi package. %package devel Summary: Development files for the Digium Asterisk Hardware Device Interface Group: Development/Libraries/Other License: GPL-2.0, LGPL-2.1 Requires: %{name} = %{version} Provides: dahdi-devel = %version-%release Provides: dahdi-linux-syms = %version-%release %description devel This package contains the header files and libraries necessary for developing applications which use zpatel. Install dahdi-devel if you want to develop applications which depend on asterisk. %prep %setup -qa2 %if 0%{?sles_version} == 10 %patch -P 0 -p0 %endif %patch -P 5 -P 6 -P 7 -P 8 -p1 pushd drivers/dahdi/firmware/; for i in *.tar*; do tar -xf "$i"; done; popd; # enable echo_oslec for opensuse >11.1 more info regarding oslec is at # http://www.rowetel.com/blog/?page_id=454 # SUSE already has CONFIG_ECHO=m, so we do not no copy of echo.c. %if %{?suse_version} > 1110 perl -i -pe 's{^#(?=obj-m += dahdi_echocan_oslec.o)}{}' drivers/dahdi/Kbuild %endif %build export CFLAGS="%optflags"; mkdir -p ../obj; for flavor in %flavors_to_build; do cp -a . "../obj/$flavor"; pushd "../obj/$flavor"; make KSRC="/usr/src/linux-obj/%_target_cpu/$flavor" %{?_smp_mflags}; popd; done; %install b="%buildroot"; for flavor in %flavors_to_build; do pushd "../obj/$flavor"; make INSTALL_MOD_PATH="$b" DESTDIR="$b" \ KSRC="/usr/src/linux-obj/%_target_cpu/$flavor" \ %{?_smp_mflags} install; # wanpipe-kmp wants this dahdi_dir="%_includedir/dahdi/obj/%_target_cpu/$flavor"; mkdir -p "$b/$dahdi_dir/include"; ln -s "%_includedir/dahdi" "$b/$dahdi_dir/include/dahdi"; mkdir -p "$b/$dahdi_dir/drivers/dahdi"; cp -a drivers/dahdi/Module*.symvers "$b/$dahdi_dir/drivers/dahdi"; # wanted by voicesync/wanpipe-voicetime cp -a drivers/dahdi/ecdis.h "$b/$dahdi_dir/drivers/dahdi"; cp -a drivers/dahdi/biquad.h "$b/$dahdi_dir/drivers/dahdi"; echo "%version" >"$b/$dahdi_dir/.version"; popd; done; # remove pointless double copy rm -Rf "$b/usr/lib/hotplug"; %files %defattr(-,root,root) %doc LICENSE* README %dir /etc/udev %dir /etc/udev/rules.d %config /etc/udev/rules.d/dahdi.rules %config /etc/udev/rules.d/xpp.rules /usr/share/dahdi /lib/firmware/* /lib/firmware/.dahdi* %files devel %defattr(-,root,root,-) %_includedir/dahdi %changelog