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