]> git.pld-linux.org Git - packages/capi4k-utils.git/blob - capi4k-utils.spec
- formatting
[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:        2005.07.18
9 Release:        1
10 License:        GPL
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
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 BuildRequires:  rpmbuild(macros) >= 1.268
24 Requires(post): /sbin/ldconfig
25 Requires(post,preun):   /sbin/chkconfig
26 Requires:       rc-scripts
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
32 These are the necessary tools to operate various CAPI 2.0 compatible
33 ISDN adapters.
34
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.
38
39 %description -l de
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.
43
44 %description -l pl
45 W tym pakiecie zawarte s± biblioteki wspó³dzielone libcapi20 oraz
46 narzêdzia s³u¿±ce do ³adowania i konfiguracji sterowników CAPI.
47
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.
51
52 %package devel
53 Summary:        Header files for capi development
54 Summary(de):    Kopfdateien zur Entwicklung von CAPI Programmen
55 Summary(pl):    Pliki nag³ówkowe capi
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58
59 %description devel
60 This package contains the header files required to develop capi
61 applications.
62
63 %description devel
64 Ten pakiet zawiera pliki nag³ówkowe potrzebne do budowania programów
65 korzystaj±cych ze sterowników w standardzie CAPI poprzez bibliotekê
66 libcapi.
67
68 %description devel -l de
69 Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
70 oder neu zu Übersetzen.
71
72 %package static
73 Summary:        Static capi libraries
74 Summary(pl):    Statyczne biblioteki capi
75 Group:          Development/Libraries
76 Requires:       %{name}-devel = %{version}-%{release}
77
78 %description static
79 Static versions of capi libraries.
80
81 %description static -l pl
82 Statyczne wersje bibliotek capi.
83
84 %if %{with capifax}
85 %package capifax
86 Summary:        CAPI 2.0 fax tool
87 Summary(de):    CAPI 2.0 Fax Programm
88 Summary(pl):    Proste narzêdzia do faksowania wykorzystuj±cy mo¿liwo¶ci CAPI 2.0
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
95 HINT: If you intend to use other CAPI 2.0 compliant fax software you
96       do not need to install this package.
97
98 %description capifax -l de
99 Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
100
101 HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
102          wollen brauchen Sie dieses Paket nicht installieren.
103
104 %description capifax -l pl
105 Podstawowe programy do wysy³ania i odbierania faksów przez CAPI 2.0.
106
107 PORADA: Je¶li zamierzasz korzystaæ z innego pakietu do obs³ugi faksów
108         (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
109
110 %endif
111
112 %package remotecapi
113 Summary:        CAPI 2.0 remote tool
114 Summary(de):    CAPI 2.0 Fernsteuerungsprogramm
115 Summary(pl):    Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
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
125 %description remotecapi -l de
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
131 %description remotecapi -l pl
132 Program udostêpniaj±cy interface CAPI 2.0 przez sieæ
133
134 UWAGA: To jest na razie BETA. Tylko do testów.
135
136 %package -n ppp-plugin-capi
137 Summary:        capiplugin for pppd-%{ppp_ver}
138 Summary(pl):    Wtyczka capi dla pppd w wersji %{ppp_ver}
139 Group:          Applications/Communications
140 Requires:       %{name} = %{version}-%{release}
141 Requires:       ppp = 3:%{ppp_ver}
142
143 %description -n ppp-plugin-capi
144 capiplugin for pppd-%{ppp_ver}.
145
146 %description -n ppp-plugin-capi -l pl
147 Wtyczka capi dla pppd w wersji %{ppp_ver}.
148
149 %prep
150 %setup -q -n %{name}
151 %patch0 -p1
152 %if "%{_lib}" == "lib64"
153 %patch1 -p1
154 %endif
155
156 cat > .config << END
157 CONFIG_BINDIR='%{_bindir}'
158 CONFIG_SBINDIR='%{_sbindir}'
159 CONFIG_MANDIR='%{_mandir}'
160 CONFIG_AVMCAPICTRL=y
161 CONFIG_LIBDIR='%{_libdir}'
162 %{?with_capifax:CONFIG_CAPIFAX=y}
163 CONFIG_RCAPID=y
164 CONFIG_PPPDCAPIPLUGIN=y
165 END
166
167 install -p %{SOURCE1} .
168
169 %build
170 %{__make} subconfig
171 %{__make} \
172         PPPVERSIONS=%{ppp_ver}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         PPPVERSIONS=%{ppp_ver} \
179         DESTDIR=$RPM_BUILD_ROOT
180
181 # Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
182 install -d $RPM_BUILD_ROOT%{_datadir}/isdn
183
184 # install capi configuration file used by capiinit
185 install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
186 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
187
188 # install capi startup script
189 install -D %{SOURCE11} $RPM_BUILD_ROOT%{_initrddir}/capi
190
191 %clean
192 rm -rf $RPM_BUILD_ROOT
193
194 %post
195 /sbin/ldconfig
196 /sbin/chkconfig --add capi
197 %service capi restart
198
199 %preun
200 if [ "$1" = "0" ]; then
201         %service capi stop
202         /sbin/chkconfig --del capi
203 fi
204
205 %postun -p /sbin/ldconfig
206
207 %files
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
222
223 %files devel
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/lib*.so
226 %{_libdir}/lib*.la
227 %{_includedir}/*
228
229 %files static
230 %defattr(644,root,root,755)
231 %{_libdir}/lib*.a
232
233 %if %{with capifax}
234 %files capifax
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/capifax*
237 %endif
238
239 %files remotecapi
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_sbindir}/rcapid
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*
This page took 0.077853 seconds and 4 git commands to generate.