X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdahdi-linux.git;a=blobdiff_plain;f=dahdi-linux.spec;h=75c9e465178528c85011b700321dc16eee115c93;hp=af5830449bd73f9100864aef0a313dc830755eb1;hb=4c3e49b78e4fde3644c3d2b35f0f45c67d360b54;hpb=33310110b679b11e8aad698cba51ce23e214a980 diff --git a/dahdi-linux.spec b/dahdi-linux.spec index af58304..75c9e46 100644 --- a/dahdi-linux.spec +++ b/dahdi-linux.spec @@ -32,18 +32,18 @@ %undefine with_dist_kernel %endif -%define rel 1 +%define rel 28 %define pname dahdi-linux %define FIRMWARE_URL http://downloads.digium.com/pub/telephony/firmware/releases Summary: DAHDI telephony device support Summary(pl.UTF-8): Obsługa urządzeń telefonicznych DAHDI Name: %{pname}%{_alt_kernel} -Version: 2.4.0 +Version: 2.6.0 Release: %{rel} License: GPL Group: Base/Kernel -Source0: http://downloads.digium.com/pub/telephony/dahdi-linux/dahdi-linux-%{version}.tar.gz -# Source0-md5: 0114826395f76713486142b90d772f82 +Source0: http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-%{version}.tar.gz +# Source0-md5: ea35ad29dafe5490028ff642c35ef9a2 Source3: %{FIRMWARE_URL}/dahdi-fw-oct6114-064-1.05.01.tar.gz # Source3-md5: 88db9b7a07d8392736171b1b3e6bcc66 Source4: %{FIRMWARE_URL}/dahdi-fw-oct6114-128-1.05.01.tar.gz @@ -54,8 +54,10 @@ Source6: %{FIRMWARE_URL}/dahdi-fw-tc400m-MR6.12.tar.gz # Source6-md5: 2ea860bb8a9d8ede2858b9557b74ee3c Source7: %{FIRMWARE_URL}/dahdi-fw-hx8-2.06.tar.gz # Source7-md5: a7f3886942bb3e9fed349a41b3390c9f -Patch0: %{pname}-dummy.patch -Patch1: %{pname}-build.patch +Patch0: %{pname}-build.patch +# http://oss.axsentis.de/people/stkn/openzap/dahdi-2.4.0-linux-2.6.37.patch +Patch1: dahdi-2.4.0-linux-2.6.37.patch +Patch2: dahdi-linux-kernel-3.4.patch URL: http://www.asterisk.org/ %if %{with dist_kernel} BuildRequires: kernel%{_alt_kernel}-module-build @@ -70,10 +72,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # - keep X and X_in in sync # - X is used for actual building (entries separated with space), X_in for pld macros (entries separated with comma) -%define modules_1 dahdi.o dahdi_dynamic.o dahdi_dynamic_eth.o dahdi_dynamic_ethmf.o dahdi_dynamic_loc.o dahdi_dummy.o dahdi_echocan_jpah.o dahdi_echocan_kb1.o dahdi_echocan_mg2.o dahdi_echocan_sec.o dahdi_echocan_sec2.o pciradio.o tor2.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o -%define modules_1_in dahdi,dahdi_dynamic,dahdi_dynamic_eth,dahdi_dynamic_ethmf,dahdi_dynamic_loc,dahdi_dummy,dahdi_echocan_jpah,dahdi_echocan_kb1,dahdi_echocan_mg2,dahdi_echocan_sec,dahdi_echocan_sec2,pciradio,tor2,wcfxo,wct1xxp,wctdm,wcte11xp +%define modules_1 dahdi.o dahdi_dynamic.o dahdi_dynamic_eth.o dahdi_dynamic_ethmf.o dahdi_dynamic_loc.o dahdi_echocan_jpah.o dahdi_echocan_kb1.o dahdi_echocan_mg2.o dahdi_echocan_sec.o dahdi_echocan_sec2.o pciradio.o tor2.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o +%define modules_1_in dahdi,dahdi_dynamic,dahdi_dynamic_eth,dahdi_dynamic_ethmf,dahdi_dynamic_loc,dahdi_echocan_jpah,dahdi_echocan_kb1,dahdi_echocan_mg2,dahdi_echocan_sec,dahdi_echocan_sec2,pciradio,tor2,wcfxo,wct1xxp,wctdm,wcte11xp %define modules_2 voicebus/ wct4xxp/ wcte12xp/ %{?with_xpp:xpp/} -%define modules_2_in voicebus/dahdi_voicebus,wct4xxp/wct4xxp,wcte12xp/wcte12xp,%{?with_xpp:xpp/xpd_bri,xpp/xpd_fxo,xpp/xpd_fxs,xpp/xpd_pri,xpp/xpp,xpp/xpp_usb} +%define modules_2_in voicebus/dahdi_voicebus,wct4xxp/wct4xxp,wcte12xp/wcte12xp,%{?with_xpp:xpp/xpd_bri,xpp/xpd_echo,xpp/xpd_fxo,xpp/xpd_fxs,xpp/xpd_pri,xpp/xpp,xpp/xpp_usb} %ifnarch alpha %define modules_nalpha wctc4xxp/ wctdm24xxp/ dahdi_transcode.o wcb4xxp/ %define modules_nalpha_in wctc4xxp/wctc4xxp,wctdm24xxp/wctdm24xxp,dahdi_transcode,wcb4xxp/wcb4xxp @@ -133,7 +135,8 @@ Sterownik dla jądra Linuksa do urządzeń telefonicznych DAHDI. %prep %setup -q -n %{pname}-%{version} %patch0 -p1 -%patch1 -p1 +#%patch1 -p1 +%patch2 -p1 for a in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}; do ln -s $a drivers/dahdi/firmware @@ -153,6 +156,9 @@ chmod a+rx download-logger %if %{with kernel} %build_kernel_modules SUBDIRS=$PWD/drivers/dahdi DAHDI_BUILD_ALL=m HOTPLUG_FIRMWARE=yes DAHDI_MODULES_EXTRA=" " -m %{modules_in} KSRC=$PWD/o -C drivers/dahdi DAHDI_INCLUDE=$PWD/../../include +# check that all built .ko is handled by build_kernel_modules +# (renamed to either -dist, -up, or -smp suffix) +# if some missing, check the 'modules*' macros above check_modules() { err=0 for a in drivers/dahdi/{*/,}*.ko; do @@ -165,7 +171,7 @@ check_modules() { [ $err = 0 ] || exit 1 } -check_modules +#check_modules %endif %install