4f00f06
%define tools_version 2.4.1
4f00f06
%define linux_version 2.4.1
dfba6cb
dfba6cb
Name:           dahdi-tools
dfba6cb
Version:        %{tools_version}
645e79a
Release:        5%{?dist}
dfba6cb
Summary:        Userspace tools to configure the DAHDI kernel modules
dfba6cb
dfba6cb
Group:          System Environment/Libraries
dfba6cb
License:        GPLv2 and LGPLv2
dfba6cb
URL:            http://www.asterisk.org/
dfba6cb
7e9f440
Source0:        http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-%{tools_version}.tar.gz
42e399d
Source1:        http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-%{tools_version}.tar.gz.asc
42e399d
Source2:        http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-%{linux_version}.tar.gz
42e399d
Source3:        http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-%{linux_version}.tar.gz.asc
dfba6cb
dfba6cb
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
dfba6cb
4b7bf77
BuildRequires:  newt-devel%{?_isa}
4b7bf77
BuildRequires:  libusb-devel%{?_isa}
dfba6cb
BuildRequires:  perl
dfba6cb
4b7bf77
Requires:        perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
4b7bf77
Requires:        dahdi-tools-libs%{?_isa} = %{version}-%{release}
4b7bf77
Requires(pre):   %{_sbindir}/useradd
4b7bf77
Requires(pre):   %{_sbindir}/groupadd
4b7bf77
Requires(post):  /sbin/chkconfig
dfba6cb
Requires(preun): /sbin/chkconfig
dfba6cb
Requires(preun): /sbin/service
dfba6cb
4b7bf77
Conflicts:       zaptel-utils
fc53e7d
dfba6cb
%description
dfba6cb
DAHDI stands for Digium Asterisk Hardware Device Interface. This
dfba6cb
package contains the userspace tools to configure the DAHDI kernel
dfba6cb
modules.  DAHDI is the replacement for Zaptel, which must be renamed
dfba6cb
due to trademark issues.
dfba6cb
dfba6cb
%package        libs
dfba6cb
Summary:        Library files for DAHDI
dfba6cb
Group:          Development/Libraries
69247a7
Conflicts:      zaptel-lib
dfba6cb
dfba6cb
%description    libs
dfba6cb
The dahdi-tools-libs package contains libraries for accessing DAHDI hardware.
dfba6cb
dfba6cb
%package        devel
dfba6cb
Summary:        Development files for DAHDI
dfba6cb
Group:          Development/Libraries
4b7bf77
Requires:       dahdi-tools-libs%{?_isa} = %{version}-%{release}
dfba6cb
dfba6cb
%description    devel
dfba6cb
The dahdi-devel package contains libraries and header files for
dfba6cb
developing applications that use DAHDI hardware.
dfba6cb
dfba6cb
%prep
42e399d
%setup0 -q -n dahdi-tools-%{tools_version} -a 2
dfba6cb
ln -s dahdi-linux-%{linux_version}/include include
dfba6cb
%{__perl} -pi -e 's/chkconfig:\s([0-9]+)\s([0-9]+)\s([0-9]+)/chkconfig: - \2 \3/' dahdi.init
dfba6cb
dfba6cb
%build
dfba6cb
dfba6cb
pushd menuselect/mxml
dfba6cb
%configure
dfba6cb
popd
dfba6cb
dfba6cb
pushd menuselect
dfba6cb
%configure
dfba6cb
popd
dfba6cb
dfba6cb
%configure --disable-static --with-dahdi=`pwd`
dfba6cb
dfba6cb
make %{?_smp_mflags}
dfba6cb
dfba6cb
%install
dfba6cb
rm -rf %{buildroot}
dfba6cb
mkdir -p %{buildroot}%{_initrddir}
dfba6cb
make install config DESTDIR=%{buildroot} PERLLIBDIR=%{perl_vendorlib}
dfba6cb
install -D -p -m 0644 include/dahdi/user.h %{buildroot}%{_includedir}/dahdi/user.h
dfba6cb
find %{buildroot} -name '*.a' -exec rm -f {} ';'
dfba6cb
ln -sf ../../..%{_datadir}/dahdi/xpp_fxloader %{buildroot}%{_sysconfdir}/hotplug/usb/xpp_fxloader
8bc0475
rm -f %{buildroot}%{_sbindir}/sethdlc
dfba6cb
dfba6cb
%clean
dfba6cb
rm -rf %{buildroot}
dfba6cb
dfba6cb
%pre
dfba6cb
%{_sbindir}/groupadd -r dahdi &>/dev/null || :
dfba6cb
%{_sbindir}/useradd  -r -s /sbin/nologin -d /usr/share/dahdi -M \
dfba6cb
                               -c 'DAHDI User' -g dahdi dahdi &>/dev/null || :
