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