]> git.pld-linux.org Git - packages/ocaml-net.git/blame - ocaml-net.spec
- release 3 (by relup.sh)
[packages/ocaml-net.git] / ocaml-net.spec
CommitLineData
d675728c
JR
1#
2# Conditional build:
3%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
11928791 4%bcond_with apache # build apache module
d675728c
JR
5
6# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
7%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
8%undefine with_ocaml_opt
9%endif
10
84639fdc 11%define apxs /usr/sbin/apxs
cb8bf70d 12%define apache /usr/sbin/httpd
cfdcf47a 13Summary: Modules for Internet programming in OCaml
553e669b 14Summary(pl.UTF-8): Moduły ułatwiające pisanie programów internetowych w OCamlu
cfdcf47a 15Name: ocaml-net
05dd1797 16Version: 3.7.7
8cd4911c 17Release: 3
de448ef4 18License: GPL v2+ (nethttpd), LGPL v2+ (mod_caml), BSD-like (the rest)
cfdcf47a 19Group: Libraries
6a48f6e4 20Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz
05dd1797 21# Source0-md5: e15e0961d09057f0bbe4f69d6055506c
6a48f6e4 22Patch0: %{name}-buildfix.patch
84639fdc 23Patch1: %{name}-lablgtk2.patch
05dd1797 24Patch2: %{name}-apache-link.patch
6a48f6e4 25URL: http://projects.camlcity.org/projects/ocamlnet.html
11928791 26%if %{with apache}
cb8bf70d 27BuildRequires: %{apache}
8448aa07 28BuildRequires: %{apxs}
84639fdc 29BuildRequires: apache-devel >= 2.0
11928791 30%endif
91c26977 31BuildRequires: ncurses-devel
84639fdc 32BuildRequires: ocaml >= 1:3.09.2
a85e3ddf 33BuildRequires: ocaml-camlp4
8448aa07
JR
34BuildRequires: ocaml-cryptgps-devel
35BuildRequires: ocaml-cryptokit-devel
2860521a 36BuildRequires: ocaml-findlib
a85e3ddf 37BuildRequires: ocaml-findlib-devel
84639fdc 38BuildRequires: ocaml-lablgtk2-devel >= 2.14.2
8448aa07
JR
39BuildRequires: ocaml-labltk-devel
40BuildRequires: ocaml-pcre-devel
b92aa72c 41BuildRequires: ocaml-ssl-devel
84639fdc 42BuildRequires: ocaml-zip-devel
b92aa72c 43BuildRequires: tcl-devel
cfdcf47a
MM
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
84639fdc
JR
46%define _apachepkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
47%define _apachesysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
48
cfdcf47a 49%description
802c9167
MM
50Modules for Internet programming in OCaml.
51
a73a9323
JR
52%description -l pl.UTF-8
53Moduły ułatwiające pisanie programów internetowych w OCamlu.
cfdcf47a 54
9de7b5fa
JR
55%package doc
56Summary: ocaml-net documentation
553e669b 57Summary(pl.UTF-8): Dokumentacja dla pakietów ocaml-net
de448ef4 58License: BSD-like
9de7b5fa
JR
59Group: Development/Libraries
60
61%description doc
9906ddba 62ocaml-net documentation.
9de7b5fa 63
a73a9323
JR
64%description doc -l pl.UTF-8
65Dokumentacja dla pakietów ocaml-net.
9de7b5fa 66
84639fdc 67%package netcgi-devel
b92aa72c
JR
68Summary: Common Gateway Interface library
69Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI
de448ef4 70License: LGPL v2+ (mod_caml), BSD-like (the rest)
cfdcf47a 71Group: Development/Libraries
b92aa72c
JR
72Requires: %{name}-netplex-devel = %{version}-%{release}
73Requires: %{name}-netstring-devel = %{version}-%{release}
74Requires: %{name}-netsys-devel = %{version}-%{release}
8448aa07 75Obsoletes: ocaml-net-cgi-devel
cfdcf47a
MM
76%requires_eq ocaml
77
84639fdc 78%description netcgi-devel
b92aa72c 79Common Gateway Interface library, part of Ocamlnet. This package
2832b715 80contains files needed to develop OCaml programs using netcgi library.
cfdcf47a 81
84639fdc 82%description netcgi-devel -l pl.UTF-8
2832b715
JB
83Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet. Ten
84pakiet zawiera pliki niezbędne do tworzenia programów używających
85biblioteki netcgi.
cfdcf47a 86
84639fdc 87%package -n apache-mod_netcgi
11928791
JR
88Summary: Apache module
89Summary(pl.UTF-8): Moduł Apache'a
84639fdc
JR
90Group: Networking/Daemons/HTTP
91Requires: apache(modules-api) = %apache_modules_api
92
93%description -n apache-mod_netcgi
94
95%description -n apache-mod_netcgi -l pl.UTF-8
96
b92aa72c
JR
97%package equeue-devel
98Summary: Event queue library for OCaml
99Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla
de448ef4 100License: BSD-like
b92aa72c
JR
101Group: Development/Libraries
102Requires: %{name}-netsys-devel = %{version}-%{release}
103%requires_eq ocaml
104Obsoletes: ocaml-equeue-devel
b92aa72c
JR
105
106%description equeue-devel
107Equeue provides a generic event queue module, and a specific module
108for file descriptor events.
109
110This package contains files needed to develop OCaml programs using
2832b715 111equeue library.
b92aa72c
JR
112
113%description equeue-devel -l pl.UTF-8
114Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
115modułu obsługi zdarzeń na deskryptorach plików.
116
2832b715
JB
117Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
118biblioteki equeue.
b92aa72c 119
84639fdc
JR
120%package equeue-gtk2-devel
121Summary: GTK2 event queue library for OCaml
122Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń GTK2 dla OCamla
123License: BSD-like
124Group: Development/Libraries
125Requires: %{name}-equeue-devel = %{version}-%{release}
7be49e88 126Requires: ocaml-lablgtk2-devel
84639fdc
JR
127%requires_eq ocaml
128
129%description equeue-gtk2-devel
130Equeue provides a generic event queue module, and a specific module
131for file descriptor events.
132
133This package contains files needed to develop OCaml programs using
134GTK2 equeue library.
135
136%description equeue-gtk2-devel -l pl.UTF-8
137Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
138modułu obsługi zdarzeń na deskryptorach plików.
139
140Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
141biblioteki equeue GTK2.
142
b92aa72c
JR
143%package equeue-ssl
144Summary: Event queue library for OCaml, SSL support
145Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla SSL
de448ef4 146License: BSD-like
b92aa72c
JR
147Group: Libraries
148%requires_eq ocaml-runtime
149
150%description equeue-ssl
151This package makes it possible to let Equeue cooperate with the event
152queue implementation of SSL.
153
154This package contains files needed to run bytecode executables using
2832b715 155equeue-ssl library.
b92aa72c
JR
156
157%description equeue-ssl -l pl.UTF-8
158Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
159w SSL.
160
2832b715
JB
161Ten pakiet zawiera moduł potrzebny do uruchamiania programów
162używających biblioteki equeue-ssl.
b92aa72c
JR
163
164%package equeue-ssl-devel
165Summary: Equeue SSL support - development part
166Summary(pl.UTF-8): Wsparcie dla SSL-a w equeue - cześć programistyczna
de448ef4 167License: BSD-like
b92aa72c
JR
168Group: Development/Libraries
169Requires: %{name}-equeue-devel = %{version}-%{release}
9a761410 170Requires: %{name}-equeue-ssl = %{version}-%{release}
b92aa72c
JR
171%requires_eq ocaml-ssl-devel
172%requires_eq ocaml
173
174%description equeue-ssl-devel
175This package makes it possible to let Equeue cooperate with the event
176queue implementation of SSL.
177
178This package contains files needed to develop OCaml programs using
2832b715 179equeue-ssl library.
b92aa72c
JR
180
181%description equeue-ssl-devel -l pl.UTF-8
182Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
183w SSL.
184
2832b715
JB
185Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
186biblioteki equeue-ssl.
b92aa72c
JR
187
188%package equeue-tcl
189Summary: Event queue library for OCaml, Tcl support
190Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla Tcl
de448ef4 191License: BSD-like
b92aa72c
JR
192Group: Libraries
193%requires_eq ocaml-runtime
194%requires_eq ocaml-labltk
2832b715 195Obsoletes: ocaml-equeue-tcl
b92aa72c
JR
196
197%description equeue-tcl
198This package makes it possible to let Equeue cooperate with the event
199queue implementation of Tcl.
200
201This package contains files needed to run bytecode executables using
2832b715 202equeue-tcl library.
b92aa72c
JR
203
204%description equeue-tcl -l pl.UTF-8
205Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
206w Tcl.
207
2832b715
JB
208Ten pakiet zawiera moduły potrzebne do uruchamiania programów
209używających biblioteki equeue-tcl.
b92aa72c
JR
210
211%package equeue-tcl-devel
212Summary: Equeue Tcl support - development part
213Summary(pl.UTF-8): Wsparcie dla Tcl-a w equeue - cześć programistyczna
de448ef4 214License: BSD-like
b92aa72c
JR
215Group: Development/Libraries
216Requires: %{name}-equeue-devel = %{version}-%{release}
217Requires: %{name}-equeue-tcl = %{version}-%{release}
218%requires_eq ocaml-labltk-devel
219%requires_eq ocaml
2832b715 220Obsoletes: ocaml-equeue-tcl-devel
b92aa72c
JR
221
222%description equeue-tcl-devel
223This package makes it possible to let Equeue cooperate with the event
224queue implementation of Tcl.
225
226This package contains files needed to develop OCaml programs using
227this library.
228
229%description equeue-tcl-devel -l pl.UTF-8
230Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
231w Tcl.
232
2832b715
JB
233Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
234biblioteki equeue-tcl.
b92aa72c 235
84639fdc
JR
236%package netcamlbox-devel
237Summary: Fast IPC mechanism for OCaml
238Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla
239License: BSD-like
240Group: Development/Libraries
241Requires: %{name}-netsys-devel = %{version}-%{release}
242%requires_eq ocaml
243
244%description netcamlbox-devel
8448aa07
JR
245Camlboxes are a fast IPC mechanism to send Ocaml values from one
246process to another. Source and destination processes must run on the
247same machine (no network). The Ocaml value is copied to a shared
248memory object where it can be directly accessed by the receiver
249without unmarshalling step. This means the sender writes the value
250into the shared memory in a format that can immediately interpreted by
251the receiver.
84639fdc
JR
252
253This package contains files needed to develop OCaml programs using
254netcamlbox library.
255
256%description netcamlbox-devel -l pl.UTF-8
8448aa07
JR
257Camlboxy są szybkim mechanizmem IPC do przesyłania danych Ocamla
258pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej
259samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci
260dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę.
84639fdc
JR
261
262Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
263biblioteki netcamlbox.
264
b92aa72c
JR
265%package netclient-devel
266Summary: HTTP 1.1 client for OCaml
267Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla
de448ef4 268License: BSD-like
b92aa72c
JR
269Group: Development/Libraries
270Requires: %{name}-equeue-devel = %{version}-%{release}
271Requires: %{name}-netstring-devel = %{version}-%{release}
272%requires_eq ocaml
273Obsoletes: ocaml-netclient-devel
274
275%description netclient-devel
276Implements much of HTTP/1.1. Implements the following advanced
277features: chunked messages; persistent connections; connections in
278pipelining mode ("full duplex" connections); modular authentication
279methods, currently Basic and Digest; event-driven implementation;
280allows concurrent service for several network connections.
281
282This package contains files needed to develop OCaml programs using
2832b715 283netclient library.
b92aa72c
JR
284
285%description netclient-devel -l pl.UTF-8
2832b715
JB
286Biblioteka netclient implementuje większość HTTP/1.1, a także
287następujące zaawansowane właściwości: komunikaty w kawałkach;
288połączenia stałe; połączenia w trybie "full duplex"; modularne metody
289uwierzytelniania, obecnie Basic i Digest; implementacja oparta na
290zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń.
b92aa72c 291
2832b715
JB
292Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
293biblioteki netclient.
b92aa72c 294
84639fdc
JR
295%package netgssapi-devel
296Summary: GSS-API generic definition
297Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI
298License: GPL v2+
299Group: Development/Libraries
300Requires: %{name}-netstring-devel = %{version}-%{release}
301Requires: %{name}-netsys-devel = %{version}-%{release}
302%requires_eq ocaml
303
304%description netgssapi-devel
305GSSAPI library, part of Ocamlnet. This package contains the files
306needed to develop OCaml programs using netgssapi library.
307
308%description netgssapi-devel -l pl.UTF-8
309Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten
310pakiet zawiera pliki niezbędne do tworzenia programów używających
311biblioteki netgssapi.
312
9de7b5fa
JR
313%package nethttpd-devel
314Summary: HTTPd library
553e669b 315Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP
de448ef4 316License: GPL v2+
9de7b5fa 317Group: Development/Libraries
b92aa72c 318Requires: %{name}-equeue-devel = %{version}-%{release}
8448aa07 319Requires: %{name}-netcgi-devel = %{version}-%{release}
b92aa72c 320Requires: %{name}-netplex-devel = %{version}-%{release}
9de7b5fa
JR
321%requires_eq ocaml-pcre-devel
322%requires_eq ocaml
323
324%description nethttpd-devel
9906ddba 325HTTPd library, part of Ocamlnet. This package contains the files
2832b715 326needed to develop OCaml programs using nethttpd library.
9de7b5fa 327
a73a9323 328%description nethttpd-devel -l pl.UTF-8
2832b715
JB
329Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Ten
330pakiet zawiera pliki niezbędne do tworzenia programów używających
331biblioteki nethttpd.
9de7b5fa 332
84639fdc
JR
333%package netmech-scram-devel
334Summary: SCRAM mechanism for authentication
335Summary(pl.UTF-8): Mechanizm autentykacji SCRAM
336License: GPL v2+
337Group: Development/Libraries
338Requires: %{name}-netcamlbox-devel = %{version}-%{release}
339Requires: %{name}-netplex-devel = %{version}-%{release}
340%requires_eq ocaml
341
342%description netmech-scram-devel
8448aa07
JR
343Netmech-scram library, part of Ocamlnet. This package contains the
344files needed to develop OCaml programs using netmech-scram library.
84639fdc
JR
345
346%description netmech-scram-devel -l pl.UTF-8
8448aa07
JR
347Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
348Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów
349używających biblioteki netmech-scram.
84639fdc
JR
350
351%package netmulticore-devel
352Summary: Multi-processing for compute jobs
353Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń
354License: GPL v2+
355Group: Development/Libraries
356Requires: %{name}-netcamlbox-devel = %{version}-%{release}
357Requires: %{name}-netplex-devel = %{version}-%{release}
358%requires_eq ocaml
359
360%description netmulticore-devel
361Netmcore library, part of Ocamlnet. This package contains the files
362needed to develop OCaml programs using netmulticore library.
363
364%description netmulticore-devel -l pl.UTF-8
8448aa07
JR
365Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
366Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów
367używających biblioteki netmulticore.
84639fdc 368
b92aa72c
JR
369%package netplex
370Summary: Server framework
2832b715 371Summary(pl.UTF-8): Szkielet serwerowy
de448ef4 372License: BSD-like
b92aa72c
JR
373Group: Libraries
374%requires_eq ocaml-runtime
375%requires_eq ocaml-labltk
376
377%description netplex
378Server framework.
379
380This package contains files needed to run bytecode executables using
2832b715 381netplex library.
b92aa72c 382
2832b715
JB
383%description netplex -l pl.UTF-8
384Szkielet serwerowy.
385
386Ten pakiet zawiera moduły potrzebne do uruchamiania programów
387używających biblioteki netplex.
b92aa72c
JR
388
389%package netplex-devel
390Summary: Server framework - development part
2832b715 391Summary(pl.UTF-8): Szkielet serwerowy - cześć programistyczna
de448ef4 392License: BSD-like
cfdcf47a 393Group: Development/Libraries
b92aa72c 394Requires: %{name}-equeue-devel = %{version}-%{release}
8448aa07 395Requires: %{name}-netplex = %{version}-%{release}
cfdcf47a 396Requires: %{name}-netstring-devel = %{version}-%{release}
b92aa72c 397Requires: %{name}-netsys-devel = %{version}-%{release}
8448aa07 398Requires: %{name}-rpc-devel = %{version}-%{release}
cfdcf47a
MM
399%requires_eq ocaml
400
b92aa72c
JR
401%description netplex-devel
402Server framework.
cfdcf47a 403
b92aa72c 404This package contains files needed to develop OCaml programs using
2832b715 405netplex library.
b92aa72c 406
2832b715
JB
407%description netplex-devel -l pl.UTF-8
408Szkielet serwerowy.
409
410Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
411biblioteki netplex.
b92aa72c
JR
412
413%package netshm-devel
2832b715
JB
414Summary: Shared memory support - development package
415Summary(pl.UTF-8): Obsługa pamięci dzielonej - pakiet programistyczny
de448ef4 416License: BSD-like
b92aa72c
JR
417Group: Development/Libraries
418Requires: %{name}-netsys-devel = %{version}-%{release}
419%requires_eq ocaml
420
421%description netshm-devel
422Shared memory support.
423
424This package contains files needed to develop OCaml programs using
2832b715 425netshm library.
b92aa72c 426
2832b715
JB
427%description netshm-devel -l pl.UTF-8
428Obsługa pamięci dzielonej.
429
430Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
431biblioteki netshm.
b92aa72c 432
a6bd7b81
JR
433%package netstring
434Summary: String processing library
435Summary(pl.UTF-8): Biblioteka do przetwarzania napisów
436License: BSD-like
437Group: Libraries
438Requires: %{name}-netsys-devel = %{version}-%{release}
439%requires_eq ocaml-pcre-devel
440%requires_eq ocaml
441
442%description netstring
443String processing library, part of Ocamlnet.
444
445%description netstring -l pl.UTF-8
446Biblioteka do przetwarzania napisów, część pakietu Ocamlnet.
447
b92aa72c
JR
448%package netstring-devel
449Summary: String processing library
450Summary(pl.UTF-8): Biblioteka do przetwarzania napisów
de448ef4 451License: BSD-like
b92aa72c 452Group: Development/Libraries
a6bd7b81 453Requires: %{name}-netstring = %{version}-%{release}
b92aa72c
JR
454Requires: %{name}-netsys-devel = %{version}-%{release}
455%requires_eq ocaml-pcre-devel
456%requires_eq ocaml
457
458%description netstring-devel
459String processing library, part of Ocamlnet. This package contains
2832b715 460files needed to develop OCaml programs using netstring library.
b92aa72c
JR
461
462%description netstring-devel -l pl.UTF-8
2832b715
JB
463Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. Ten
464pakiet zawiera pliki niezbędne do tworzenia programów używających
465biblioteki netstring.
cfdcf47a 466
b92aa72c
JR
467%package netsys
468Summary: OS-specific functions
2832b715 469Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego
de448ef4 470License: BSD-like
b92aa72c
JR
471Group: Libraries
472%requires_eq ocaml-runtime
473
474%description netsys
475OS-specific functions.
476
477This package contains files needed to run bytecode executables using
2832b715 478netsys library.
b92aa72c 479
2832b715
JB
480%description netsys -l pl.UTF-8
481Funkcje specyficzne dla systemu operacyjnego.
482
483Ten pakiet zawiera moduły potrzebne do uruchamiania programów
484używających biblioteki netsys.
b92aa72c
JR
485
486%package netsys-devel
487Summary: OS-specific functions - development part
2832b715 488Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego - cześć programistyczna
de448ef4 489License: BSD-like
b92aa72c
JR
490Group: Development/Libraries
491Requires: %{name}-netsys = %{version}-%{release}
492%requires_eq ocaml
493
494%description netsys-devel
495OS-specific functions.
496
497This package contains files needed to develop OCaml programs using
2832b715 498netsys library.
b92aa72c 499
2832b715
JB
500%description netsys-devel -l pl.UTF-8
501Funkcje specyficzne dla systemu operacyjnego.
502
503Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
504biblioteki netsys.
b92aa72c 505
84639fdc
JR
506%package netzip-devel
507Summary: Gzip channels - development part
508Summary(pl.UTF-8): Funkcje do kompresji kanałow - cześć programistyczna
509License: BSD-like
510Group: Development/Libraries
7be49e88 511Requires: %{name}-netstring-devel = %{version}-%{release}
84639fdc
JR
512%requires_eq ocaml
513
514%description netzip-devel
515Gzip channels functions.
516
517This package contains files needed to develop OCaml programs using
518netzip library.
519
520%description netzip-devel -l pl.UTF-8
521Funkcje do kompresji kanałow.
522
523Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
524biblioteki netzip.
525
cfdcf47a
MM
526%package pop3-devel
527Summary: Post Office Protocol (POP3) library
553e669b 528Summary(pl.UTF-8): Biblioteka do obsługi POP3
de448ef4 529License: BSD-like
cfdcf47a
MM
530Group: Development/Libraries
531Requires: %{name}-netstring-devel = %{version}-%{release}
532%requires_eq ocaml
533
534%description pop3-devel
535Post Office Protocol (POP3) library, part of Ocamlnet. This package
2832b715 536contains files needed to develop OCaml programs using pop library.
cfdcf47a 537
a73a9323 538%description pop3-devel -l pl.UTF-8
2832b715
JB
539Biblioteka do obsługi POP3, część pakietu Ocamlnet. Ten pakiet zawiera
540pliki niezbędne do tworzenia programów używających biblioteki pop.
cfdcf47a 541
b92aa72c 542%package rpc
2832b715
JB
543Summary: Remote Procedure Call (RPC) libraries
544Summary(pl.UTF-8): Biblioteki do obsługi RPC
de448ef4 545License: BSD-like
b92aa72c
JR
546Group: Development/Libraries
547Requires: %{name}-equeue-ssl = %{version}-%{release}
548%requires_eq ocaml
549
550%description rpc
2832b715 551Remote Procedure Call (RPC) libraries.
b92aa72c
JR
552
553%description rpc -l pl.UTF-8
2832b715 554Biblioteki do obsługi RPC.
b92aa72c
JR
555
556%package rpc-devel
2832b715
JB
557Summary: Remote Procedure Call (RPC) libraries - development part
558Summary(pl.UTF-8): Biblioteki do obsługi RPC - część programistyczna
de448ef4 559License: BSD-like
b92aa72c
JR
560Group: Development/Libraries
561Requires: %{name}-equeue-ssl-devel = %{version}-%{release}
562Requires: %{name}-rpc = %{version}-%{release}
563%requires_eq ocaml
564
565%description rpc-devel
2832b715 566Remote Procedure Call (RPC) libraries - development part.
b92aa72c
JR
567
568%description rpc-devel -l pl.UTF-8
2832b715 569Biblioteki do obsługi RPC - część programistyczna.
b92aa72c
JR
570
571%package shell-devel
572Summary: Unix shell functions
2832b715 573Summary(pl.UTF-8): Funkcje powłoki uniksowej
de448ef4 574License: BSD-like
b92aa72c 575Group: Development/Libraries
b92aa72c 576Requires: %{name}-equeue-devel = %{version}-%{release}
8448aa07 577Requires: %{name}-netsys-devel = %{version}-%{release}
b92aa72c
JR
578%requires_eq ocaml
579
580%description shell-devel
581Unix shell functions.
582
2832b715
JB
583%description shell-devel -l pl.UTF-8
584Funkcje powłoki uniksowej.
b92aa72c 585
4067530e 586%package smtp-devel
034470d4 587Summary: Simple Mail Transfer Protocol (SMTP) library
553e669b 588Summary(pl.UTF-8): Biblioteka do obsługi SMTP
de448ef4 589License: BSD-like
034470d4
ER
590Group: Development/Libraries
591Requires: %{name}-netstring-devel = %{version}-%{release}
4067530e
SP
592%requires_eq ocaml
593
594%description smtp-devel
034470d4
ER
595Interface for the Simple Mail Tranfer Protocol (SMTP) as specified by
596RFC 2821.
8735b5fe 597
a73a9323 598%description smtp-devel -l pl.UTF-8
2832b715 599Interfejs dla protokołu SMTP opisanego w RFC 2821.
4067530e 600
cfdcf47a
MM
601%prep
602%setup -q -n ocamlnet-%{version}
6a48f6e4 603%patch0 -p1
84639fdc
JR
604%patch1 -p1
605%patch2 -p1
cfdcf47a
MM
606
607%build
cfdcf47a
MM
608# no %%configure, please
609./configure \
05dd1797 610 -disable-gtk \
84639fdc 611 -enable-gtk2 \
b92aa72c 612 -enable-ssl \
84639fdc
JR
613 -enable-zip \
614 -enable-crypto \
11928791 615%if %{with apache}
84639fdc 616 -enable-apache \
11928791
JR
617%else
618 -disable-apache \
619%endif
84639fdc 620 -with-rpc-auth-dh \
b92aa72c
JR
621 -enable-tcl \
622 -equeue-tcl-libs "-ltcl" \
84639fdc
JR
623 -with-nethttpd \
624 -apxs %{apxs} \
cb8bf70d 625 -apache %{apache}
b92aa72c 626
d675728c 627%{__make} -j1 all %{?with_ocaml_opt:opt}
cfdcf47a
MM
628
629%install
630rm -rf $RPM_BUILD_ROOT
a6bd7b81 631install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/stublibs,%{_apachepkglibdir},%{_apachesysconfdir}}
7b251678 632
9de7b5fa
JR
633%{__make} -j1 install \
634 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
635 DESTDIR=$RPM_BUILD_ROOT
7b251678 636
b92aa72c
JR
637cd src
638for f in e* n* p* r* shell smtp ; do
639 [ -d $RPM_BUILD_ROOT%{_libdir}/ocaml/$f ] || continue
cfdcf47a
MM
640 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f
641 mv $RPM_BUILD_ROOT%{_libdir}/ocaml/$f/META \
7b251678 642 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/
cfdcf47a
MM
643 echo "directory = \"+$f\"" \
644 >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/META
645done
646cd ..
b92aa72c 647
11928791 648%if %{with apache}
05dd1797 649%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/netcgi2-apache/500netcgi_apache.info
a6bd7b81 650%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/mod_netcgi_apache.so*
8448aa07 651
84639fdc
JR
652install -p src/netcgi2-apache/mod_netcgi_apache.so $RPM_BUILD_ROOT%{_apachepkglibdir}/mod_netcgi.so
653cat <<EOF >$RPM_BUILD_ROOT%{_apachesysconfdir}/90_mod_netcgi.conf
654LoadModule netcgi_module modules/mod_netcgi.so
655
656<IfModule netcgi_module>
657 NetcgiLoad pcre/pcre.cma
658 NetcgiLoad netsys/netsys.cma
659 NetcgiLoad netstring/netstring.cma
660 NetcgiLoad str.cma
661 NetcgiLoad netcgi2/netcgi.cma
662 NetcgiLoad netcgi2-apache/netcgi_apache.cma
663
664 NetcgiHandler Netcgi_apache.bytecode
665 AddHandler ocaml-bytecode .cma
666
667# Alias /caml-bin/ /path/to/your/scripts/
668# <Location /caml-bin>
669# SetHandler ocaml-bytecode
670# NetcgiHandler Netcgi_apache.bytecode
671# Options ExecCGI
672# Allow from all
673# </Location>
674</IfModule>
675EOF
11928791 676%endif
84639fdc 677
7b251678
MM
678# not sure about *.o
679rm $RPM_BUILD_ROOT%{_libdir}/ocaml/*/*.mli
cfdcf47a 680
84639fdc
JR
681install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{netcgi,equeue,netcamlbox,netmulticore,netclient,nethttpd,pop3,rpc}-%{version}
682cp -r examples/camlbox/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcamlbox-%{version}
683cp -r examples/cgi/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcgi-%{version}
b92aa72c 684cp -r examples/equeue/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-equeue-%{version}
84639fdc 685cp -r examples/multicore/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netmulticore-%{version}
b92aa72c 686cp -r examples/netclient/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netclient-%{version}
9de7b5fa 687cp -r examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version}
b92aa72c
JR
688cp -r examples/pop/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-pop3-%{version}
689cp -r examples/rpc/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-rpc-%{version}
cfdcf47a 690
cfdcf47a
MM
691%clean
692rm -rf $RPM_BUILD_ROOT
693
9de7b5fa
JR
694%files doc
695%defattr(644,root,root,755)
b92aa72c
JR
696%doc LICENSE* ChangeLog RELNOTES doc/html-main
697
84639fdc 698%files netcgi-devel
b92aa72c
JR
699%defattr(644,root,root,755)
700%dir %{_libdir}/ocaml/netcgi*
701%{_libdir}/ocaml/netcgi*/*.cm[ixao]*
11928791 702%if %{with ocaml_opt}
b92aa72c 703%{_libdir}/ocaml/netcgi*/*.a
11928791 704%endif
b92aa72c 705%{_libdir}/ocaml/site-lib/*cgi*
84639fdc
JR
706%{_examplesdir}/%{name}-netcgi-%{version}
707
11928791 708%if %{with apache}
84639fdc
JR
709%files -n apache-mod_netcgi
710%defattr(644,root,root,755)
711%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apachesysconfdir}/*_mod_netcgi.conf
712%attr(755,root,root) %{_apachepkglibdir}/mod_netcgi.so
11928791 713%endif
b92aa72c
JR
714
715%files equeue-devel
716%defattr(644,root,root,755)
717%dir %{_libdir}/ocaml/equeue
718%{_libdir}/ocaml/equeue/*.cm[ixao]*
11928791 719%if %{with ocaml_opt}
b92aa72c 720%{_libdir}/ocaml/equeue/*.a
11928791 721%endif
b92aa72c
JR
722%{_libdir}/ocaml/site-lib/equeue
723%{_examplesdir}/%{name}-equeue-%{version}
724
84639fdc
JR
725%files equeue-gtk2-devel
726%defattr(644,root,root,755)
727%dir %{_libdir}/ocaml/equeue-gtk2
728%{_libdir}/ocaml/equeue-gtk2/*.cm[ixao]*
11928791 729%if %{with ocaml_opt}
84639fdc 730%{_libdir}/ocaml/equeue-gtk2/*.a
11928791 731%endif
84639fdc
JR
732%{_libdir}/ocaml/site-lib/equeue-gtk2
733
b92aa72c
JR
734%files equeue-ssl
735%defattr(644,root,root,755)
736%dir %{_libdir}/ocaml/equeue-ssl
a6bd7b81
JR
737%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_ssl.so
738%{_libdir}/ocaml/stublibs/dllequeue_ssl.so.owner
b92aa72c
JR
739
740%files equeue-ssl-devel
741%defattr(644,root,root,755)
742%{_libdir}/ocaml/equeue-ssl/*.cm[ixao]*
11928791
JR
743%{_libdir}/ocaml/equeue-ssl/libequeue_ssl.a
744%if %{with ocaml_opt}
745%{_libdir}/ocaml/equeue-ssl/equeue_ssl.a
746%endif
b92aa72c
JR
747%{_libdir}/ocaml/site-lib/equeue-ssl
748
749%files equeue-tcl
750%defattr(644,root,root,755)
751%dir %{_libdir}/ocaml/equeue-tcl
a6bd7b81
JR
752%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_tcl.so
753%{_libdir}/ocaml/stublibs/dllequeue_tcl.so.owner
b92aa72c
JR
754
755%files equeue-tcl-devel
756%defattr(644,root,root,755)
757%{_libdir}/ocaml/equeue-tcl/*.cm[ixao]*
11928791
JR
758%{_libdir}/ocaml/equeue-tcl/libequeue_tcl.a
759%if %{with ocaml_opt}
760%{_libdir}/ocaml/equeue-tcl/equeue_tcl.a
761%endif
b92aa72c
JR
762%{_libdir}/ocaml/site-lib/equeue-tcl
763
84639fdc
JR
764%files netcamlbox-devel
765%defattr(644,root,root,755)
766%dir %{_libdir}/ocaml/netcamlbox
767%{_libdir}/ocaml/netcamlbox/*.cm[ixao]*
11928791 768%if %{with ocaml_opt}
84639fdc 769%{_libdir}/ocaml/netcamlbox/*.a
11928791 770%endif
84639fdc
JR
771%{_libdir}/ocaml/site-lib/netcamlbox
772%{_examplesdir}/%{name}-netcamlbox-%{version}
773
b92aa72c
JR
774%files netclient-devel
775%defattr(644,root,root,755)
776%dir %{_libdir}/ocaml/netclient
777%{_libdir}/ocaml/netclient/*.cm[ixao]*
11928791 778%if %{with ocaml_opt}
b92aa72c 779%{_libdir}/ocaml/netclient/*.a
11928791 780%endif
b92aa72c
JR
781%{_libdir}/ocaml/site-lib/netclient
782%{_examplesdir}/%{name}-netclient-%{version}
9de7b5fa 783
84639fdc
JR
784%files netgssapi-devel
785%defattr(644,root,root,755)
786%dir %{_libdir}/ocaml/netgssapi
787%{_libdir}/ocaml/netgssapi/*.cm[ixao]*
11928791 788%if %{with ocaml_opt}
84639fdc 789%{_libdir}/ocaml/netgssapi/*.a
11928791 790%endif
84639fdc
JR
791%{_libdir}/ocaml/site-lib/netgssapi
792
9de7b5fa
JR
793%files nethttpd-devel
794%defattr(644,root,root,755)
84639fdc
JR
795%dir %{_libdir}/ocaml/nethttpd
796%{_libdir}/ocaml/nethttpd/*.cm[ixa]*
11928791 797%if %{with ocaml_opt}
84639fdc 798%{_libdir}/ocaml/nethttpd/*.a
11928791 799%endif
84639fdc 800%{_libdir}/ocaml/site-lib/nethttpd
9de7b5fa 801%{_examplesdir}/%{name}-nethttpd-%{version}
4067530e 802
84639fdc
JR
803%files netmech-scram-devel
804%defattr(644,root,root,755)
805%dir %{_libdir}/ocaml/netmech-scram
806%{_libdir}/ocaml/netmech-scram/*.cm[ixa]*
11928791 807%if %{with ocaml_opt}
84639fdc 808%{_libdir}/ocaml/netmech-scram/*.a
11928791 809%endif
84639fdc
JR
810%{_libdir}/ocaml/site-lib/netmech-scram
811
812%files netmulticore-devel
813%defattr(644,root,root,755)
814%dir %{_libdir}/ocaml/netmulticore
815%{_libdir}/ocaml/netmulticore/*.cm[ixa]*
11928791 816%if %{with ocaml_opt}
84639fdc 817%{_libdir}/ocaml/netmulticore/*.a
11928791 818%endif
84639fdc
JR
819%{_libdir}/ocaml/site-lib/netmulticore
820%{_examplesdir}/%{name}-netmulticore-%{version}
821
b92aa72c
JR
822%files netplex
823%defattr(644,root,root,755)
824%attr(755,root,root) %{_bindir}/netplex-admin
a6bd7b81 825%dir %{_libdir}/ocaml/netplex
11928791 826%if %{with ocaml_opt}
a6bd7b81 827%{_libdir}/ocaml/netplex/*.o
11928791 828%endif
b92aa72c
JR
829
830%files netplex-devel
831%defattr(644,root,root,755)
b92aa72c
JR
832%{_libdir}/ocaml/netplex/netplex-packlist
833%{_libdir}/ocaml/netplex/*.cm[ixao]*
11928791 834%if %{with ocaml_opt}
b92aa72c 835%{_libdir}/ocaml/netplex/*.a
11928791 836%endif
b92aa72c
JR
837%{_libdir}/ocaml/site-lib/netplex
838
839%files netshm-devel
840%defattr(644,root,root,755)
841%dir %{_libdir}/ocaml/netshm
842%{_libdir}/ocaml/netshm/*.cm[ixao]*
11928791 843%if %{with ocaml_opt}
b92aa72c 844%{_libdir}/ocaml/netshm/*.a
11928791 845%endif
b92aa72c
JR
846%{_libdir}/ocaml/site-lib/netshm
847
a6bd7b81 848%files netstring
cfdcf47a 849%defattr(644,root,root,755)
cfdcf47a 850%dir %{_libdir}/ocaml/netstring
11928791 851%if %{with ocaml_opt}
a6bd7b81 852%{_libdir}/ocaml/netstring/*.o
11928791 853%endif
a6bd7b81
JR
854%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetaccel_c.so
855%{_libdir}/ocaml/stublibs/dllnetaccel_c.so.owner
856
857%files netstring-devel
858%defattr(644,root,root,755)
b92aa72c 859%{_libdir}/ocaml/netstring/netdb-packlist
4b20b465 860%{_libdir}/ocaml/netstring/*.cm[ixao]*
11928791
JR
861%{_libdir}/ocaml/netstring/libnetaccel_c.a
862%if %{with ocaml_opt}
863%{_libdir}/ocaml/netstring/netstring*.a
864%endif
cfdcf47a
MM
865%{_libdir}/ocaml/site-lib/netstring
866
b92aa72c 867%files netsys
cfdcf47a 868%defattr(644,root,root,755)
b92aa72c 869%dir %{_libdir}/ocaml/netsys
84639fdc 870%{_libdir}/ocaml/netsys/*.o
a6bd7b81
JR
871%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetsys.so
872%{_libdir}/ocaml/stublibs/dllnetsys.so.owner
b92aa72c
JR
873
874%files netsys-devel
875%defattr(644,root,root,755)
876%{_libdir}/ocaml/netsys/*.cm[ixao]*
11928791
JR
877%{_libdir}/ocaml/netsys/libnetsys.a
878%if %{with ocaml_opt}
879%{_libdir}/ocaml/netsys/netsys.a
880%endif
05dd1797 881%{_libdir}/ocaml/netsys/netsys_c_event.h
b92aa72c 882%{_libdir}/ocaml/site-lib/netsys
cfdcf47a 883
84639fdc
JR
884%files netzip-devel
885%defattr(644,root,root,755)
dcdd07f0 886%dir %{_libdir}/ocaml/netzip
84639fdc 887%{_libdir}/ocaml/netzip/*.cm[ixao]*
11928791 888%if %{with ocaml_opt}
84639fdc 889%{_libdir}/ocaml/netzip/*.a
11928791 890%endif
84639fdc
JR
891%{_libdir}/ocaml/site-lib/netzip
892
cfdcf47a
MM
893%files pop3-devel
894%defattr(644,root,root,755)
cfdcf47a 895%dir %{_libdir}/ocaml/pop
4b20b465 896%{_libdir}/ocaml/pop/*.cm[ixao]*
11928791 897%if %{with ocaml_opt}
cfdcf47a 898%{_libdir}/ocaml/pop/*.a
11928791 899%endif
cfdcf47a
MM
900%{_libdir}/ocaml/site-lib/pop
901%{_examplesdir}/%{name}-pop3-%{version}
4067530e 902
b92aa72c
JR
903%files rpc
904%defattr(644,root,root,755)
905%attr(755,root,root) %{_bindir}/ocamlrpcgen
906%dir %{_libdir}/ocaml/rpc-auth-local
a6bd7b81
JR
907%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so
908%{_libdir}/ocaml/stublibs/dllrpc_auth_local.so.owner
b92aa72c
JR
909
910%files rpc-devel
911%defattr(644,root,root,755)
912%dir %{_libdir}/ocaml/rpc
dcdd07f0
JR
913%dir %{_libdir}/ocaml/rpc-auth-dh
914%dir %{_libdir}/ocaml/rpc-generator
b92aa72c
JR
915%dir %{_libdir}/ocaml/rpc-ssl
916%{_libdir}/ocaml/rpc-generator/rpcgen-packlist
917%{_libdir}/ocaml/rpc*/*.cm[ixao]*
11928791
JR
918%{_libdir}/ocaml/rpc*/librpc_auth_local.a
919%if %{with ocaml_opt}
920%{_libdir}/ocaml/rpc*/rpc_*.a
921%endif
b92aa72c
JR
922%{_libdir}/ocaml/site-lib/rpc*
923%{_examplesdir}/%{name}-rpc-%{version}
924
925%files shell-devel
926%defattr(644,root,root,755)
927%dir %{_libdir}/ocaml/shell
928%{_libdir}/ocaml/shell/*.cm[ixao]*
11928791 929%if %{with ocaml_opt}
b92aa72c 930%{_libdir}/ocaml/shell/*.a
11928791 931%endif
b92aa72c
JR
932%{_libdir}/ocaml/site-lib/shell
933
4067530e
SP
934%files smtp-devel
935%defattr(644,root,root,755)
936%dir %{_libdir}/ocaml/smtp
937%{_libdir}/ocaml/smtp/*.cm[ixao]*
11928791 938%if %{with ocaml_opt}
4067530e 939%{_libdir}/ocaml/smtp/*.a
11928791 940%endif
9de7b5fa 941%{_libdir}/ocaml/site-lib/smtp
This page took 0.238557 seconds and 4 git commands to generate.