dfba6cb
dfba6cb
%post
dfba6cb
/sbin/chkconfig --add dahdi
dfba6cb
dfba6cb
%preun
dfba6cb
if [ "$1" -eq "0" ]; then
dfba6cb
        /sbin/service dahdi stop > /dev/null 2>&1 || :
dfba6cb
        /sbin/chkconfig --del dahdi
dfba6cb
fi
dfba6cb
dfba6cb
%post libs -p /sbin/ldconfig
dfba6cb
dfba6cb
%postun libs -p /sbin/ldconfig
dfba6cb
dfba6cb
%files
dfba6cb
%defattr(-,root,root,-)
dfba6cb
%doc README LICENSE LICENSE.LGPL
dfba6cb
%dir %{_sysconfdir}/dahdi
7e9f440
%config(noreplace) %{_sysconfdir}/dahdi/genconf_parameters
dfba6cb
%config(noreplace) %{_sysconfdir}/dahdi/init.conf
dfba6cb
%config(noreplace) %{_sysconfdir}/dahdi/modules
dfba6cb
%config(noreplace) %{_sysconfdir}/dahdi/system.conf
dfba6cb
%{_sysconfdir}/hotplug/usb/xpp_fxloader
dfba6cb
%config(noreplace) %{_sysconfdir}/hotplug/usb/xpp_fxloader.usermap
efbe2fc
%config(noreplace) %{_sysconfdir}/modprobe.d/dahdi.conf
efbe2fc
%config(noreplace) %{_sysconfdir}/modprobe.d/dahdi.blacklist.conf
dfba6cb
%{_initrddir}/dahdi
7e9f440
%{_sbindir}/astribank_allow
7e9f440
%{_sbindir}/astribank_hexload
7e9f440
%{_sbindir}/astribank_is_starting
7e9f440
%{_sbindir}/astribank_tool
dfba6cb
%{_sbindir}/dahdi_cfg
dfba6cb
%{_sbindir}/dahdi_genconf
dfba6cb
%{_sbindir}/dahdi_hardware
7e9f440
%{_sbindir}/dahdi_maint
dfba6cb
%{_sbindir}/dahdi_monitor
dfba6cb
%{_sbindir}/dahdi_registration
dfba6cb
%{_sbindir}/dahdi_scan
dfba6cb
%{_sbindir}/dahdi_speed
dfba6cb
%{_sbindir}/dahdi_test
dfba6cb
%{_sbindir}/dahdi_tool
dfba6cb
%{_sbindir}/fpga_load
dfba6cb
%{_sbindir}/fxotune
dfba6cb
%{_sbindir}/lsdahdi
7e9f440
%{_sbindir}/twinstar
dfba6cb
%{_sbindir}/xpp_blink
dfba6cb
%{_sbindir}/xpp_sync
dfba6cb
%dir %{_datadir}/dahdi
7e9f440
%{_datadir}/dahdi/astribank_hook
dfba6cb
%{_datadir}/dahdi/xpp_fxloader
4d75711
%{_datadir}/dahdi/waitfor_xpds
7e9f440
%{_mandir}/man8/astribank_allow.8.gz
7e9f440
%{_mandir}/man8/astribank_hexload.8.gz
7e9f440
%{_mandir}/man8/astribank_is_starting.8.gz
7e9f440
%{_mandir}/man8/astribank_tool.8.gz
dfba6cb
%{_mandir}/man8/dahdi_cfg.8.gz
dfba6cb
%{_mandir}/man8/dahdi_genconf.8.gz
dfba6cb
%{_mandir}/man8/dahdi_hardware.8.gz
dfba6cb
%{_mandir}/man8/dahdi_monitor.8.gz
dfba6cb
%{_mandir}/man8/dahdi_registration.8.gz
dfba6cb
%{_mandir}/man8/dahdi_scan.8.gz
dfba6cb
%{_mandir}/man8/dahdi_test.8.gz
dfba6cb
%{_mandir}/man8/dahdi_tool.8.gz
dfba6cb
%{_mandir}/man8/fpga_load.8.gz
dfba6cb
%{_mandir}/man8/fxotune.8.gz
dfba6cb
%{_mandir}/man8/lsdahdi.8.gz
7e9f440
%{_mandir}/man8/twinstar.8.gz
dfba6cb
%{_mandir}/man8/xpp_blink.8.gz
dfba6cb
%{_mandir}/man8/xpp_sync.8.gz
dfba6cb
%{perl_vendorlib}/Dahdi.pm
dfba6cb
%{perl_vendorlib}/Dahdi
dfba6cb
dfba6cb
%files libs
dfba6cb
%defattr(-,root,root,-)
dfba6cb
%doc LICENSE LICENSE.LGPL
dfba6cb
%{_libdir}/*.so.*
dfba6cb
dfba6cb
%files devel
dfba6cb
%defattr(-,root,root,-)
dfba6cb
%doc LICENSE LICENSE.LGPL
dfba6cb
%{_includedir}/*
dfba6cb
%{_libdir}/*.so
dfba6cb
dfba6cb
%changelog
645e79a
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 2.4.1-5
645e79a
- Perl 5.16 rebuild
645e79a
9d730ad
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
9d730ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9d730ad
Marcela Mašláňová 005ddac
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.4.1-3
Marcela Mašláňová 005ddac
- Perl mass rebuild
Marcela Mašláňová 005ddac
Marcela Mašláňová 4c39ee0
* Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.4.1-2
Marcela Mašláňová 4c39ee0
- Perl 5.14 mass rebuild
Marcela Mašláňová 4c39ee0
4f00f06
* Fri Mar  4 2011  <jeff@ocjtech.us> - 2.4.1-1
4f00f06
- The Asterisk Development Team is pleased to announce the release of
4f00f06
- DAHDI-Linux and DAHDI-Tools version 2.4.1.
4f00f06
-
4f00f06
- DAHDI-Linux 2.4.1, DAHDI-Tools 2.4.1, and DAHDI-Linux-Complete 2.4.1+2.4.1 are
4f00f06
- available for immediate download at:
4f00f06
- http://downloads.asterisk.org/pub/telephony/dahdi-linux
4f00f06
- http://downloads.asterisk.org/pub/telephony/dahdi-tools
4f00f06
- http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete
4f00f06
-
4f00f06
- 2.4.1 is a maintenance release of the DAHDI drivers and tools packages. Some of
4f00f06
- the more notable changes are:
4f00f06
-
4f00f06
- * Support for compilation against kernel versions from 2.6.9 up to and including
4f00f06
-  2.6.38-rc6.
4f00f06
-
4f00f06
- * wct4xxp: PCI-express cards go through an extended reset at start by default.
4f00f06
-
4f00f06
- * wcte12xp, wctdm24xxp: Disable read-line multiple PCI command, which increases
4f00f06
-  compatibility in some systems.
4f00f06
-
4f00f06
- * xpp: Fixes init error for PRI devices with < 4 ports.
4f00f06
-
4f00f06
- * tonezone: Add Macao, China to tone zone data.
4f00f06
-
4f00f06
- * dahdi_genconf: Don't generate configurations that use channel 16 on E1 CAS.
4f00f06
-
4f00f06
- For a full list of changes in these releases, please see the ChangeLogs at
4f00f06
- http://svn.asterisk.org/svn/dahdi/linux/tags/2.4.1/ChangeLog and
4f00f06
- http://svn.asterisk.org/svn/dahdi/tools/tags/2.4.1/ChangeLog
4f00f06
-
4f00f06
- Issues found in these release candidates can be reported in the DAHDI-linux or
4f00f06
- DAHDI-tools project at https://issues.asterisk.org
4f00f06
4b7bf77
* Wed Feb  9 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.4.0-2
4b7bf77
- Make library requirements architecture specific.
4b7bf77
42e399d
* Wed Feb  9 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.4.0-1
42e399d
-
42e399d
- In addition to several bug fixes, the most significant changes from the
42e399d
- 2.3.0 release are:
42e399d
-
42e399d
- General DAHDI Changes:
42e399d
-
42e399d
- * Added DAHDI_MAINT_ALARM_SIM maintenance mode for drivers that
42e399d
-  support alarm simulation (wct4xxp).  This is only used by
42e399d
-  dahdi_maint and doesn't change the ABI.
42e399d
-
42e399d
- * Span callbacks are moved out of the dahdi_span structure potentially
42e399d
-  saving memory when a single driver implements multiple spans.
42e399d
-
42e399d
- Changes to dahdi-tools:
42e399d
-
42e399d
- * dahdi_maint: Added support for simulating alarm conditions.
42e399d
-
42e399d
- * dahdi_scan: Report more detailed alarm information.
42e399d
-
42e399d
- * xpp_fxloader:
42e399d
-  - Load firmware in the background
42e399d
-  - Support 1163 twinstar devices
42e399d
-  - A delay loop for older kernels (e.g. 2.6.18)
42e399d
-
42e399d
- * astribank_is_starting does not depend on libusb.
42e399d
-
42e399d
- * Allow using CONNECTOR/LABEL in genconf_parameters for pri_termtype
42e399d
-
42e399d
- For a full list of changes in these releases, please see the ChangeLogs at
42e399d
- http://svn.asterisk.org/svn/dahdi/linux/tags/2.4.0/ChangeLog and
42e399d
- http://svn.asterisk.org/svn/dahdi/tools/tags/2.4.0/ChangeLog
42e399d
62e45fd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
62e45fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
62e45fd
7e9f440
* Sat Aug  7 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.3.0-1
7e9f440
- Update to 2.3.0
7e9f440
7ce2fa2
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.1.0.2-10
7ce2fa2
- Mass rebuild with perl-5.12.0
7ce2fa2
a34d1c5
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 2.1.0.2-9
a34d1c5
- rebuild against perl 5.10.1
a34d1c5
efbe2fc
* Wed Aug 19 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.1.0.2-8
efbe2fc
- fix bz 495453 (/etc/modprobe.d/dahdi.blacklist and /etc/modprobe.d/dahdi doesn't end with.conf)
efbe2fc
9687af6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0.2-7
9687af6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9687af6
fc53e7d
* Fri May  8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.0.2-6
fc53e7d
- Let dahdi-tools conflict with zaptel-utils (#472357).
fc53e7d
2ee2de4
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0.2-5
2ee2de4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2ee2de4
4d75711
* Sun Jan  4 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1.0.2-4
4d75711
- Update to latest.
4d75711
69247a7
* Thu Nov 20 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-4
69247a7
- Fix zaptel-lib(s) conflicts
69247a7
01bb655
* Sat Oct 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-3
01bb655
- Add conflicts/requires to help make sure that we get dahdi-tools-libs and not zaptel-libs
01bb655
8bc0475
* Fri Oct 10 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-2
8bc0475
- Don't package sethdlc even if it gets built.
8bc0475
dfba6cb
* Thu Oct  9 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-1
dfba6cb
- Cleanups suggested by reviewers
dfba6cb
dfba6cb
* Fri Oct  3 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-0.4
dfba6cb
- Update to final release.
dfba6cb
dfba6cb
* Wed Sep 10 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-0.3.rc2
dfba6cb
- Install dahdi/user.h header
dfba6cb
dfba6cb
* Mon Sep  8 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-0.2.rc2
dfba6cb
- Update dahdi-linux to 2.0.0rc4
dfba6cb
dfba6cb
* Fri Sep  5 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.0-0.1.rc2
dfba6cb
- First version for Fedora