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.UTF-8): CAPI 2.0 Werkzeuge für verschiedene ISDN Karten
6 Summary(pl.UTF-8): Biblioteki i narzędzia konfiguracyjne CAPI 2.0
11 Group: Applications/Communications
12 Source0: ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2005-07-18.tar.gz
13 # Source0-md5: c745759b6b3d64e19763727176648cdf
14 Source1: ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES
15 # Source1-md5: 03739a0170eba14f03f7dc7ccc58bba8
18 Patch0: %{name}-make.patch
19 Patch1: %{name}-amd64.patch
20 URL: ftp://ftp.in-berlin.de/pub/capi4linux/
21 BuildRequires: libtool
22 BuildRequires: ppp-plugin-devel
23 BuildRequires: rpmbuild(macros) >= 1.268
24 Requires(post): /sbin/ldconfig
25 Requires(post,preun): /sbin/chkconfig
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define ppp_ver %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR)
32 These are the necessary tools to operate various CAPI 2.0 compatible
35 In order to use the tools you need to install the appropriate driver
36 for the adapter. Native driver packages for some adapters are provided
39 %description -l de.UTF-8
40 Dies sind die notwendigen Grundprogramme um verschiedene CAPI 2.0
41 fähige Geräte und ISDN Karten einzurichten. Für einige Karten müssen
42 Sie zusätzlich entsprechende Treiber installieren.
44 %description -l pl.UTF-8
45 W tym pakiecie zawarte są biblioteki współdzielone libcapi20 oraz
46 narzędzia służące do ładowania i konfiguracji sterowników CAPI.
48 Aby skorzystać z tych narzędzi potrzebny jest jeszcze odpowiedni
49 sterownik do karty ISDN. Kilka takich sterowników znajduje się już w
53 Summary: Header files for capi development
54 Summary(de.UTF-8): Kopfdateien zur Entwicklung von CAPI Programmen
55 Summary(pl.UTF-8): Pliki nagłówkowe capi
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 This package contains the header files required to develop capi
63 %description devel -l pl.UTF-8
64 Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów
65 korzystających ze sterowników w standardzie CAPI poprzez bibliotekę
68 %description devel -l de.UTF-8
69 Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
70 oder neu zu Übersetzen.
73 Summary: Static capi libraries
74 Summary(pl.UTF-8): Statyczne biblioteki capi
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
79 Static versions of capi libraries.
81 %description static -l pl.UTF-8
82 Statyczne wersje bibliotek capi.
86 Summary: CAPI 2.0 fax tool
87 Summary(de.UTF-8): CAPI 2.0 Fax Programm
88 Summary(pl.UTF-8): Proste narzędzia do faksowania wykorzystujący możliwości CAPI 2.0
89 Group: Applications/Communications
90 Requires: %{name} = %{version}-%{release}
93 Native tools for sending and receiving fax with CAPI 2.0.
95 HINT: If you intend to use other CAPI 2.0 compliant fax software you
96 do not need to install this package.
98 %description capifax -l de.UTF-8
99 Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
101 HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
102 wollen brauchen Sie dieses Paket nicht installieren.
104 %description capifax -l pl.UTF-8
105 Podstawowe programy do wysyłania i odbierania faksów przez CAPI 2.0.
107 PORADA: Jeśli zamierzasz korzystać z innego pakietu do obsługi faksów
108 (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
113 Summary: CAPI 2.0 remote tool
114 Summary(de.UTF-8): CAPI 2.0 Fernsteuerungsprogramm
115 Summary(pl.UTF-8): Program udostępniający interface CAPI 2.0 przez sieć
116 Group: Applications/Communications
117 Requires: %{name} = %{version}-%{release}
119 %description remotecapi
120 Native tool for remote control (login) with CAPI 2.0.
122 ATTENTION: This is extreme BETA.
123 Avoid to install this package.
125 %description remotecapi -l de.UTF-8
126 Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0.
128 ACHTUNG: Dieses Programm ist BETA Testsoftware.
129 Vermeiden Sie dieses Paket zu installieren.
131 %description remotecapi -l pl.UTF-8
132 Program udostępniający interface CAPI 2.0 przez sieć
134 UWAGA: To jest na razie BETA. Tylko do testów.
136 %package -n ppp-plugin-capi
137 Summary: capiplugin for pppd-%{ppp_ver}
138 Summary(pl.UTF-8): Wtyczka capi dla pppd w wersji %{ppp_ver}
139 Group: Applications/Communications
140 Requires: %{name} = %{version}-%{release}
141 Requires: ppp = 3:%{ppp_ver}
143 %description -n ppp-plugin-capi
144 capiplugin for pppd-%{ppp_ver}.
146 %description -n ppp-plugin-capi -l pl.UTF-8
147 Wtyczka capi dla pppd w wersji %{ppp_ver}.
152 %if "%{_lib}" == "lib64"
157 CONFIG_BINDIR='%{_bindir}'
158 CONFIG_SBINDIR='%{_sbindir}'
159 CONFIG_MANDIR='%{_mandir}'
161 CONFIG_LIBDIR='%{_libdir}'
162 %{?with_capifax:CONFIG_CAPIFAX=y}
164 CONFIG_PPPDCAPIPLUGIN=y
167 install -p %{SOURCE1} .
172 PPPVERSIONS=%{ppp_ver}
175 rm -rf $RPM_BUILD_ROOT
178 PPPVERSIONS=%{ppp_ver} \
179 DESTDIR=$RPM_BUILD_ROOT
181 # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
182 install -d $RPM_BUILD_ROOT%{_datadir}/isdn
184 # install capi configuration file used by capiinit
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
186 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
188 # install capi startup script
189 install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi
192 rm -rf $RPM_BUILD_ROOT
196 /sbin/chkconfig --add capi
197 %service capi restart
200 if [ "$1" = "0" ]; then
202 /sbin/chkconfig --del capi
205 %postun -p /sbin/ldconfig
208 %defattr(644,root,root,755)
209 %doc CHANGES pppdcapiplugin/examples
210 %attr(755,root,root) %{_bindir}/capiinfo
211 %attr(755,root,root) %{_sbindir}/capiinit
212 %attr(755,root,root) %{_sbindir}/avmcapictrl
213 %attr(755,root,root) %{_libdir}/lib*.so.*.*
214 %attr(754,root,root) %{_initrddir}/capi
215 %{_mandir}/man8/capiinfo.8*
216 %{_mandir}/man8/avmcapictrl.8*
217 %dir %{_datadir}/isdn
218 %dir %{_sysconfdir}/capi
219 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/capi/capi.conf
220 # mi to nie chce dzialac, wypisuje ze brak pliku
221 #%ghost %{_sysconfdir}/capi.conf
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/lib*.so
230 %defattr(644,root,root,755)
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/capifax*
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_sbindir}/rcapid
243 %files -n ppp-plugin-capi
244 %defattr(644,root,root,755)
245 %exclude %{_sysconfdir}/drdsl
246 %exclude %{_sysconfdir}/ppp
247 %{_libdir}/pppd/%{ppp_ver}/*
248 %{_mandir}/man8/capiplugin.8*