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