2 %bcond_with capifax # capifax has some error and won't build right now
4 Summary: CAPI 2.0 libraries and configuration tools
5 Summary(de): CAPI 2.0 Werkzeuge für verschiedene ISDN Karten
6 Summary(pl): Biblioteki i narzêdzia konfiguracyjne CAPI 2.0
11 Group: Applications/Communications
12 Source0: ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2004-10-06.tar.gz
13 Source1: ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES
16 Patch0: %{name}-make.patch
17 URL: ftp://ftp.in-berlin.de/pub/capi4linux/
18 BuildRequires: libtool
19 BuildRequires: ppp-plugin-devel
21 Requires(post,postun): /sbin/ldconfig
22 Requires(post,preun): /sbin/chkconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define ppp_ver %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR)
28 These are the necessary tools to operate various CAPI 2.0 compatible
31 In order to use the tools you need to install the appropriate driver
32 for the adapter. Native driver packages for some adapters are provided
36 Dies sind die notwendigen Grundprogramme um verschiedene CAPI 2.0
37 fähige Geräte und ISDN Karten einzurichten. Für einige Karten müssen
38 Sie zusätzlich entsprechende Treiber installieren.
41 W tym pakiecie zawarte s± biblioteki wspó³dzielone libcapi20 oraz
42 narzêdzia s³u¿±ce do ³adowania i konfiguracji sterowników CAPI.
44 Aby skorzystaæ z tych narzêdzi potrzebny jest jeszcze odpowiedni
45 sterownik do karty ISDN. Kilka takich sterowników znajduje siê ju¿ w
49 Summary: Header files for capi development
50 Summary(pl): Pliki nag³ówkowe capi
51 Summary(de): Kopfdateien zur Entwicklung von CAPI Programmen
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
56 This package contains the header files required to develop capi
60 Ten pakiet zawiera pliki nag³ówkowe potrzebne do budowania programów
61 korzystaj±cych ze sterowników w standardzie CAPI poprzez bibliotekê
64 %description devel -l de
65 Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
66 oder neu zu Übersetzen.
69 Summary: Static capi libraries
70 Summary(pl): Statyczne biblioteki capi
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static versions of capi libraries.
77 %description static -l pl
78 Statyczne wersje bibliotek capi.
82 Summary: CAPI 2.0 fax tool
83 Summary(de): CAPI 2.0 Fax Programm
84 Summary(pl): Proste narzêdzia do faksowania wykorzystuj±cy mo¿liwo¶ci CAPI 2.0
85 Group: Applications/Communications
86 Requires: %{name} = %{version}-%{release}
89 Native tools for sending and receiving fax with CAPI 2.0.
91 HINT: If you intend to use other CAPI 2.0 compliant fax software you
92 do not need to install this package.
94 %description capifax -l de
95 Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
97 HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
98 wollen brauchen Sie dieses Paket nicht installieren.
100 %description capifax -l pl
101 Podstawowe programy do wysy³ania i odbierania faksów przez CAPI 2.0.
103 PORADA: Je¶li zamierzasz korzystaæ z innego pakietu do obs³ugi faksów
104 (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
109 Summary: CAPI 2.0 remote tool
110 Summary(de): CAPI 2.0 Fernsteuerungsprogramm
111 Summary(pl): Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
112 Group: Applications/Communications
113 Requires: %{name} = %{version}-%{release}
115 %description remotecapi
116 Native tool for remote control (login) with CAPI 2.0.
118 ATTENTION: This is extreme BETA.
119 Avoid to install this package.
121 %description remotecapi -l de
122 Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0.
124 ACHTUNG: Dieses Programm ist BETA Testsoftware.
125 Vermeiden Sie dieses Paket zu installieren.
127 %description remotecapi -l pl
128 Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
130 UWAGA: To jest na razie BETA. Tylko do testów.
132 %package -n ppp-plugin-capi
133 Summary: capiplugin for pppd-%{ppp_ver}
134 Summary(pl): Wtyczka capi dla pppd w wersji %{ppp_ver}
135 Group: Applications/Communications
136 Requires: %{name} = %{version}-%{release}
137 Requires: ppp = %{ppp_ver}
139 %description -n ppp-plugin-capi
140 capiplugin for pppd-%{ppp_ver}.
142 %description -n ppp-plugin-capi -l pl
143 Wtyczka capi dla pppd w wersji %{ppp_ver}.
150 CONFIG_BINDIR='%{_bindir}'
151 CONFIG_SBINDIR='%{_sbindir}'
152 CONFIG_MANDIR='%{_mandir}'
154 %{?with_capifax:CONFIG_CAPIFAX=y}
156 CONFIG_PPPDCAPIPLUGIN=y
159 install -p %{SOURCE1} .
164 PPPVERSIONS=%{ppp_ver}
167 rm -rf $RPM_BUILD_ROOT
170 PPPVERSIONS=%{ppp_ver} \
171 DESTDIR=$RPM_BUILD_ROOT
173 # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
174 install -d $RPM_BUILD_ROOT%{_datadir}/isdn
176 # install capi configuration file used by capiinit
177 install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
178 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
180 # install capi startup script
181 install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi
184 rm -rf $RPM_BUILD_ROOT
188 /sbin/chkconfig --add capi
192 if [ "$1" = "0" ]; then
193 /etc/rc.d/init.d/capi stop >&2
194 /sbin/chkconfig --del capi
200 if [ "$1" -ge "1" ]; then
201 /etc/rc.d/init.d/capi stop >&2
206 %defattr(644,root,root,755)
207 %doc CHANGES pppdcapiplugin/examples
208 %attr(755,root,root) %{_bindir}/capiinfo
209 %attr(755,root,root) %{_sbindir}/capiinit
210 %attr(755,root,root) %{_sbindir}/avmcapictrl
211 %attr(755,root,root) %{_libdir}/lib*.so.*.*
212 %attr(754,root,root) %{_initrddir}/capi
213 %{_mandir}/man8/capiinfo.8*
214 %{_mandir}/man8/avmcapictrl.8*
215 %dir %{_datadir}/isdn
216 %dir %{_sysconfdir}/capi
217 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/capi/capi.conf
218 # mi to nie chce dzialac, wypisuje ze brak pliku
219 #%ghost %{_sysconfdir}/capi.conf
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/lib*.so
228 %defattr(644,root,root,755)
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_bindir}/capifax*
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_sbindir}/rcapid
241 %files -n ppp-plugin-capi
242 %defattr(644,root,root,755)
243 %exclude %{_sysconfdir}/drdsl
244 %exclude %{_sysconfdir}/ppp
245 %{_libdir}/pppd/%{ppp_ver}/*
246 %{_mandir}/man8/capiplugin.8*