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