3 %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
5 # not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
6 %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
7 %undefine with_ocaml_opt
11 Summary: Fuse binding for OCaml
12 Summary(pl.UTF-8): Wiązania Fuse dla OCamla
18 Source0: https://github.com/astrada/ocamlfuse/archive/v%{version}_cvs7/ocamlfuse-%{version}-7.tar.gz
19 # Source0-md5: a5da871a0983b6723c6b9b735898fe34
20 Patch0: keep-name.patch
21 Patch1: no-wrapped.patch
22 URL: http://sourceforge.net/apps/mediawiki/ocamlfuse/
23 BuildRequires: libfuse-devel
24 BuildRequires: ocaml >= 3.08
25 BuildRequires: ocaml-dune
26 BuildRequires: ocaml-findlib >= 1.4
27 BuildRequires: ocaml-idl-devel >= 1.0.5
28 %requires_eq ocaml-runtime
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define debug_package %{nil}
34 OcamlFuse is a binding to the high-level part of the fuse library,
35 allowing you to implement linux filesystems in OCaml. Other operating
36 systems are not supported, if you think you can help we will be glad
39 The main features of ocamlfuse are:
40 - Multithreading: each callback runs in a separate ocaml thread, so
41 that a slow call can't block the filesystem
42 - Efficiency: read and write operations use the bigarray library
43 achieving very high troughput _ Ease of use: the fusexmp filesystem
44 (mimicking bindfs) is 73 lines of code, including in-memory extended
45 attributes using a hash table. The hello example is 42 lines of code.
47 %description -l pl.UTF-8
48 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
49 używających tej biblioteki.
52 Summary: ocamlfuse binding for OCaml - development part
53 Summary(pl.UTF-8): Wiązania ocamlfuse dla OCamla - cześć programistyczna
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
57 Requires: libfuse-devel
58 Requires: ocaml-idl-devel >= 1.0.5
61 This package contains files needed to develop OCaml programs using
64 %description devel -l pl.UTF-8
65 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
69 %setup -q -n ocamlfuse-2.7.1_cvs7
73 %{__mv} {ocamlfuse,Fuse}.opam
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %{_libdir}/ocaml/%{module}/META
90 %{_libdir}/ocaml/%{module}/dune-package
91 %{_libdir}/ocaml/%{module}/opam
92 %{_libdir}/ocaml/%{module}/*.cmi
93 %{_libdir}/ocaml/%{module}/*.cmt
94 %{_libdir}/ocaml/%{module}/*.cmti
96 %{_libdir}/ocaml/%{module}/*.cmxs
98 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
101 %defattr(644,root,root,755)
102 %doc LICENSE lib/*.mli
103 %dir %{_libdir}/ocaml/%{module}
104 %{_libdir}/ocaml/%{module}/*.cma
105 %{_libdir}/ocaml/%{module}/*.cm[ix]
106 %{_libdir}/ocaml/%{module}/*.a
107 %{_libdir}/ocaml/%{module}/*.mli
108 %if %{with ocaml_opt}
109 %{_libdir}/ocaml/%{module}/*.cmxa