]>
Commit | Line | Data |
---|---|---|
cb361dd9 | 1 | # TODO: |
f3406a5e | 2 | # warning: Installed (but unpackaged) file(s) found: |
fc45f4e9 JR |
3 | # /etc/bash_completion.d/dahdi |
4 | # /etc/dahdi/assigned-spans.conf.sample | |
5 | # /etc/dahdi/genconf_parameters | |
6 | # /etc/dahdi/init.conf | |
7 | # /etc/dahdi/modules | |
8 | # /etc/dahdi/span-types.conf.sample | |
9 | # /etc/hotplug/usb/xpp_fxloader | |
10 | # /etc/hotplug/usb/xpp_fxloader.usermap | |
11 | # /etc/modprobe.d/dahdi.blacklist.conf | |
12 | # /etc/modprobe.d/dahdi.conf | |
cb361dd9 | 13 | # |
6f6c8480 | 14 | %include /usr/lib/rpm/macros.perl |
cb361dd9 | 15 | Summary: DAHDI telephony device support |
16 | Summary(pl.UTF-8): Obsługa urządzeń telefonicznych DAHDI | |
17 | Name: dahdi-tools | |
fc45f4e9 | 18 | Version: 2.9.0 |
d4845b0b JB |
19 | Release: 1 |
20 | License: GPL v2 | |
cb361dd9 | 21 | Group: Base/Kernel |
256e3dd0 | 22 | Source0: http://downloads.asterisk.org/pub/telephony/dahdi-tools/%{name}-%{version}.tar.gz |
fc45f4e9 | 23 | # Source0-md5: 8cccad1956d3419daf0c1771ea0504ac |
cb361dd9 | 24 | Source1: dahdi.init |
25 | Source2: dahdi.sysconfig | |
26 | Patch0: %{name}-as-needed.patch | |
6f6c8480 | 27 | Patch1: %{name}-perl-path.patch |
d4845b0b | 28 | Patch2: %{name}-includes.patch |
cb361dd9 | 29 | URL: http://www.asterisk.org/ |
58e6c841 | 30 | BuildRequires: dahdi-linux-devel >= 2.3.0 |
256e3dd0 | 31 | BuildRequires: libusb-compat-devel >= 0.1 |
cb361dd9 | 32 | BuildRequires: newt-devel |
33 | BuildRequires: perl-base | |
34 | BuildRequires: perl-tools-pod | |
6f6c8480 | 35 | BuildRequires: rpm-perlprov >= 4.1-13 |
e2e6d412 | 36 | BuildRequires: rpmbuild(macros) >= 1.379 |
d4845b0b | 37 | Obsoletes: dahdi-tools-utils |
e2e6d412 | 38 | Obsoletes: zaptel |
bfab6dda | 39 | Obsoletes: zaptel-utils |
cb361dd9 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
cb361dd9 | 42 | %description |
43 | DAHDI telephony device driver. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Sterownik do urządzeń telefonicznych DAHDI. | |
47 | ||
48 | %package devel | |
49 | Summary: DAHDI development headers | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe DAHDI | |
51 | Group: Development/Libraries | |
d4845b0b JB |
52 | Requires: %{name} = %{version}-%{release} |
53 | Requires: dahdi-linux-devel | |
e2e6d412 | 54 | Obsoletes: zaptel-devel |
cb361dd9 | 55 | |
56 | %description devel | |
57 | DAHDI development headers. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe DAHDI. | |
61 | ||
62 | %package static | |
63 | Summary: DAHDI static library | |
64 | Summary(pl.UTF-8): Biblioteka statyczna DAHDI | |
65 | Group: Development/Libraries | |
d4845b0b | 66 | Requires: %{name}-devel = %{version}-%{release} |
cb361dd9 | 67 | |
68 | %description static | |
69 | DAHDI static library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Biblioteka statyczna DAHDI. | |
73 | ||
bfab6dda JB |
74 | %package perl |
75 | Summary: DAHDI utility programs written in Perl | |
76 | Summary(pl.UTF-8): Programy narzędziowe DAHDI napisane w Perlu | |
77 | Group: Applications/Communications | |
78 | Requires: perl-Dahdi = %{version}-%{release} | |
79 | ||
80 | %description perl | |
81 | DAHDI utility programs written in Perl. | |
82 | ||
83 | %description perl -l pl.UTF-8 | |
84 | Programy narzędziowe DAHDI napisane w Perlu. | |
85 | ||
cb361dd9 | 86 | %package init |
87 | Summary: DAHDI init scripts | |
88 | Summary(pl.UTF-8): Skrypty inicjalizujące DAHDI | |
89 | Group: Applications/Communications | |
90 | Requires(post,preun): /sbin/chkconfig | |
d4845b0b | 91 | Requires: %{name} = %{version}-%{release} |
cb361dd9 | 92 | Requires: rc-scripts |
e2e6d412 | 93 | Obsoletes: zaptel-init |
cb361dd9 | 94 | |
95 | %description init | |
96 | DAHDI boot-time initialization. | |
97 | ||
98 | %description init -l pl.UTF-8 | |
99 | Inicjalizacja DAHDI w czasie startu systemu. | |
100 | ||
fc45f4e9 JR |
101 | %package udev |
102 | Summary: udev rules for DAHDI kernel modules | |
103 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla DAHDI | |
104 | Group: Base/Kernel | |
105 | Obsoletes: dahdi-linux-udev < 2.9.0 | |
106 | Requires: %{name} >= 2.2.0 | |
107 | Requires: udev-core | |
108 | ||
109 | %description udev | |
110 | udev rules for DAHDI kernel modules. | |
111 | ||
112 | %description udev -l pl.UTF-8 | |
113 | Reguły udev dla modułów jądra Linuksa dla DAHDI. | |
114 | ||
cb361dd9 | 115 | %package -n perl-Dahdi |
116 | Summary: Perl interface to DAHDI | |
d4845b0b | 117 | Summary(pl.UTF-8): Perlowy interfejs do DAHDI |
cb361dd9 | 118 | Group: Development/Languages/Perl |
bfab6dda | 119 | # needs dahdi_scan |
d4845b0b | 120 | Requires: %{name} = %{version}-%{release} |
cb361dd9 | 121 | |
122 | %description -n perl-Dahdi | |
123 | Perl inferface to DAHDI. | |
124 | ||
125 | %description -n perl-Dahdi -l pl.UTF-8 | |
d4845b0b | 126 | Perlowy interfejs do DAHDI. |
cb361dd9 | 127 | |
128 | %prep | |
129 | %setup -q | |
130 | %patch0 -p1 | |
6f6c8480 | 131 | %patch1 -p1 |
d4845b0b | 132 | %patch2 -p1 |
cb361dd9 | 133 | |
134 | cat > download-logger <<'EOF' | |
135 | #!/bin/sh | |
136 | # keep log of files make wanted to download in firmware/ dir | |
137 | echo "$@" >> download.log | |
138 | EOF | |
139 | chmod a+rx download-logger | |
cb361dd9 | 140 | |
141 | %build | |
142 | %configure | |
1a3180a1 AM |
143 | %{__make} \ |
144 | CC="%{__cc}" \ | |
145 | OPTFLAGS="%{rpmcppflags} %{rpmcflags}" | |
cb361dd9 | 146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
151 | ||
fc45f4e9 | 152 | %{__make} -j1 config install \ |
cb361dd9 | 153 | DESTDIR=$RPM_BUILD_ROOT |
fc45f4e9 | 154 | |
cb361dd9 | 155 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dahdi |
156 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dahdi | |
157 | touch $RPM_BUILD_ROOT%{_sysconfdir}/dahdi.conf | |
158 | ||
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %post init | |
163 | /sbin/chkconfig --add dahdi | |
164 | %service dahdi restart | |
165 | ||
166 | %preun init | |
167 | if [ "$1" = "0" ]; then | |
168 | %service dahdi stop | |
169 | /sbin/chkconfig --del dahdi | |
170 | fi | |
171 | ||
172 | %files | |
173 | %defattr(644,root,root,755) | |
174 | %doc README | |
175 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dahdi.conf | |
176 | %dir %{_sysconfdir}/dahdi | |
177 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dahdi/system.conf | |
178 | #/etc/hotplug/usb/xpp_fxloader | |
179 | #/etc/hotplug/usb/xpp_fxloader.usermap | |
d4845b0b | 180 | %attr(755,root,root) %{_sbindir}/astribank_* |
bfab6dda JB |
181 | %attr(755,root,root) %{_sbindir}/dahdi_cfg |
182 | %attr(755,root,root) %{_sbindir}/dahdi_maint | |
183 | %attr(755,root,root) %{_sbindir}/dahdi_monitor | |
184 | %attr(755,root,root) %{_sbindir}/dahdi_scan | |
185 | %attr(755,root,root) %{_sbindir}/dahdi_speed | |
186 | %attr(755,root,root) %{_sbindir}/dahdi_test | |
187 | %attr(755,root,root) %{_sbindir}/dahdi_tool | |
fc45f4e9 JR |
188 | %attr(755,root,root) %{_sbindir}/dahdi_span_assignments |
189 | %attr(755,root,root) %{_sbindir}/dahdi_span_types | |
190 | %attr(755,root,root) %{_sbindir}/dahdi_waitfor_span_assignments | |
d4845b0b | 191 | %attr(755,root,root) %{_sbindir}/fxotune |
d4845b0b | 192 | %attr(755,root,root) %{_sbindir}/sethdlc |
d4845b0b JB |
193 | %attr(755,root,root) %{_libdir}/libtonezone.so.1.* |
194 | %attr(755,root,root) %ghost %{_libdir}/libtonezone.so.1 | |
195 | %attr(755,root,root) %{_libdir}/libtonezone.so.2.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libtonezone.so.2 | |
cb361dd9 | 197 | %{_datadir}/dahdi |
d4845b0b | 198 | %{_mandir}/man8/astribank_*.8* |
bfab6dda JB |
199 | %{_mandir}/man8/dahdi_cfg.8* |
200 | %{_mandir}/man8/dahdi_maint.8* | |
201 | %{_mandir}/man8/dahdi_monitor.8* | |
202 | %{_mandir}/man8/dahdi_scan.8* | |
203 | %{_mandir}/man8/dahdi_test.8* | |
204 | %{_mandir}/man8/dahdi_tool.8* | |
d4845b0b | 205 | %{_mandir}/man8/fxotune.8* |
fc45f4e9 JR |
206 | %{_mandir}/man8/dahdi_span_assignments.8* |
207 | %{_mandir}/man8/dahdi_span_types.8* | |
208 | %{_mandir}/man8/dahdi_waitfor_span_assignments.8* | |
cb361dd9 | 209 | |
210 | %files devel | |
211 | %defattr(644,root,root,755) | |
d4845b0b JB |
212 | %attr(755,root,root) %{_libdir}/libtonezone.so |
213 | %{_includedir}/dahdi/tonezone.h | |
cb361dd9 | 214 | |
215 | %files static | |
216 | %defattr(644,root,root,755) | |
d4845b0b | 217 | %{_libdir}/libtonezone.a |
cb361dd9 | 218 | |
bfab6dda JB |
219 | %files perl |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_sbindir}/dahdi_genconf | |
222 | %attr(755,root,root) %{_sbindir}/dahdi_hardware | |
223 | %attr(755,root,root) %{_sbindir}/dahdi_registration | |
224 | %attr(755,root,root) %{_sbindir}/lsdahdi | |
225 | %attr(755,root,root) %{_sbindir}/twinstar | |
226 | %attr(755,root,root) %{_sbindir}/xpp_blink | |
227 | %attr(755,root,root) %{_sbindir}/xpp_sync | |
228 | %{_mandir}/man8/dahdi_genconf.8* | |
229 | %{_mandir}/man8/dahdi_hardware.8* | |
230 | %{_mandir}/man8/dahdi_registration.8* | |
231 | %{_mandir}/man8/lsdahdi.8* | |
232 | %{_mandir}/man8/twinstar.8* | |
233 | %{_mandir}/man8/xpp_blink.8* | |
234 | %{_mandir}/man8/xpp_sync.8* | |
235 | ||
d4845b0b | 236 | %files init |
cb361dd9 | 237 | %defattr(644,root,root,755) |
d4845b0b JB |
238 | %attr(754,root,root) /etc/rc.d/init.d/dahdi |
239 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dahdi | |
cb361dd9 | 240 | |
fc45f4e9 JR |
241 | %files udev |
242 | %defattr(644,root,root,755) | |
243 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/dahdi.rules | |
244 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xpp.rules | |
245 | ||
cb361dd9 | 246 | %files -n perl-Dahdi |
247 | %defattr(644,root,root,755) | |
6f6c8480 | 248 | %{perl_vendorlib}/Dahdi |
249 | %{perl_vendorlib}/Dahdi.pm |