]> git.pld-linux.org Git - packages/isdn4k-utils.git/blob - isdn4k-utils.spec
- mass commit; now req: name = epoch:version
[packages/isdn4k-utils.git] / isdn4k-utils.spec
1 Summary:        Utilities for the kernel ISDN-subsystem
2 Summary(pl):    U¿ytki dla podsystemu ISDN j±dra
3 Summary(pt_BR): Utilitários para configuração do subsistema ISDN
4 Name:           isdn4k-utils
5 Version:        030611
6 Epoch:          2
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/Communications
10 Source0:        http://popowo.ath.cx/~radek/%{name}-%{version}.tar.gz
11 # Source0-md5:  811a1e962078d3867a9583de201536de
12 Source1:        %{name}.config
13 Patch0:         %{name}-make.patch
14 Patch1:         %{name}-ppc.patch
15 Patch2:         %{name}-pppdcapiplugin.patch
16 Patch3:         %{name}-isdnlog_dont_touch_etc_services.patch
17 URL:            http://www.isdn4linux.de/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  libtool
21 BuildRequires:  ncurses-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _sbindir        /sbin
25 %define         _xprefix        /usr/X11R6
26 %define         _xbindir        %{_xprefix}/bin
27 %define         _xincludedir    %{_xprefix}/include
28 %define         _xlibdir        %{_xprefix}/lib
29 %define         _xmandir        %{_xprefix}/man
30 %define         ppp_ver         %(/usr/sbin/pppd --version 2>&1 | sed -e "s/pppd\ version\ //")
31 %define         ppp_pkg_ver     %(rpm -q --queryformat "%%{VERSION}-%%{RELEASE}" ppp-plugin-devel)
32
33 %description
34 Utilities for the kernel ISDN-subsystem and some contributions.
35
36 %description -l pl
37 Narzêdzia dla podsystemu ISDN j±dra.
38
39 %description -l pt_BR
40 Utilitários para configuração do subsistema ISDN.
41
42 %package x11
43 Summary:        Utilities for the kernel ISDN-subsystem - frontend for X11
44 Summary(pl):    Narzêdzia dla podsystemu ISDN j±dra - nakladki dla X11
45 Group:          Applications/Communications
46 Requires:       %{name} = %{epoch}:%{version}
47
48 %description x11
49 Utilities for the kernel ISDN-subsystem and some contributions (X11).
50
51 %description x11 -l pl
52 Narzêdzia dla podsystemu ISDN j±dra, nak³adki graficzne (X11).
53
54 %package devel
55 Summary:        Developement files for isdn4k-tools
56 Summary(pl):    Rzeczy potrzebne do programowania z u¿yciem isdn4k-tools
57 Group:          Development/Libraries
58 Requires:       %{name} = %{epoch}:%{version}
59
60 %description devel
61 Developement files for isdn4k-tools.
62
63 %description devel -l pl
64 Rzeczy potrzebne do programowania z u¿yciem isdn4k-tools.
65
66 %package -n  ppp-plugin-capi
67 Summary:        capiplugin for pppd-%{ppp_ver}
68 Summary(pl):    Wtyczka capi dla pppd w wersji %{ppp_ver}
69 Group:          Applications/Communications
70 Requires:       ppp = %{ppp_pkg_ver}
71 BuildRequires:  ppp-plugin-devel
72
73 %description -n ppp-plugin-capi
74 capiplugin for pppd-%{ppp_ver}.
75
76 %description -n ppp-plugin-capi -l pl
77 Wtyczka capi dla pppd w wersji %{ppp_ver}.
78
79 %package -n capi
80 Summary:        Program which can initialize CAPI hardware
81 Summary(pl):    Program, który inicjalizuje sprzêt ISDN zgodny z CAPI
82 Group:          Applications/Communications
83
84 %description -n capi
85 The Common ISDN Application Programming Interface - CAPI for short -
86 opens up a new dimension in communication technologies. It provides a
87 uniform, independent interface to ISDN hardware components.
88
89 This package contains program which initialize your CAPI hardware. You
90 should install appropriate kernel module first and edit
91 /etc/capi.conf.
92
93 %description -n capi -l pl
94 Standard Common ISDN Application Programming Interface - w skrócie
95 CAPI - otwiera nowy wymiar w ¶wiecie technologi komunikacyjnych.
96 Dostarcza ujednolicony, niezale¿ny interfejs do sprzêtu ISDN.
97
98 Ten pakiet zawiera program inicjalizuj±cy kartê ISDN zgodn± z CAPI.
99 Trzeba zaopatrzyæ siê w odpowiedni modu³ j±dra i wyedytowaæ plik
100 /etc/capi.conf.
101
102 %package -n capi-libs
103 Summary:        CAPI 2.0 - shared library
104 Summary(pl):    biblioteka dzielona CAPI 2.0
105 Group:          Libraries
106
107 %description -n capi-libs
108 The Common ISDN Application Programming Interface (CAPI for short)
109 opens up a new dimension in communication technologies. It provides a
110 uniform, independent interface to ISDN hardware components.
111
112 This package contains shared library which provide CAPI 2.0.
113
114 %description -n capi-libs -l pl
115 Standard Common ISDN Application Programming Interface (w skrócie
116 CAPI) otwiera nowy wymiar w ¶wiecie technologi komunikacyjnych.
117 Dostarcza ujednolicony, niezale¿ny interfejs do sprzêtu ISDN.
118
119 Ten pakiet zawiera bibliotekê dzielon±, która realizuje standard CAPI
120 w wersji 2.0.
121
122 %package -n capi-libs-static
123 Summary:        Static libraries for CAPI 2.0
124 Summary(pl):    Statyczne biblioteki dla CAPI 2.0
125 Group:          Development/Libraries
126 Requires:       %{name}-devel = %{epoch}:%{version}
127
128 %description -n capi-libs-static
129 The Common ISDN Application Programming Interface (CAPI for short)
130 opens up a new dimension in communication technologies. It provides a
131 uniform, independent interface to ISDN hardware components.
132
133 This package contains static library which provide CAPI 2.0.
134
135 %description -n capi-libs-static -l pl
136 Standard Common ISDN Application Programming Interface (w skrócie
137 CAPI) otwiera nowy wymiar w ¶wiecie technologi komunikacyjnych.
138 Dostarcza ujednolicony, niezale¿ny interfejs do sprzêtu ISDN.
139
140 Ten pakiet zawiera bibliotekê statyczn±, która realizuje standard CAPI
141 w wersji 2.0.
142
143 %package -n capi-devel
144 Summary:        CAPI 2.0 - development staff
145 Summary(pl):    CAPI 2.0 - narzêdzia dewelopera
146 Group:          Development/Libraries
147 Requires:       capi-libs = %{version}
148
149 %description -n capi-devel
150 The Common ISDN Application Programming Interface (CAPI for short)
151 opens up a new dimension in communication technologies. It provides a
152 uniform, independent interface to ISDN hardware components.
153
154 This package contains developement files for CAPI 2.0.
155
156 %description -n capi-devel -l pl
157 Standard Common ISDN Application Programming Interface (w skrócie
158 CAPI) otwiera nowy wymiar w ¶wiecie technologi komunikacyjnych.
159 Dostarcza ujednolicony, niezale¿ny interfejs do sprzêtu ISDN.
160
161 Ten pakiet zawiera pliki niezbêdne przy towrzeniu programów
162 wykorzystuj±cych standard CAPI 2.0
163
164 %package -n capi-tools
165 Summary:        CAPI 2.0 - useful programs
166 Summary(pl):    CAPI 2.0 - programy u¿ytkowe
167 Group:          Applications/Communications
168
169 %description -n capi-tools
170 The Common ISDN Application Programming Interface (CAPI for short)
171 opens up a new dimension in communication technologies. It provides a
172 uniform, independent interface to ISDN hardware components.
173
174 This package contains programs which can make use of your CAPI
175 compilant ISDN hardware
176
177 %description -n capi-tools -l pl
178 Standard Common ISDN Application Programming Interface (w skrócie
179 CAPI) otwiera nowy wymiar w ¶wiecie technologi komunikacyjnych.
180 Dostarcza ujednolicony, niezale¿ny interfejs do sprzêtu ISDN.
181
182 Ten pakiet zawiera programy, które potrafi± zrobic u¿ytek z twojego
183 zgodnego z CAPI sprzêtu ISDN.
184
185 %prep
186 %setup -q -n %{name}
187 %patch0 -p1
188 %ifarch ppc
189 %patch1 -p1
190 %endif
191 %patch2 -p1
192 %patch3 -p1
193
194 %build
195 for i in capi20 capifax capiinfo capiinit rcapid; do
196         cd $i
197         rm -f missing
198         %{__libtoolize}
199         aclocal
200         %{__autoconf}
201         %{__automake}
202         cd ..
203 done
204
205 cp %{SOURCE1} .config
206 %{__make} OPTIM="%{rpmcflags}" subconfig
207 %{__make} PPPVERSION=%{ppp_ver} CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses/"
208
209 %install
210 rm -rf $RPM_BUILD_ROOT
211 install -d $RPM_BUILD_ROOT{%{_sbindir},/var/lock/isdn,%{_datadir}/doc/%{name}-%{version}/faq,%{_xbindir}}
212
213 %{__make} PPPVERSION=%{ppp_ver} DESTDIR=$RPM_BUILD_ROOT install
214
215 mv $RPM_BUILD_ROOT%{_datadir}/doc/isdn4linux/faq/*.txt \
216         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/faq
217 mv $RPM_BUILD_ROOT%{_datadir}/doc/isdn4linux/faq/*.html \
218         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/faq
219 mv $RPM_BUILD_ROOT%{_datadir}/doc/vbox/*.txt \
220         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
221 mv $RPM_BUILD_ROOT%{_bindir}/{xisdnload,xmonisdn} \
222         $RPM_BUILD_ROOT%{_xbindir}
223
224 %clean
225 rm -rf $RPM_BUILD_ROOT
226
227 %post   -n capi-libs -p /sbin/ldconfig
228 %postun -n capi-libs -p /sbin/ldconfig
229
230 %files
231 %defattr(644,root,root,755)
232 %doc README FAQ NEWS LEGAL.ipppcomp ipppcomp/README.LZS Mini-FAQ/*.txt
233 %doc isdnlog/{tools/dest/README*,isdnrep/CHANGES*}
234 %doc FAQ/{_howto,_example}
235 %dir %{_sysconfdir}/isdn
236 %config %{_sysconfdir}/isdn/*
237 %attr(755,root,root) %{_bindir}/[^c]*
238 %attr(755,root,root) %{_sbindir}/[^acr]*
239 %dir %{_libdir}/isdn
240 %{_libdir}/isdn/*
241 %dir /var/lock/isdn
242 %{_mandir}/man[1457]/*
243 %{_mandir}/man8/[^ac]*
244
245 %files x11
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_xbindir}/*
248 %{_xlibdir}/X11/app-defaults/XISDNLoad
249 %{_xmandir}/man1/*
250
251 %files devel
252 %defattr(644,root,root,755)
253 %{_xincludedir}/X11/bitmaps/*
254
255 %files -n capi-libs-static
256 %defattr(644,root,root,755)
257 %{_libdir}/*.a
258
259 %files -n ppp-plugin-capi
260 %defattr(644,root,root,755)
261 %doc pppdcapiplugin/{README,examples/*,peers/*}
262 %attr(755,root,root) %{_libdir}/pppd/%{ppp_ver}/*
263 %{_mandir}/man8/capiplugin*
264
265 %files -n capi-libs
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/*.so.*.*.*
268
269 %files -n capi-devel
270 %defattr(644,root,root,755)
271 %{_libdir}/*.la
272 %attr(755,root,root) %{_libdir}/*.so
273 %{_includedir}/*.h
274
275 %files -n capi-tools
276 %defattr(644,root,root,755)
277 %doc rcapid/README
278 %attr(755,root,root) %{_sbindir}/[ar]*
279 %attr(755,root,root) %{_bindir}/capiinfo
280 %{_mandir}/man8/avmcapi*
281 %{_mandir}/man8/capiinfo*
282
283 %files -n capi
284 %defattr(644,root,root,755)
285 %doc capiinit/capi.conf
286 %attr(755,root,root) %{_sbindir}/capiinit
This page took 0.101128 seconds and 4 git commands to generate.