]> git.pld-linux.org Git - packages/capi4k-utils.git/blob - capi4k-utils.spec
- update to version 2004-10-06
[packages/capi4k-utils.git] / capi4k-utils.spec
1
2 %bcond_with     capifax   # capifax has some error and won't build right now
3
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
7 Name:           capi4k-utils
8 Version:        2004.10.06
9 Release:        1
10 License:        GPL
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
14 Source10:       capi.conf
15 Source11:       capi.init
16 Patch0:         %{name}-make.patch
17 URL:            ftp://ftp.in-berlin.de/pub/capi4linux/
18 BuildRequires:  libtool
19 BuildRequires:  ppp-plugin-devel
20 PreReq:         rc-scripts
21 Requires(post,postun):  /sbin/ldconfig
22 Requires(post,preun):   /sbin/chkconfig
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         ppp_ver         %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR)
26
27 %description
28 These are the necessary tools to operate various CAPI 2.0 compatible
29 ISDN adapters.
30
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
33 with the kernel.
34
35 %description -l de
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.
39
40 %description -l pl
41 W tym pakiecie zawarte s± biblioteki wspó³dzielone libcapi20 oraz
42 narzêdzia s³u¿±ce do ³adowania i konfiguracji sterowników CAPI.
43
44 Aby skorzystaæ z tych narzêdzi potrzebny jest jeszcze odpowiedni
45 sterownik do karty ISDN. Kilka takich sterowników znajduje siê ju¿ w
46 j±drze.
47
48 %package devel
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}
54
55 %description devel
56 This package contains the header files required to develop capi
57 applications.
58
59 %description devel
60 Ten pakiet zawiera pliki nag³ówkowe potrzebne do budowania programów
61 korzystaj±cych ze sterowników w standardzie CAPI poprzez bibliotekê
62 libcapi.
63
64 %description devel -l de
65 Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
66 oder neu zu Übersetzen.
67
68 %package static
69 Summary:        Static capi libraries
70 Summary(pl):    Statyczne biblioteki capi
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static versions of capi libraries.
76
77 %description static -l pl
78 Statyczne wersje bibliotek capi.
79
80 %if %{with capifax}
81 %package capifax
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}
87
88 %description capifax
89 Native tools for sending and receiving fax with CAPI 2.0.
90
91 HINT: If you intend to use other CAPI 2.0 compliant fax software you
92       do not need to install this package.
93
94 %description capifax -l de
95 Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
96
97 HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
98          wollen brauchen Sie dieses Paket nicht installieren.
99
100 %description capifax -l pl
101 Podstawowe programy do wysy³ania i odbierania faksów przez CAPI 2.0.
102
103 PORADA: Je¶li zamierzasz korzystaæ z innego pakietu do obs³ugi faksów
104         (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
105
106 %endif
107
108 %package remotecapi
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}
114
115 %description remotecapi
116 Native tool for remote control (login) with CAPI 2.0.
117
118 ATTENTION: This is extreme BETA.
119            Avoid to install this package.
120
121 %description remotecapi -l de
122 Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0.
123
124 ACHTUNG: Dieses Programm ist BETA Testsoftware.
125          Vermeiden Sie dieses Paket zu installieren.
126
127 %description remotecapi -l pl
128 Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
129
130 UWAGA: To jest na razie BETA. Tylko do testów.
131
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}
138
139 %description -n ppp-plugin-capi
140 capiplugin for pppd-%{ppp_ver}.
141
142 %description -n ppp-plugin-capi -l pl
143 Wtyczka capi dla pppd w wersji %{ppp_ver}.
144
145 %prep
146 %setup -q -n %{name}
147 %patch0 -p1
148
149 cat > .config << END
150 CONFIG_BINDIR='%{_bindir}'
151 CONFIG_SBINDIR='%{_sbindir}'
152 CONFIG_MANDIR='%{_mandir}'
153 CONFIG_AVMCAPICTRL=y
154 %{?with_capifax:CONFIG_CAPIFAX=y}
155 CONFIG_RCAPID=y
156 CONFIG_PPPDCAPIPLUGIN=y
157 END
158
159 install -p %{SOURCE1} .
160
161 %build
162 %{__make} subconfig
163 %{__make} \
164         PPPVERSIONS=%{ppp_ver}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         PPPVERSIONS=%{ppp_ver} \
171         DESTDIR=$RPM_BUILD_ROOT
172
173 # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
174 install -d $RPM_BUILD_ROOT%{_datadir}/isdn
175
176 # install capi configuration file used by capiinit
177 install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
178 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
179
180 # install capi startup script
181 install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post
187 /sbin/ldconfig
188 /sbin/chkconfig --add capi
189 exit 0
190
191 %preun
192 if [ "$1" = "0" ]; then
193         /etc/rc.d/init.d/capi stop >&2
194         /sbin/chkconfig --del capi
195 fi
196 exit 0
197
198 %postun
199 /sbin/ldconfig
200 if [ "$1" -ge "1" ]; then
201         /etc/rc.d/init.d/capi stop >&2
202 fi
203 exit 0
204
205 %files
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
220
221 %files devel
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/lib*.so
224 %{_libdir}/lib*.la
225 %{_includedir}/*
226
227 %files static
228 %defattr(644,root,root,755)
229 %{_libdir}/lib*.a
230
231 %if %{with capifax}
232 %files capifax
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_bindir}/capifax*
235 %endif
236
237 %files remotecapi
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_sbindir}/rcapid
240
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*
This page took 0.040492 seconds and 3 git commands to generate.