]>
Commit | Line | Data |
---|---|---|
cd0c35f0 | 1 | |
d33cb680 | 2 | %bcond_with capifax # capifax has some error and won't build right now |
cd0c35f0 | 3 | |
1b551225 | 4 | Summary: CAPI 2.0 libraries and configuration tools |
3a5f210d ER |
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 | |
1b551225 | 7 | Name: capi4k-utils |
92c39629 | 8 | Version: 2005.07.18 |
9 | Release: 1 | |
1b551225 TP |
10 | License: GPL |
11 | Group: Applications/Communications | |
92c39629 | 12 | Source0: ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2005-07-18.tar.gz |
13 | # Source0-md5: c745759b6b3d64e19763727176648cdf | |
1b551225 | 14 | Source1: ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES |
92c39629 | 15 | # Source1-md5: 03739a0170eba14f03f7dc7ccc58bba8 |
1b551225 TP |
16 | Source10: capi.conf |
17 | Source11: capi.init | |
18 | Patch0: %{name}-make.patch | |
5133f98b | 19 | Patch1: %{name}-amd64.patch |
1b551225 TP |
20 | URL: ftp://ftp.in-berlin.de/pub/capi4linux/ |
21 | BuildRequires: libtool | |
22 | BuildRequires: ppp-plugin-devel | |
0621f6b4 ER |
23 | BuildRequires: rpmbuild(macros) >= 1.268 |
24 | Requires(post): /sbin/ldconfig | |
1b551225 | 25 | Requires(post,preun): /sbin/chkconfig |
180f9ba6 | 26 | Requires: rc-scripts |
1b551225 TP |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %define ppp_ver %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR) | |
30 | ||
31 | %description | |
df147066 | 32 | These are the necessary tools to operate various CAPI 2.0 compatible |
33 | ISDN adapters. | |
1b551225 | 34 | |
df147066 | 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 | |
37 | with the kernel. | |
1b551225 | 38 | |
37f23fb5 | 39 | %description -l de.UTF-8 |
df147066 | 40 | Dies sind die notwendigen Grundprogramme um verschiedene CAPI 2.0 |
37f23fb5 JR |
41 | fähige Geräte und ISDN Karten einzurichten. Für einige Karten müssen |
42 | Sie zusätzlich entsprechende Treiber installieren. | |
1b551225 | 43 | |
37f23fb5 JR |
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. | |
1b551225 | 47 | |
37f23fb5 JR |
48 | Aby skorzystać z tych narzędzi potrzebny jest jeszcze odpowiedni |
49 | sterownik do karty ISDN. Kilka takich sterowników znajduje się już w | |
50 | jądrze. | |
1b551225 TP |
51 | |
52 | %package devel | |
5cd715a5 | 53 | Summary: Header files for capi development |
3a5f210d ER |
54 | Summary(de.UTF-8): Kopfdateien zur Entwicklung von CAPI Programmen |
55 | Summary(pl.UTF-8): Pliki nagłówkowe capi | |
1b551225 TP |
56 | Group: Development/Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
5cd715a5 JB |
60 | This package contains the header files required to develop capi |
61 | applications. | |
1b551225 | 62 | |
37f23fb5 JR |
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ę | |
5cd715a5 | 66 | libcapi. |
1b551225 | 67 | |
37f23fb5 | 68 | %description devel -l de.UTF-8 |
5cd715a5 | 69 | Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln |
37f23fb5 | 70 | oder neu zu Übersetzen. |
5cd715a5 JB |
71 | |
72 | %package static | |
73 | Summary: Static capi libraries | |
3a5f210d | 74 | Summary(pl.UTF-8): Statyczne biblioteki capi |
5cd715a5 JB |
75 | Group: Development/Libraries |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static versions of capi libraries. | |
80 | ||
37f23fb5 | 81 | %description static -l pl.UTF-8 |
5cd715a5 | 82 | Statyczne wersje bibliotek capi. |
1b551225 | 83 | |
cd0c35f0 | 84 | %if %{with capifax} |
1b551225 TP |
85 | %package capifax |
86 | Summary: CAPI 2.0 fax tool | |
3a5f210d ER |
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 | |
1b551225 TP |
89 | Group: Applications/Communications |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description capifax | |
93 | Native tools for sending and receiving fax with CAPI 2.0. | |
94 | ||
df147066 | 95 | HINT: If you intend to use other CAPI 2.0 compliant fax software you |
96 | do not need to install this package. | |
97 | ||
37f23fb5 | 98 | %description capifax -l de.UTF-8 |
df147066 | 99 | Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0. |
100 | ||
37f23fb5 | 101 | HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen |
df147066 | 102 | wollen brauchen Sie dieses Paket nicht installieren. |
1b551225 | 103 | |
37f23fb5 JR |
104 | %description capifax -l pl.UTF-8 |
105 | Podstawowe programy do wysyłania i odbierania faksów przez CAPI 2.0. | |
1b551225 | 106 | |
37f23fb5 | 107 | PORADA: Jeśli zamierzasz korzystać z innego pakietu do obsługi faksów |
1b551225 TP |
108 | (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu. |
109 | ||
cd0c35f0 | 110 | %endif |
111 | ||
1b551225 TP |
112 | %package remotecapi |
113 | Summary: CAPI 2.0 remote tool | |
3a5f210d ER |
114 | Summary(de.UTF-8): CAPI 2.0 Fernsteuerungsprogramm |
115 | Summary(pl.UTF-8): Program udostępniający interface CAPI 2.0 przez sieć | |
1b551225 TP |
116 | Group: Applications/Communications |
117 | Requires: %{name} = %{version}-%{release} | |
118 | ||
119 | %description remotecapi | |
120 | Native tool for remote control (login) with CAPI 2.0. | |
121 | ||
122 | ATTENTION: This is extreme BETA. | |
123 | Avoid to install this package. | |
124 | ||
37f23fb5 | 125 | %description remotecapi -l de.UTF-8 |
1b551225 TP |
126 | Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0. |
127 | ||
128 | ACHTUNG: Dieses Programm ist BETA Testsoftware. | |
129 | Vermeiden Sie dieses Paket zu installieren. | |
130 | ||
37f23fb5 JR |
131 | %description remotecapi -l pl.UTF-8 |
132 | Program udostępniający interface CAPI 2.0 przez sieć | |
df147066 | 133 | |
37f23fb5 | 134 | UWAGA: To jest na razie BETA. Tylko do testów. |
df147066 | 135 | |
1b551225 TP |
136 | %package -n ppp-plugin-capi |
137 | Summary: capiplugin for pppd-%{ppp_ver} | |
3a5f210d | 138 | Summary(pl.UTF-8): Wtyczka capi dla pppd w wersji %{ppp_ver} |
1b551225 TP |
139 | Group: Applications/Communications |
140 | Requires: %{name} = %{version}-%{release} | |
28282ef0 | 141 | Requires: ppp = 3:%{ppp_ver} |
1b551225 TP |
142 | |
143 | %description -n ppp-plugin-capi | |
144 | capiplugin for pppd-%{ppp_ver}. | |
145 | ||
37f23fb5 | 146 | %description -n ppp-plugin-capi -l pl.UTF-8 |
1b551225 TP |
147 | Wtyczka capi dla pppd w wersji %{ppp_ver}. |
148 | ||
149 | %prep | |
150 | %setup -q -n %{name} | |
151 | %patch0 -p1 | |
bc567a3b | 152 | %if "%{_lib}" == "lib64" |
5133f98b | 153 | %patch1 -p1 |
6b04e7be | 154 | %endif |
1b551225 TP |
155 | |
156 | cat > .config << END | |
157 | CONFIG_BINDIR='%{_bindir}' | |
158 | CONFIG_SBINDIR='%{_sbindir}' | |
159 | CONFIG_MANDIR='%{_mandir}' | |
160 | CONFIG_AVMCAPICTRL=y | |
b2b732e0 | 161 | CONFIG_LIBDIR='%{_libdir}' |
cd0c35f0 | 162 | %{?with_capifax:CONFIG_CAPIFAX=y} |
1b551225 TP |
163 | CONFIG_RCAPID=y |
164 | CONFIG_PPPDCAPIPLUGIN=y | |
165 | END | |
166 | ||
167 | install -p %{SOURCE1} . | |
168 | ||
169 | %build | |
170 | %{__make} subconfig | |
5cd715a5 JB |
171 | %{__make} \ |
172 | PPPVERSIONS=%{ppp_ver} | |
1b551225 TP |
173 | |
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
5cd715a5 JB |
176 | |
177 | %{__make} install \ | |
178 | PPPVERSIONS=%{ppp_ver} \ | |
1b551225 TP |
179 | DESTDIR=$RPM_BUILD_ROOT |
180 | ||
181 | # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff | |
5cd715a5 | 182 | install -d $RPM_BUILD_ROOT%{_datadir}/isdn |
1b551225 TP |
183 | |
184 | # install capi configuration file used by capiinit | |
5cd715a5 JB |
185 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi |
186 | install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi | |
1b551225 TP |
187 | |
188 | # install capi startup script | |
5cd715a5 JB |
189 | install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi |
190 | ||
191 | %clean | |
192 | rm -rf $RPM_BUILD_ROOT | |
1b551225 | 193 | |
5cd715a5 | 194 | %post |
1b551225 TP |
195 | /sbin/ldconfig |
196 | /sbin/chkconfig --add capi | |
0621f6b4 | 197 | %service capi restart |
1b551225 | 198 | |
5cd715a5 | 199 | %preun |
1b551225 | 200 | if [ "$1" = "0" ]; then |
0621f6b4 | 201 | %service capi stop |
1b551225 TP |
202 | /sbin/chkconfig --del capi |
203 | fi | |
1b551225 | 204 | |
0621f6b4 | 205 | %postun -p /sbin/ldconfig |
1b551225 | 206 | |
1b551225 TP |
207 | %files |
208 | %defattr(644,root,root,755) | |
5cd715a5 JB |
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 | |
1b551225 TP |
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 | |
416bb05d | 219 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/capi/capi.conf |
1b551225 TP |
220 | # mi to nie chce dzialac, wypisuje ze brak pliku |
221 | #%ghost %{_sysconfdir}/capi.conf | |
222 | ||
223 | %files devel | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/lib*.so | |
1b551225 | 226 | %{_libdir}/lib*.la |
5cd715a5 JB |
227 | %{_includedir}/* |
228 | ||
229 | %files static | |
230 | %defattr(644,root,root,755) | |
1b551225 TP |
231 | %{_libdir}/lib*.a |
232 | ||
cd0c35f0 | 233 | %if %{with capifax} |
1b551225 TP |
234 | %files capifax |
235 | %defattr(644,root,root,755) | |
5cd715a5 | 236 | %attr(755,root,root) %{_bindir}/capifax* |
cd0c35f0 | 237 | %endif |
1b551225 TP |
238 | |
239 | %files remotecapi | |
240 | %defattr(644,root,root,755) | |
5cd715a5 | 241 | %attr(755,root,root) %{_sbindir}/rcapid |
1b551225 TP |
242 | |
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* |