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