Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
dahdi-tools
> dahdi-tools.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dahdi-tools.spec of Package dahdi-tools (Revision 21)
Currently displaying revision
21
,
show latest
# # spec file for package dahdi-tools # # 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-tools Summary: Tools for the Digium Asterisk Hardware Device Interface driver License: GPL-2.0 Group: Productivity/Telephony/Utilities Version: 2.6.1 Release: 0 Url: http://asterisk.org/ Source0: http://downloads.asterisk.org/pub/telephony/dahdi-tools/%name-%version.tar.bz2 Source1: dahdi.init Source2: dahdi.sysconfig Source10: %{name}.rpmlintrc Patch1: dahdi-gcc47.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq BuildRequires: autoconf BuildRequires: automake BuildRequires: dahdi-linux-devel BuildRequires: libusb-devel BuildRequires: newt-devel BuildRequires: perl BuildRequires: wget %if 0%{?suse_version} >= 1130 BuildRequires: pkgconfig(libxml-2.0) %else BuildRequires: libxml2-devel %endif Requires: perl = %perl_version %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 -n libtonezone2_0 Summary: Tone zone database for the Tormenta ISA card License: LGPL-2.1 Group: Development/Libraries/Other %description -n libtonezone2_0 This package contains the shared libraries (.so) %package -n libtonezone-devel Summary: Development files for libtonezone License: LGPL-2.1 Group: Development/Libraries/C and C++ Requires: libtonezone2_0 = %version Provides: dahdi-tools-devel %description -n libtonezone-devel This package contains the header files and libraries necessary for developing applications which use zpatel. %prep %setup -q %patch -P 1 -p1 %build ./bootstrap.sh %configure make %{?_smp_mflags}; %install b="%buildroot"; find "$b"; perl -pi -e "s/sitelib/vendorlib/g" xpp/Makefile make install DESTDIR=%{buildroot} make config DESTDIR=%{buildroot} # Install the init script and sysconfig file install -D -m0755 %{S:1} %{buildroot}%{_initrddir}/dahdi ln -sf %{_sysconfdir}/init.d/dahdi %{buildroot}%{_sbindir}/rcdahdi install -D -m0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.dahdi # remove deprecated files rm -Rf %{buildroot}%{_sysconfdir}/hotplug # The explanation in dahdi-tools/Makefile seems to contradict itself, # so just go with the fact that libtonezone1 is provided by zaptel. rm -f "$b/%_libdir"/libtonezone.so.1*; # No shared library has this SONAME, so delete this stray symlink. rm -f "$b/%_libdir/libtonezone.so.2"; # Nothing in this file. If user wants options, he should define his own # file that is not tracked by rpm. rm -f "$b/%_sysconfdir/modprobe.d/dahdi.conf"; %preun %{stop_on_removal dahdi} %post %{fillup_and_insserv dahdi} %postun %restart_on_update dahdi %insserv_cleanup %post -n libtonezone2_0 -p /sbin/ldconfig %postun -n libtonezone2_0 -p /sbin/ldconfig %files %defattr(-,root,root) %doc ChangeLog LICENSE* README %dir /etc/dahdi %config /etc/dahdi/init.conf %config /etc/dahdi/genconf_parameters %config /etc/dahdi/modules %config /etc/dahdi/system.conf #config /etc/hotplug/usb/xpp_fxloader #config /etc/hotplug/usb/xpp_fxloader.usermap %dir /etc/modprobe.d %config /etc/modprobe.d/dahdi.blacklist.conf /etc/init.d/dahdi /var/adm/fillup-templates/sysconfig.dahdi %{perl_vendorlib}/* %{_sbindir}/* %{_mandir}/man8/* /usr/share/dahdi /usr/sbin/sethdlc /usr/share/dahdi/astribank_hook /usr/sbin/twinstar /usr/share/man/man8/twinstar.8.gz %files -n libtonezone2_0 %defattr(-,root,root,-) %{_libdir}/libtonezone.so.2.0* %files -n libtonezone-devel %defattr(-,root,root) %{_includedir}/dahdi/tonezone.h %attr(0644,root,root) %{_libdir}/libtonezone.a %{_libdir}/libtonezone.so %changelog