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