Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:pbx
wanpipe
wanpipe.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wanpipe.spec of Package wanpipe
# # spec file for package wanpipe # # 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: wanpipe Version: 7.0.34 Release: 0 Summary: Sangoma "Wanpipe" Voice, TDM and Wan Drivers/Utilities License: No-Permissions and GPL-2.0 and GPL-2.0 and LGPL-2.1+ and BSD-2-Clause and BSD-3-Clause and SUSE-Public-Domain Group: Productivity/Telephony/Utilities #Git-Clone: https://git.osmocom.org/wanpipe (not upstream !) URL: https://wiki.sangoma.com/display/PC/Telephony+Cards Source: https://ftp.sangoma.com/linux/current_wanpipe/wanpipe-%version.tgz Source2: %name-rpmlintrc Source3: LICENSE.PROBLEM Source4: prepare-tar.sh Source5: %name-kmp-preamble Patch11: libsangoma-01-typepun.diff Patch12: libsangoma-02-protos.diff Patch13: libsangoma-03-libadd.diff Patch14: libsangoma-04-remove-ar.diff Patch15: libsangoma-05-simplify-autoinit.diff Patch16: libsangoma-06-remove-extra-lib.diff Patch17: libsangoma-07-libpri.diff Patch18: libsangoma-08-unused-checks.diff Patch19: libsangoma-09-cppflags.diff Patch21: libstelephony-01-simplify-autoinit.diff Patch23: libstelephony-03-unused-checks.diff Patch24: libstelephony-04-cppflags.diff Patch31: libteletone-01-unusedvar.diff Patch41: wanpipe-01-destdir.diff Patch42: wanpipe-02-no-hardcoded-paths.diff Patch43: wanpipe-03-nodeps.diff Patch44: wanpipe-04-kernel3.diff Patch45: wanpipe-05-typepun.diff Patch46: wanpipe-06-atmpipemon-typepun.diff Patch47: wanpipe-07-aftpipemon-typepun-3.5.28.diff Patch48: wanpipe-08-usbpipemon-typepun.diff Patch50: wanpipe-10-verbose.diff Patch52: kmp-01-asm-system.diff Patch53: kmp-02-makefile.diff Patch54: kmp-03-simplify-install.diff Patch56: kmp-06-pcidev.diff Patch58: 0001-Support-for-kernel-5.14.0.patch # libsangoma BuildRequires: libpri-devel BuildRequires: libtool # libstelephony BuildRequires: gcc-c++ BuildRequires: libtool # libteletone BuildRequires: libtool # wanpipe-kmp BuildRequires: dahdi-linux-devel BuildRequires: dahdi-linux-syms BuildRequires: kernel-macros BuildRequires: kernel-syms BuildRequires: module-init-tools # utils/smgbri BuildRequires: bison BuildRequires: flex BuildRequires: lksctp-tools-devel BuildRequires: ncurses-devel BuildRequires: xz %define build_utils 1 %define build_smgbri 1 %kernel_module_package -p %name-kmp-preamble %description This package contains configuration files, header files, and setup tools needed for the Sangoma wanpipe voice/TDM and WAN drivers. See %_datadir/doc/packages/wanpipe/README for a list of supported hardware. %package devel Summary: Sangoma Wanpipe Voice/TDM, WAN Drivers License: No-Permissions and GPL-2.0 and GPL-2.0 and LGPL-2.1+ and BSD-2-Clause and BSD-3-Clause and SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: %name = %version %description devel This package contains the header files and libraries necessary for developing applications which use wanpipe. Install wanpipe-devel if you want to develop applications which depend on wanpipe. %package KMP Summary: Sangoma Wanpipe Voice/TDM, WAN Drivers License: No-Permissions and GPL-2.0+ and BSD-4-Clause, MPL? Group: System/Kernel %description KMP This package contains the kernel modules of the Sangoma Wanpipe Voice/TDM and WAN Drivers. %package -n libsangoma3 Summary: OS abstraction to Wanpipe Driver API system calls License: No-Permissions and GPL-2.0+ and BSD-3-Clause and BSD-4-Clause and SUSE-Public-Domain Group: System/Libraries %description -n libsangoma3 LibSangoma provides OS abstraction to Wanpipe Driver API system calls. It contains all Wanpipe Driver API functions, abstracted for Linux & Windows so that user application remains OS independent. %package -n libsangoma-devel Summary: Development files for libsangoma License: No-Permissions and GPL-2.0+ and BSD-3-Clause and BSD-4-Clause and SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: libsangoma3 = %version %description -n libsangoma-devel LibSangoma provides OS abstraction to Wanpipe Driver API system calls. It contains all Wanpipe Driver API functions, abstracted for Linux & Windows so that user application remains OS independent. %package -n libstelephony1 Summary: The Sangoma telephone library License: No-Permissions and BSD-2-Clause and MPL-1.1 and SUSE-Public-Domain Group: System/Libraries %description -n libstelephony1 (Sangoma has provided no description.) %package -n libstelephony-devel Summary: Development files for libstelephony License: No-Permissions and BSD-2-Clause and MPL-1.1 and SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: libstelephony1 = %version %description -n libstelephony-devel (Sangoma has provided no description.) %package -n libteletone0 Summary: Library for telephony DTMF and tone synthesis and detection License: MPL-1.1 and SUSE-Public-Domain Group: System/Libraries %description -n libteletone0 libteletone is a library for general telephony tone detection, and specific detection of DTMF, as well as tone synthesis. It uses the Groetzel algorithm. %package -n libteletone-devel Summary: Development files for libteletone License: MPL-1.1 and SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: libteletone0 = %version %description -n libteletone-devel libteletone is a library for general telephony tone detection, and specific detection of DTMF, as well as tone synthesis. It uses the Groetzel algorithm. %prep %setup -q %patch -P 11 -P 12 -P 13 -P 14 -P 15 -P 16 -P 17 -P 18 -P 19 -p1 %patch -P 21 -P 23 -P 24 -p1 %patch -P 31 -p1 %patch -P 41 -P 42 -P 43 -P 44 -P 45 -P 46 -P 47 -P 48 -P 50 -p1 %patch -P 52 -P 53 -P 54 -P 56 -P 58 -p1 %build # # libsangoma # pushd api/libsangoma/ ./init-automake.sh %configure --disable-static --with-libpri %make_build popd # # libstelephony # pushd api/libstelephony/ ./init-automake.sh %configure --disable-static %make_build popd # # libteletone # pushd ssmg/sangoma_mgd.trunk/lib/libteletone/ autoreconf -fi %configure --disable-static %make_build popd # # utils # %if 0%{?build_utils} %if "%_lib" != "lib" mkdir -p "util/.lib/usr/%_lib" ln -s "%_lib" util/.lib/usr/lib %endif make all_util %if 0%{?build_smgbri} make smgbri %endif %endif # # kernel # cd .. mkdir -p obj for flavor in %flavors_to_build; do cp -a wanpipe-%version "obj-$flavor/" pushd "obj-$flavor/" make V=1 DAHDI_DIR="%_includedir/dahdi/obj/%_target_cpu/$flavor" \ ZAPDIR="%_includedir/dahdi/obj/%_target_cpu/$flavor" \ KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \ KSRC="/usr/src/linux" \ %{?_smp_mflags} all_kmod_dahdi popd done %install b="%buildroot" # # libsangoma # pushd api/libsangoma/ %make_install popd # # libstelephony # pushd api/libstelephony/ %make_install popd # # libteletone # pushd ssmg/sangoma_mgd.trunk/lib/libteletone/ %make_install popd # # utils # mkdir -p "$b/%_sysconfdir/wanpipe" %if 0%{?build_utils} make install_util DESTDIR="$b" %if 0%{?build_smgbri} make install_smgbri DESTDIR="$b" %endif for i in lib util wancfg_zaptel; do mkdir -p "$b/%_libexecdir/wanpipe" mv "$b/%_sysconfdir/wanpipe/$i" "$b/%_libexecdir/wanpipe" #ln -s "%_libexecdir/wanpipe/$i" "$b/%_sysconfdir/wanpipe/" done mkdir -p "$b/%_sysconfdir/wanpipe/tmp_cfg" ln -s "%_sysconfdir/wanpipe/tmp_cfg" "$b/%_libexecdir/wanpipe/wancfg_zaptel" %endif make install_inc DESTDIR="$b" rm -f "$b/%_libdir"/*.la for i in firmware wan_ec; do cp -a "$i" "$b/%_libexecdir/wanpipe/" ln -s "%_libexecdir/wanpipe/$i" "$b/%_sysconfdir/wanpipe/" done # # kernel # for flavor in %flavors_to_build; do pushd "../obj-$flavor/" make DAHDI_DIR="%_includedir/dahdi/obj-%_target_cpu/$flavor" \ KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \ INSTALL_MOD_PATH="$b" %{?_smp_mflags} install_kmod popd done # This installs way too much shit. # install_etc install_smgbri install_bri \ # INSTALLPREFIX="$b" # People, get real. echo Moving sbin. mv -v "$b/usr/local/sbin"/* "$b/%_sbindir/" mkdir -p "$b/%_sbindir/" install -pm0755 samples/wanrouter "$b/%_sbindir/" install -pm0644 samples/wanrouter.rc "$b/%_sysconfdir/wanpipe/" mkdir -p "$b/%_sysconfdir/modprobe.d" echo "install wanpipe_lip /bin/true" >"$b/%_sysconfdir/modprobe.d/80-wanpipe.conf" %post for i in lib util wancfg_zaptel firmware wan_ec; do if [ -L "%_sysconfdir/wanpipe/$i" ]; then rm -f "%_sysconfdir/wanpipe/$i" fi ln -s "%_libexecdir/wanpipe/$i" "%_sysconfdir/wanpipe/" done %post -n libsangoma3 -p /sbin/ldconfig %postun -n libsangoma3 -p /sbin/ldconfig %post -n libstelephony1 -p /sbin/ldconfig %postun -n libstelephony1 -p /sbin/ldconfig %post -n libteletone0 -p /sbin/ldconfig %postun -n libteletone0 -p /sbin/ldconfig %files %_sysconfdir/modprobe.d %dir %_sysconfdir/wanpipe %ghost %_sysconfdir/wanpipe/firmware %ghost %_sysconfdir/wanpipe/wan_ec %if 0%{?build_utils} %ghost %_sysconfdir/wanpipe/lib %ghost %_sysconfdir/wanpipe/util %ghost %_sysconfdir/wanpipe/wancfg_zaptel %_sysconfdir/wanpipe/tmp_cfg/ %_sbindir/setup-sangoma %_sbindir/wan* %_sbindir/wp_pppconfig %_sbindir/wpbwm %endif %if 0%{?build_smgbri} %_sysconfdir/sangoma_mgd.conf %_sysconfdir/wanpipe/safe_sangoma.rc %_sysconfdir/wanpipe/smg.rc %_sbindir/safe_sangoma %_sbindir/sangoma_mgd %_sbindir/smg_ctrl %endif %_sysconfdir/wanpipe/wanrouter.rc %_libexecdir/wanpipe/ %files devel %_includedir/wanpipe/ %files -n libsangoma3 %_libdir/libsangoma.so.3* %files -n libsangoma-devel %_includedir/libhpsangoma.h %_includedir/libsangoma.h %_includedir/sangoma_pri.h %_includedir/wanec_api.h %_libdir/libsangoma.so %files -n libstelephony1 %_libdir/libstelephony.so.1* %files -n libstelephony-devel %_includedir/libstelephony.h %_libdir/libstelephony.so %files -n libteletone0 %_libdir/libteletone.so.0* %files -n libteletone-devel %_includedir/libteletone*.h %_libdir/libteletone.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor