]> git.pld-linux.org Git - packages/capi4k-utils.git/blob - capi4k-utils.spec
81e82529ef389849fd578434413c53a01c7f96d3
[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:        2
10 License:        GPL
11 Group:          Applications/Communications
12 Source0:        ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2004-10-06.tar.gz
13 # Source0-md5:  54992ff362ca44629fdf59773a6864cd
14 Source1:        ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES
15 # Source1-md5:  054b9f2bf1b0c0fc1eb5010ca0c9380d
16 Source10:       capi.conf
17 Source11:       capi.init
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 PreReq:         rc-scripts
24 Requires(post,postun):  /sbin/ldconfig
25 Requires(post,preun):   /sbin/chkconfig
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         ppp_ver         %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR)
29
30 %description
31 These are the necessary tools to operate various CAPI 2.0 compatible
32 ISDN adapters.
33
34 In order to use the tools you need to install the appropriate driver
35 for the adapter. Native driver packages for some adapters are provided
36 with the kernel.
37
38 %description -l de
39 Dies sind die notwendigen Grundprogramme um verschiedene CAPI 2.0
40 fähige Geräte und ISDN Karten einzurichten. Für einige Karten müssen
41 Sie zusätzlich entsprechende Treiber installieren.
42
43 %description -l pl
44 W tym pakiecie zawarte s± biblioteki wspó³dzielone libcapi20 oraz
45 narzêdzia s³u¿±ce do ³adowania i konfiguracji sterowników CAPI.
46
47 Aby skorzystaæ z tych narzêdzi potrzebny jest jeszcze odpowiedni
48 sterownik do karty ISDN. Kilka takich sterowników znajduje siê ju¿ w
49 j±drze.
50
51 %package devel
52 Summary:        Header files for capi development
53 Summary(pl):    Pliki nag³ówkowe capi
54 Summary(de):    Kopfdateien zur Entwicklung von CAPI Programmen
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57
58 %description devel
59 This package contains the header files required to develop capi
60 applications.
61
62 %description devel
63 Ten pakiet zawiera pliki nag³ówkowe potrzebne do budowania programów
64 korzystaj±cych ze sterowników w standardzie CAPI poprzez bibliotekê
65 libcapi.
66
67 %description devel -l de
68 Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
69 oder neu zu Übersetzen.
70
71 %package static
72 Summary:        Static capi libraries
73 Summary(pl):    Statyczne biblioteki capi
74 Group:          Development/Libraries
75 Requires:       %{name}-devel = %{version}-%{release}
76
77 %description static
78 Static versions of capi libraries.
79
80 %description static -l pl
81 Statyczne wersje bibliotek capi.
82
83 %if %{with capifax}
84 %package capifax
85 Summary:        CAPI 2.0 fax tool
86 Summary(de):    CAPI 2.0 Fax Programm
87 Summary(pl):    Proste narzêdzia do faksowania wykorzystuj±cy mo¿liwo¶ci CAPI 2.0
88 Group:          Applications/Communications
89 Requires:       %{name} = %{version}-%{release}
90
91 %description capifax
92 Native tools for sending and receiving fax with CAPI 2.0.
93
94 HINT: If you intend to use other CAPI 2.0 compliant fax software you
95       do not need to install this package.
96
97 %description capifax -l de
98 Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
99
100 HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
101          wollen brauchen Sie dieses Paket nicht installieren.
102
103 %description capifax -l pl
104 Podstawowe programy do wysy³ania i odbierania faksów przez CAPI 2.0.
105
106 PORADA: Je¶li zamierzasz korzystaæ z innego pakietu do obs³ugi faksów
107         (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
108
109 %endif
110
111 %package remotecapi
112 Summary:        CAPI 2.0 remote tool
113 Summary(de):    CAPI 2.0 Fernsteuerungsprogramm
114 Summary(pl):    Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
115 Group:          Applications/Communications
116 Requires:       %{name} = %{version}-%{release}
117
118 %description remotecapi
119 Native tool for remote control (login) with CAPI 2.0.
120
121 ATTENTION: This is extreme BETA.
122            Avoid to install this package.
123
124 %description remotecapi -l de
125 Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0.
126
127 ACHTUNG: Dieses Programm ist BETA Testsoftware.
128          Vermeiden Sie dieses Paket zu installieren.
129
130 %description remotecapi -l pl
131 Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
132
133 UWAGA: To jest na razie BETA. Tylko do testów.
134
135 %package -n ppp-plugin-capi
136 Summary:        capiplugin for pppd-%{ppp_ver}
137 Summary(pl):    Wtyczka capi dla pppd w wersji %{ppp_ver}
138 Group:          Applications/Communications
139 Requires:       %{name} = %{version}-%{release}
140 Requires:       ppp = 3:%{ppp_ver}
141
142 %description -n ppp-plugin-capi
143 capiplugin for pppd-%{ppp_ver}.
144
145 %description -n ppp-plugin-capi -l pl
146 Wtyczka capi dla pppd w wersji %{ppp_ver}.
147
148 %prep
149 %setup -q -n %{name}
150 %patch0 -p1
151 %if "%{_lib}" == "lib64"
152 %patch1 -p1
153 %endif
154
155 cat > .config << END
156 CONFIG_BINDIR='%{_bindir}'
157 CONFIG_SBINDIR='%{_sbindir}'
158 CONFIG_MANDIR='%{_mandir}'
159 CONFIG_AVMCAPICTRL=y
160 CONFIG_LIBDIR='%{_libdir}'
161 %{?with_capifax:CONFIG_CAPIFAX=y}
162 CONFIG_RCAPID=y
163 CONFIG_PPPDCAPIPLUGIN=y
164 END
165
166 install -p %{SOURCE1} .
167
168 %build
169 %{__make} subconfig
170 %{__make} \
171         PPPVERSIONS=%{ppp_ver}
172
173 %install
174 rm -rf $RPM_BUILD_ROOT
175
176 %{__make} install \
177         PPPVERSIONS=%{ppp_ver} \
178         DESTDIR=$RPM_BUILD_ROOT
179
180 # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
181 install -d $RPM_BUILD_ROOT%{_datadir}/isdn
182
183 # install capi configuration file used by capiinit
184 install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
185 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
186
187 # install capi startup script
188 install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %post
194 /sbin/ldconfig
195 /sbin/chkconfig --add capi
196 exit 0
197
198 %preun
199 if [ "$1" = "0" ]; then
200         /etc/rc.d/init.d/capi stop >&2
201         /sbin/chkconfig --del capi
202 fi
203 exit 0
204
205 %postun
206 /sbin/ldconfig
207 if [ "$1" -ge "1" ]; then
208         /etc/rc.d/init.d/capi stop >&2
209 fi
210 exit 0
211
212 %files
213 %defattr(644,root,root,755)
214 %doc CHANGES pppdcapiplugin/examples
215 %attr(755,root,root) %{_bindir}/capiinfo
216 %attr(755,root,root) %{_sbindir}/capiinit
217 %attr(755,root,root) %{_sbindir}/avmcapictrl
218 %attr(755,root,root) %{_libdir}/lib*.so.*.*
219 %attr(754,root,root) %{_initrddir}/capi
220 %{_mandir}/man8/capiinfo.8*
221 %{_mandir}/man8/avmcapictrl.8*
222 %dir %{_datadir}/isdn
223 %dir %{_sysconfdir}/capi
224 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/capi/capi.conf
225 # mi to nie chce dzialac, wypisuje ze brak pliku
226 #%ghost %{_sysconfdir}/capi.conf
227
228 %files devel
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/lib*.so
231 %{_libdir}/lib*.la
232 %{_includedir}/*
233
234 %files static
235 %defattr(644,root,root,755)
236 %{_libdir}/lib*.a
237
238 %if %{with capifax}
239 %files capifax
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/capifax*
242 %endif
243
244 %files remotecapi
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_sbindir}/rcapid
247
248 %files -n ppp-plugin-capi
249 %defattr(644,root,root,755)
250 %exclude %{_sysconfdir}/drdsl
251 %exclude %{_sysconfdir}/ppp
252 %{_libdir}/pppd/%{ppp_ver}/*
253 %{_mandir}/man8/capiplugin.8*
This page took 0.049929 seconds and 3 git commands to generate.