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 19)
Currently displaying revision
19
,
show latest
# # spec file for package dahdi-tools # # Copyright (c) 2011 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 Zapata Telephony Interface Driver Version: 2.5.0.1 Release: 0 License: GNU General Public License (GPL) Group: Productivity/Telephony/Utilities Url: http://www.asterisk.org Source0: http://downloads.asterisk.org/pub/telephony/%{name}/%{name}-%{version}.tar.bz2 Source1: dahdi.init Source2: dahdi.sysconfig Source10: %{name}.rpmlintrc Patch1: %{name}-2.3.0-Makefile.patch Patch2: dahdi-tools-soname.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq BuildRequires: perl wget BuildRequires: dahdi-linux-devel BuildRequires: libpri-devel BuildRequires: libusb-devel BuildRequires: newt-devel %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 Summary: Dahdi shared libraries Group: Development/Libraries/Other %description -n libtonezone2 This package contains the shared libraries (.so) %package -n libtonezone-devel Summary: Development files for dahdi Group: Development/Libraries/C and C++ Requires: libtonezone2 = %{version} %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 -P 2 -p1 %build ./bootstrap.sh %configure %install b="%buildroot"; perl -pi -e "s/sitelib/vendorlib/g" xpp/Makefile %{__make} DESTDIR=%{buildroot} %makeinstall DESTDIR=%{buildroot} %{__make} config DESTDIR=%{buildroot} # Install the init script and sysconfig file %{__install} -D -m0755 %{S:1} %{buildroot}%{_initrddir}/dahdi %{__ln_s} -f %{_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*; %preun %{stop_on_removal dahdi} %post %{fillup_and_insserv dahdi} %postun %restart_on_update dahdi %insserv_cleanup %post -n libtonezone2 -p /sbin/ldconfig %postun -n libtonezone2 -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 %config /etc/modprobe.d/dahdi.blacklist /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 %defattr(-,root,root,-) %{_libdir}/libtonezone.so.2* %files -n libtonezone-devel %defattr(-,root,root,-) %{_includedir}/dahdi/tonezone.h %attr(0644,root,root) %{_libdir}/libtonezone.a %{_libdir}/libtonezone.so