Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
dahdi-linux29
> 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-linux29 (Revision 3)
Currently displaying revision
3
,
show latest
# # 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/ # # needssslcertforbuild BuildRequires: -pesign-obs-integration Name: dahdi-linux Summary: Digium Asterisk Hardware Device Interface driver License: GPL-2.0 Group: Productivity/Telephony/Utilities Version: 2.9.0 Release: 0 Url: http://asterisk.org/ #DL-URL: http://downloads.asterisk.org/pub/telephony/dahdi-linux/ Source: http://downloads.asterisk.org/pub/telephony/dahdi-linux/%name-%version.tar.gz Source2: http://downloads.asterisk.org/pub/telephony/dahdi-linux/%name-%version.tar.gz.asc Source3: %name-preamble # tarball made from http://downloads.digium.com/pub/telephony/firmware/releases/ Source4: firmware-20131224.tar.xz 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 %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: kernel-syms >= 2.6.17 BuildRequires: modutils %endif BuildRequires: udev BuildRequires: xz %if 0%{?suse_version} >= 1230 BuildRequires: gpg-offline %endif Provides: dahdi = %version-%release Obsoletes: dahdi < %version-%release # EC2 and UM have no PCI, but DAHDI is all about PCI device drivers %{?suse_version:%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 and LGPL-2.1 Requires: %name = %version-%release 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 zaptel. Install dahdi-devel if you want to develop applications which depend on asterisk. %prep %{?gpg_verify: %gpg_verify %{S:2}} %setup -qa4 %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 0%{?suse_version} >= 1120 || 0%{?fedora_version} perl -i -pe 's{^#(?=obj-m += dahdi_echocan_oslec.o)}{}' drivers/dahdi/Kbuild %endif %build %if !0%{?suse_version} exit 0 %endif 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"; %if 0%{?suse_version} 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" cp -a include "$b/$dahdi_dir/" 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; %else make install DESTDIR="$b" install-devices install-include \ install-firmware install-xpp-firm; %endif # remove pointless double copy rm -Rfv "$b/usr/lib/hotplug" %if 0%{?fdupes:1} %fdupes %buildroot/%_prefix %endif %files %defattr(-,root,root) %doc LICENSE* README %_datadir/dahdi/ /lib/firmware/* /lib/firmware/.dahdi* %files devel %defattr(-,root,root) %_includedir/dahdi/ %changelog