Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 231 lines (173 sloc) 7.174 kb
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
1 # $id: zaptel.spec,v 1.2 2003/11/17 12:31:10 dude Exp $
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
2 # Authority: matthias
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
3
4 # "uname -r" output of the kernel to build for, the running one
5 # if none was specified with "--define 'kernel <uname -r>'"
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
6 %{!?kernel: %{expand: %%define kernel %(uname -r)}}
483d498 Remove trailing spaces and tabs from spec files [p-z]*, second batch.
Matthias Saou authored
7
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
8 %define kversion %(echo %{kernel} | sed -e s/smp// -)
9 %define krelver %(echo %{kversion} | tr -s '-' '_')
10 %if %(echo %{kernel} | grep -c smp)
11 %{expand:%%define ksmp -smp}
12 %endif
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
13
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
14 Summary: Telephony interface support
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
15 Name: zaptel
93f0e66 Update asterisk to 1.2.15 and related packages to latest.
Matthias Saou authored
16 Version: 1.2.13
cf42a5f @dagwieers Added %{?dist} tag to all SPEC files (finally)
dagwieers authored
17 Release: 1%{?dist}
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
18 License: GPL
19 Group: System Environment/Libraries
20 URL: http://www.asterisk.org/
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
21 Source0: http://ftp.digium.com/pub/zaptel/zaptel-%{version}.tar.gz
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
22 Source1: zaptel-makedev.d.txt
23 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
2a0a288 Update to zaptel to 1.0.9.2 with various fixes.
Matthias Saou authored
24 BuildRequires: kernel%{?ksmp}-devel = %{kversion}
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
25 BuildRequires: newt-devel, MAKEDEV
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
26
27 %description
28 This package contains the libraries, device entries, startup scripts and tools
29 needed to use Digium telephony hardware. This includes the pseudo TDM
30 interfaces.
31
32 You will also need to install a kernel modules package matching your current
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
33 kernel for everything to work, and edit /etc/modprobe.conf.
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
34
35
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
36 %package devel
37 Summary: Header files and development libraries for Zaptel
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
40
41 %description devel
42 This package contains the header files needed to compile applications that
43 will use Zaptel, such as Asterisk.
44
45
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
46 %package -n kernel%{?ksmp}-module-zaptel
47 Summary: Kernel modules required for some hardware to operate with Zaptel
483d498 Remove trailing spaces and tabs from spec files [p-z]*, second batch.
Matthias Saou authored
48 #Release: %{release}_%{krelver}
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
49 Group: System Environment/Kernel
50 Requires: kernel%{?ksmp} = %{kversion}, /sbin/depmod
51 Provides: kernel-modules
52 %{?ksmp:Provides: kernel-module-zaptel = %{version}-%{release}_%{krelver}}
53
54 %description -n kernel%{?ksmp}-module-zaptel
55 This package contains the zaptel kernel modules for the Linux kernel package :
56 %{kversion} (%{_target_cpu}%{?ksmp:, SMP}).
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
57
58
59 %prep
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
60 %setup
61 # Fix lib vs. lib64
4ac9824 Update asterisk, asterisk-sounds and zaptel to 1.0.9. Initial libpri …
Matthias Saou authored
62 %{__perl} -pi -e 's|/usr/lib|%{_libdir}|g' Makefile
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
63 # Force mknod calls to never happen
64 %{__perl} -pi -e 's|mknod |true |g' Makefile
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
65
66
67 %build
68 export CFLAGS="%{optflags}"
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
69 %{__make} %{?_smp_mflags} KVERS="%{kernel}"
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
70
71
72 %install
73 %{__rm} -rf %{buildroot}
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
74 # Install checks the presence of this file to decide which to modify
75 %{__mkdir_p} %{buildroot}%{_sysconfdir}
76 touch %{buildroot}%{_sysconfdir}/modprobe.conf
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
77 # Required in 1.2.0
78 %{__mkdir_p} %{buildroot}%{_mandir}/man8
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
79 # Main install
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
80 %{__make} install \
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
81 KVERS="%{kernel}" \
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
82 INSTALL_PREFIX="%{buildroot}" \
83 ROOT_PREFIX="%{buildroot}"
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
84
85 # Install and generate all the device stuff
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
86 %{__install} -D -p -m 0644 %{SOURCE1} \
87 %{buildroot}%{_sysconfdir}/makedev.d/zaptel
483d498 Remove trailing spaces and tabs from spec files [p-z]*, second batch.
Matthias Saou authored
88
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
89 # Create entry list
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
90 [ -x /sbin/MAKEDEV ] && MAKEDEV=/sbin/MAKEDEV || MAKEDEV=/dev/MAKEDEV
91 ${MAKEDEV} \
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
92 -c %{buildroot}%{_sysconfdir}/makedev.d \
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
93 -d %{buildroot}/dev -M zaptel | sed 's|%{buildroot}||g' | \
94 grep -v 'dir /dev$' > device.list
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
95
96 # Install the init script and sysconfig file
5f9279a @dagwieers Add preserve-timestamp to install
dagwieers authored
97 %{__install} -Dp -m0644 zaptel.sysconfig \
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
98 %{buildroot}%{_sysconfdir}/sysconfig/zaptel
5f9279a @dagwieers Add preserve-timestamp to install
dagwieers authored
99 %{__install} -Dp -m0755 zaptel.init \
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
100 %{buildroot}%{_sysconfdir}/rc.d/init.d/zaptel
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
101
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
102 # Move kernel modules in the "kernel" subdirectory
103 %{__mkdir_p} %{buildroot}/lib/modules/%{kernel}/kernel
d5ec28f Disable (sometimees failing) gst-plugins-* doc buildind, fix zaptel k…
Matthias Saou authored
104 %{__mv} %{buildroot}/lib/modules/%{kernel}/extra \
eb722ad Update zaptel to 1.2.3.
Matthias Saou authored
105 %{buildroot}/lib/modules/%{kernel}/kernel/extra
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
106
107 # Move the modules config file back in order to put it in docs instead
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
108 %{__mv} %{buildroot}%{_sysconfdir}/modprobe.conf . || :
109
110 # Move the binaries from /sbin back to /usr/sbin
111 %{__mkdir_p} %{buildroot}%{_sbindir}
112 %{__mv} %{buildroot}/sbin/* %{buildroot}%{_sbindir}/
113
114 # Remove the backup of the empty file we created earlier
115 %{__rm} -f %{buildroot}%{_sysconfdir}/modprobe.conf.bak || :
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
116
117
118 %clean
119 %{__rm} -rf %{buildroot}
120
121
2a0a288 Update to zaptel to 1.0.9.2 with various fixes.
Matthias Saou authored
122 %post -p /sbin/ldconfig
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
123
2a0a288 Update to zaptel to 1.0.9.2 with various fixes.
Matthias Saou authored
124 %postun -p /sbin/ldconfig
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
125
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
126
127 %post -n kernel%{?ksmp}-module-zaptel
128 /sbin/depmod -a -F /boot/System.map-%{kernel} %{kernel} &>/dev/null || :
129
130 %postun -n kernel%{?ksmp}-module-zaptel
131 /sbin/depmod -a -F /boot/System.map-%{kernel} %{kernel} &>/dev/null || :
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
132
133
134 %files -f device.list
135 %defattr(-, root, root, 0755)
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
136 %doc ChangeLog README.fxsusb mod*.conf
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
137 %doc ifcfg-hdlc0 ifup-hdlc zaptel.conf.sample
138 %config(noreplace) %{_sysconfdir}/sysconfig/zaptel
139 %config(noreplace) %{_sysconfdir}/zaptel.conf
140 %{_sysconfdir}/makedev.d/zaptel
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
141 %{_sysconfdir}/rc.d/init.d/zaptel
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
142 %{_sbindir}/ztcfg
143 %{_sbindir}/zttool
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
144 %{_libdir}/*.so.*
145 %{_mandir}/man8/*
146
147 %files devel
148 %defattr(-, root, root, 0755)
149 %{_includedir}/*.h
150 %{_includedir}/linux/*.h
151 %{_libdir}/*.so
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
152
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
153 %files -n kernel%{?ksmp}-module-zaptel
154 %defattr(-, root, root, 0755)
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
155 /lib/modules/%{kernel}/kernel/extra/
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
156
157
158 %changelog
93f0e66 Update asterisk to 1.2.15 and related packages to latest.
Matthias Saou authored
159 * Mon Feb 12 2007 Matthias Saou <http://freshrpms.net/> 1.2.13-1
160 - Update to 1.2.13.
161
c12733e Update asterisk to 1.2.13 and all related packages to their latest ve…
Matthias Saou authored
162 * Fri Nov 24 2006 Matthias Saou <http://freshrpms.net/> 1.2.11-1
163 - Update to 1.2.11.
164
2daf0d8 Update asterisk to 1.2.11, libpri to 1.2.3, zaptel to 1.2.8 and impor…
Matthias Saou authored
165 * Thu Sep 7 2006 Matthias Saou <http://freshrpms.net/> 1.2.8-1
166 - Update to 1.2.8.
167
a710071 Update zaptel to 1.2.5 and asterisk to 1.2.7.1.
Matthias Saou authored
168 * Thu May 4 2006 Matthias Saou <http://freshrpms.net/> 1.2.5-1
169 - Update to 1.2.5.
170
483d498 Remove trailing spaces and tabs from spec files [p-z]*, second batch.
Matthias Saou authored
171 * Wed Mar 15 2006 Matthias Saou <http://freshrpms.net/> 1.2.4-1
172 - Rebuild fails on RHEL4 up U3 (included), because of a typo :
173 https://bugzilla.redhat.com/180568
174
127fb96 Update libpri to 1.2.2, zaptel to 1.2.4 and asterisk to 1.2.5.
Matthias Saou authored
175 * Tue Mar 7 2006 Matthias Saou <http://freshrpms.net/> 1.2.4-1
176 - Update to 1.2.4.
177
eb722ad Update zaptel to 1.2.3.
Matthias Saou authored
178 * Tue Jan 31 2006 Matthias Saou <http://freshrpms.net/> 1.2.3-1
179 - Update to 1.2.3.
180
181 * Fri Jan 27 2006 Matthias Saou <http://freshrpms.net/> 1.2.2-1
182 - Update to 1.2.2.
183
0d013b5 Update asterisk, zaptel and libpri to 1.2.0.
Matthias Saou authored
184 * Fri Nov 25 2005 Matthias Saou <http://freshrpms.net/> 1.2.0-1
185 - Update to 1.2.0.
186 - No longer patch the Makefile, horray!
187 - Kernel modules are now in "extra" and no longer in "misc".
188 - Split off devel sub-package.
189
2a0a288 Update to zaptel to 1.0.9.2 with various fixes.
Matthias Saou authored
190 * Thu Sep 15 2005 Matthias Saou <http://freshrpms.net/> 1.0.9.2-1
191 - Update to 1.0.9.2.
192 - Update makefile patch to add ztdummy to the modules.
193 - Fix kernel-smp-devel requirement for smp modules rebuild.
194
4ac9824 Update asterisk, asterisk-sounds and zaptel to 1.0.9. Initial libpri …
Matthias Saou authored
195 * Tue Aug 23 2005 Matthias Saou <http://freshrpms.net/> 1.0.9.1-0
196 - Update to 1.0.9.1.
197 - Remove "devices" from install with the Makefile patch.
198 - Replace /usr/lib in Makefile with %%{_libdir} to fix 64bit lib location.
199
c0dc4ee Update asterisk, asterisk-sounds and zaptel to 1.0.7.
Matthias Saou authored
200 * Tue Apr 5 2005 Matthias Saou <http://freshrpms.net/> 1.0.7-0
201 - Update to 1.0.7.
202 - This spec still doesn't build with mach (sub-package release tag bug).
203
204 * Tue Mar 8 2005 Matthias Saou <http://freshrpms.net/> 1.0.6-0
205 - Update to 1.0.6.
206 - Change /dev/MAKEDEV calls to /sbin/MAKEDEV for FC3.
207 - Rework and re-enable the kernel modules, only through kernel-devel, though.
208
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
209 * Wed Feb 2 2005 Matthias Saou <http://freshrpms.net/> 1.0.4-0
210 - Update to 1.0.4.
211 - Updated makefile patch.
212 - Keep "/dev" from being owned by the package.
213
64b02a8 Minor spec changes.
Matthias Saou authored
214 * Mon Oct 18 2004 Matthias Saou <http://freshrpms.net/> 1.0.1-0
215 - Update to 1.0.1.
216
a75a2d0 Update to latest asterisk and zaptel. Completely remove the kernel mo…
Matthias Saou authored
217 * Mon Aug 30 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.RC2.0
218 - Update to 1.0-RC2.
219 - Disable kernel module building for now, we don't use any.
220
c4b0e56 Initial import of asterisk and its zaptel dependency.
Matthias Saou authored
221 * Mon Jul 26 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.RC1.1
222 - Update to 1.0-RC1.
223 - Major Makefile patch updates, spec updates to match.
224
225 * Mon Nov 17 2003 Matthias Saou <http://freshrpms.net/>
226 - Uncomment the ztdummy module to have it built.
227
228 * Wed Nov 5 2003 Matthias Saou <http://freshrpms.net/>
229 - Initial RPM release.
230
Something went wrong with that request. Please try again.