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