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 (Revision 15)
Currently displaying revision
15
,
show latest
# # spec file for package dahdi-linux (Version 2.2.1) # # # norootforbuild # usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 capi4linux capisuite coreutils cpio cpp cpp41 cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc41 gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kernel-source kernel-syms klogd less libacl libattr libpri libcom_err libgcc41 libltdl libmudflap41 libnscd libstdc++41 libtool libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone udev unzip util-linux vim zlib zlib-devel Name: dahdi-linux BuildRequires: kernel-source kernel-syms udev newt-devel wget module-init-tools libpri libxml2 libxml2-devel URL: http://www.asterisk.org Summary: Tools for the Zapata Telephony Interface Driver Version: 2.2.1 Release: 26.1 License: GNU General Public License (GPL) Group: Productivity/Telephony/Utilities PreReq: %insserv_prereq %fillup_prereq udev PreReq: /usr/sbin/useradd Requires: dahdi-linux-kmp Excludearch: s390 s390x BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://ftp.digium.com/pub/dahdi/dahdi-linux-%{version}.tar.bz2 Source1: preamble Source2: firmware.tar.bz2 Patch0: dahdi.patch Patch1: dahdi-driver.patch Patch2: rtc.patch Patch3: sles.patch %suse_kernel_module_package -p %_sourcedir/preamble kdump um iseries64 ppc64 debug %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. Authors: -------- Mark Spencer <markster@digium.com> %debug_package %package KMP Summary: DAHDI Telephony Interface Drivers Group: System/Kernel %description KMP This package contains the kernel modules of the Zapata Telephony Interface. For details see the dahdi package. Authors: -------- Mark Spencer <markster@digium.com> %package devel Summary: Development files for dahdi Group: Development/Libraries PreReq: dahdi-linux %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. Authors: -------- Mark Spencer <markster@digium.com> %prep %setup -n %name-%{version} # Fix lib vs. lib64 %{__perl} -pi -e 's|/usr/lib|%{_libdir}|g' Makefile # Force mknod calls to never happen %{__perl} -pi -e 's|mknod |true |g' Makefile #%patch0 -p0 %patch1 -p0 #%patch2 -p0 %if 0%{?sles_version} == 10 %patch3 -p0 %endif tar xvjf %SOURCE2 %build export CFLAGS="%{optflags}" cd .. mkdir -p obj for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r dahdi-linux-%{version} obj/$flavor done %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}%{_mandir}/man8 #make DESTDIR="%{buildroot}" ROOT_PREFIX="%{buildroot}" LIBDIR="%{_libdir}" install for flavor in %flavors_to_build; do make DESTDIR="%{buildroot}" ROOT_PREFIX="%{buildroot}" LIBDIR="%{_libdir}" KSRC=/usr/src/linux-obj/%_target_cpu/$flavor install done # Install the init script and sysconfig file export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor DESTDIR="%{buildroot}" ROOT_PREFIX="%{buildroot}" LIBDIR="%{_libdir}" KSRC=/usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor done %clean rm -rf %buildroot %pre groupadd -g 330 -r asterisk 2>/dev/null || useradd -g asterisk -r -u 330 -d /var/lib/asterisk -s /bin/false \ -c "Asterisk PBX" asterisk 2>/dev/null || : %post %{?fillup_and_insserv:%fillup_and_insserv} %{?run_ldconfig:%run_ldconfig} #/sbin/chkconfig --add dahdi #/sbin/chkconfig --level 2345 dahdi on #ln -sf /etc/init.d/dahdi /usr/sbin/rcdahdi %postun %{?insserv_cleanup:%insserv_cleanup} %{?run_ldconfig:%run_ldconfig} /sbin/depmod -a -F /boot/System.map-%{kernel} %{kernel} &>/dev/null || : #rm -rf /usr/sbin/rcdahdi %preun %{?stop_on_removal:%stop_on_removal dahdi} %files %defattr(-,root,root,-) /usr/share/dahdi /usr/share/dahdi/* /lib/firmware/* /lib/firmware/.dahdi* /usr/lib/hotplug /usr/lib/hotplug/firmware /usr/lib/hotplug/firmware/dahdi* /usr/lib/hotplug/firmware/.dahdi* %files devel %defattr(-,root,root,-) %dir %{_includedir}/dahdi /usr/include/dahdi/* %changelog -n dahdi-linux * Mon Dec 21 2009 - vittorio@vitsoft.bz - dahdi-linux 2.2.1 * Wed Aug 19 2009 - vittorio@vitsoft.bz - dahdi-linux 2.2.0.2 * Fri Jul 03 2009 - vittorio@vitsoft.bz - dahdi-linux 2.2.0.1 * Wed Jul 01 2009 - vittorio@vitsoft.bz - dahdi-linux 2.2.0 * Wed Dec 10 2008 - vittorio@vitsoft.bz - dahdi-linux 2.1.0 * Sat Oct 04 2008 - vittorio@vitsoft.bz - dahdi-linux 2.0.0 * Mon Sep 15 2008 - vittorio@vitsoft.bz - dahdi-linux 2.0.0 rc4