- rel 5
[packages/capi4k-utils.git] / capi4k-utils.spec
CommitLineData
10f6fb6a 1# NOTE: for more recent CAPI utils see isdn4k-utils.spec
a495a069
ER
2#
3# Conditional build:
d33cb680 4%bcond_with capifax # capifax has some error and won't build right now
cd0c35f0 5
1b551225 6Summary: CAPI 2.0 libraries and configuration tools
3a5f210d
ER
7Summary(de.UTF-8): CAPI 2.0 Werkzeuge für verschiedene ISDN Karten
8Summary(pl.UTF-8): Biblioteki i narzędzia konfiguracyjne CAPI 2.0
1b551225 9Name: capi4k-utils
92c39629 10Version: 2005.07.18
a2548796 11Release: 5
10f6fb6a 12License: GPL v2+
1b551225 13Group: Applications/Communications
92c39629 14Source0: ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2005-07-18.tar.gz
15# Source0-md5: c745759b6b3d64e19763727176648cdf
1b551225 16Source1: ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES
92c39629 17# Source1-md5: 03739a0170eba14f03f7dc7ccc58bba8
1b551225
TP
18Source10: capi.conf
19Source11: capi.init
b0ded9b5
KK
20Patch0: %{name}-include.patch
21Patch1: %{name}-make.patch
22Patch2: %{name}-msg2str_safety.patch
23Patch3: %{name}-ppd244.patch
24Patch4: %{name}-ppd245.patch
25Patch5: %{name}-rcapid.patch
26Patch6: %{name}-amd64.patch
d254aff7 27Patch7: %{name}-ppd247.patch
1b551225
TP
28URL: ftp://ftp.in-berlin.de/pub/capi4linux/
29BuildRequires: libtool
30BuildRequires: ppp-plugin-devel
0621f6b4
ER
31BuildRequires: rpmbuild(macros) >= 1.268
32Requires(post): /sbin/ldconfig
1b551225 33Requires(post,preun): /sbin/chkconfig
180f9ba6 34Requires: rc-scripts
1b551225
TP
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%define ppp_ver %(awk -F'"' '/VERSION/ { print $2 }' /usr/include/pppd/patchlevel.h 2>/dev/null || echo ERROR)
38
39%description
df147066 40These are the necessary tools to operate various CAPI 2.0 compatible
41ISDN adapters.
1b551225 42
df147066 43In order to use the tools you need to install the appropriate driver
44for the adapter. Native driver packages for some adapters are provided
45with the kernel.
1b551225 46
37f23fb5 47%description -l de.UTF-8
df147066 48Dies sind die notwendigen Grundprogramme um verschiedene CAPI 2.0
37f23fb5
JR
49fähige Geräte und ISDN Karten einzurichten. Für einige Karten müssen
50Sie zusätzlich entsprechende Treiber installieren.
1b551225 51
37f23fb5
JR
52%description -l pl.UTF-8
53W tym pakiecie zawarte są biblioteki współdzielone libcapi20 oraz
54narzędzia służące do ładowania i konfiguracji sterowników CAPI.
1b551225 55
37f23fb5
JR
56Aby skorzystać z tych narzędzi potrzebny jest jeszcze odpowiedni
57sterownik do karty ISDN. Kilka takich sterowników znajduje się już w
58jądrze.
1b551225
TP
59
60%package devel
5cd715a5 61Summary: Header files for capi development
3a5f210d
ER
62Summary(de.UTF-8): Kopfdateien zur Entwicklung von CAPI Programmen
63Summary(pl.UTF-8): Pliki nagłówkowe capi
1b551225
TP
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
66
67%description devel
5cd715a5
JB
68This package contains the header files required to develop capi
69applications.
1b551225 70
37f23fb5
JR
71%description devel -l pl.UTF-8
72Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów
73korzystających ze sterowników w standardzie CAPI poprzez bibliotekę
5cd715a5 74libcapi.
1b551225 75
37f23fb5 76%description devel -l de.UTF-8
5cd715a5 77Dieses Paket stellt die Dateien bereit um CAPI Programme zu entwickeln
37f23fb5 78oder neu zu Übersetzen.
5cd715a5
JB
79
80%package static
81Summary: Static capi libraries
3a5f210d 82Summary(pl.UTF-8): Statyczne biblioteki capi
5cd715a5
JB
83Group: Development/Libraries
84Requires: %{name}-devel = %{version}-%{release}
85
86%description static
87Static versions of capi libraries.
88
37f23fb5 89%description static -l pl.UTF-8
5cd715a5 90Statyczne wersje bibliotek capi.
1b551225
TP
91
92%package capifax
93Summary: CAPI 2.0 fax tool
3a5f210d
ER
94Summary(de.UTF-8): CAPI 2.0 Fax Programm
95Summary(pl.UTF-8): Proste narzędzia do faksowania wykorzystujący możliwości CAPI 2.0
1b551225
TP
96Group: Applications/Communications
97Requires: %{name} = %{version}-%{release}
98
99%description capifax
100Native tools for sending and receiving fax with CAPI 2.0.
101
df147066 102HINT: If you intend to use other CAPI 2.0 compliant fax software you
103 do not need to install this package.
104
37f23fb5 105%description capifax -l de.UTF-8
df147066 106Basis Programm zum Senden und Empfangen von Fax mittels CAPI 2.0.
107
37f23fb5 108HINWEIS: Falls Sie andere CAPI 2.0 fähige Faxprogramme einsetzen
df147066 109 wollen brauchen Sie dieses Paket nicht installieren.
1b551225 110
37f23fb5
JR
111%description capifax -l pl.UTF-8
112Podstawowe programy do wysyłania i odbierania faksów przez CAPI 2.0.
1b551225 113
37f23fb5 114PORADA: Jeśli zamierzasz korzystać z innego pakietu do obsługi faksów
1b551225
TP
115 (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
116
1b551225
TP
117%package remotecapi
118Summary: CAPI 2.0 remote tool
3a5f210d 119Summary(de.UTF-8): CAPI 2.0 Fernsteuerungsprogramm
10f6fb6a 120Summary(pl.UTF-8): Program udostępniający interfejs CAPI 2.0 przez sieć
1b551225
TP
121Group: Applications/Communications
122Requires: %{name} = %{version}-%{release}
123
124%description remotecapi
125Native tool for remote control (login) with CAPI 2.0.
126
127ATTENTION: This is extreme BETA.
128 Avoid to install this package.
129
37f23fb5 130%description remotecapi -l de.UTF-8
1b551225
TP
131Basis Programm zu Fernsteuerung (Login) mittels CAPI 2.0.
132
133ACHTUNG: Dieses Programm ist BETA Testsoftware.
134 Vermeiden Sie dieses Paket zu installieren.
135
37f23fb5 136%description remotecapi -l pl.UTF-8
10f6fb6a 137Program udostępniający interfejs CAPI 2.0 przez sieć.
df147066 138
10f6fb6a 139UWAGA: Jest on na razie BETA. Tylko do testów.
df147066 140
1b551225 141%package -n ppp-plugin-capi
10f6fb6a
JB
142Summary: CAPI plugin for pppd
143Summary(pl.UTF-8): Wtyczka CAPI dla pppd
1b551225
TP
144Group: Applications/Communications
145Requires: %{name} = %{version}-%{release}
a495a069 146Requires: ppp
1b551225
TP
147
148%description -n ppp-plugin-capi
10f6fb6a 149CAPI plugin for pppd.
1b551225 150
37f23fb5 151%description -n ppp-plugin-capi -l pl.UTF-8
10f6fb6a 152Wtyczka CAPI dla pppd.
1b551225
TP
153
154%prep
155%setup -q -n %{name}
156%patch0 -p1
5133f98b 157%patch1 -p1
b0ded9b5
KK
158%patch2 -p0
159%patch3 -p0
160%patch4 -p0
161%patch5 -p1
b0ded9b5 162%patch6 -p1
d254aff7 163%patch7 -p1
1b551225
TP
164
165cat > .config << END
166CONFIG_BINDIR='%{_bindir}'
167CONFIG_SBINDIR='%{_sbindir}'
168CONFIG_MANDIR='%{_mandir}'
169CONFIG_AVMCAPICTRL=y
b2b732e0 170CONFIG_LIBDIR='%{_libdir}'
cd0c35f0 171%{?with_capifax:CONFIG_CAPIFAX=y}
1b551225
TP
172CONFIG_RCAPID=y
173CONFIG_PPPDCAPIPLUGIN=y
174END
175
176install -p %{SOURCE1} .
177
178%build
a495a069
ER
179%{__make} subconfig \
180 CC="%{__cc}"
181
5cd715a5 182%{__make} \
a495a069 183 CC="%{__cc}"
5cd715a5 184 PPPVERSIONS=%{ppp_ver}
1b551225
TP
185
186%install
187rm -rf $RPM_BUILD_ROOT
5cd715a5
JB
188
189%{__make} install \
190 PPPVERSIONS=%{ppp_ver} \
1b551225
TP
191 DESTDIR=$RPM_BUILD_ROOT
192
a495a069
ER
193mv $RPM_BUILD_ROOT%{_libdir}/pppd/{%{ppp_ver},plugins}
194
1b551225 195# Firmware goes here - see LSB and kernel 2.6.x ISDN stuff
5cd715a5 196install -d $RPM_BUILD_ROOT%{_datadir}/isdn
1b551225
TP
197
198# install capi configuration file used by capiinit
5cd715a5
JB
199install -d $RPM_BUILD_ROOT%{_sysconfdir}/capi
200install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/capi
1b551225
TP
201
202# install capi startup script
72edd9d5 203install -D %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/capi
5cd715a5
JB
204
205%clean
206rm -rf $RPM_BUILD_ROOT
1b551225 207
5cd715a5 208%post
1b551225
TP
209/sbin/ldconfig
210/sbin/chkconfig --add capi
0621f6b4 211%service capi restart
1b551225 212
5cd715a5 213%preun
1b551225 214if [ "$1" = "0" ]; then
0621f6b4 215 %service capi stop
1b551225
TP
216 /sbin/chkconfig --del capi
217fi
1b551225 218
0621f6b4 219%postun -p /sbin/ldconfig
1b551225 220
1b551225
TP
221%files
222%defattr(644,root,root,755)
5cd715a5
JB
223%doc CHANGES pppdcapiplugin/examples
224%attr(755,root,root) %{_bindir}/capiinfo
5cd715a5 225%attr(755,root,root) %{_sbindir}/avmcapictrl
10f6fb6a
JB
226%attr(755,root,root) %{_sbindir}/capiinit
227%attr(755,root,root) %{_libdir}/libcapi20.so.*.*
228%attr(755,root,root) %ghost %{_libdir}/libcapi20.so.3
72edd9d5 229%attr(754,root,root) /etc/rc.d/init.d/capi
1b551225 230%{_mandir}/man8/avmcapictrl.8*
10f6fb6a 231%{_mandir}/man8/capiinfo.8*
1b551225
TP
232%dir %{_datadir}/isdn
233%dir %{_sysconfdir}/capi
416bb05d 234%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/capi/capi.conf
1b551225
TP
235
236%files devel
237%defattr(644,root,root,755)
10f6fb6a
JB
238%attr(755,root,root) %{_libdir}/libcapi20.so
239%{_libdir}/libcapi20.la
240%{_includedir}/capi20.h
241%{_includedir}/capicmd.h
242%{_includedir}/capiutils.h
5cd715a5
JB
243
244%files static
245%defattr(644,root,root,755)
10f6fb6a
JB
246%{_libdir}/libcapi20.a
247%{_libdir}/libcapi20dyn.a
1b551225 248
cd0c35f0 249%if %{with capifax}
1b551225
TP
250%files capifax
251%defattr(644,root,root,755)
10f6fb6a
JB
252%attr(755,root,root) %{_bindir}/capifax
253%attr(755,root,root) %{_bindir}/capifaxrcvd
cd0c35f0 254%endif
1b551225
TP
255
256%files remotecapi
257%defattr(644,root,root,755)
5cd715a5 258%attr(755,root,root) %{_sbindir}/rcapid
1b551225
TP
259
260%files -n ppp-plugin-capi
261%defattr(644,root,root,755)
262%exclude %{_sysconfdir}/drdsl
263%exclude %{_sysconfdir}/ppp
10f6fb6a
JB
264%attr(755,root,root) %{_libdir}/pppd/plugins/capiplugin.so
265%attr(755,root,root) %{_libdir}/pppd/plugins/userpass.so
1b551225 266%{_mandir}/man8/capiplugin.8*
This page took 0.094815 seconds and 5 git commands to generate.