1 # disable debug - not useful?
2 %define debug_package %{nil}
6 %bcond_with opt # build opt
8 Summary: ocamlfuse binding for OCaml
9 Summary(pl.UTF-8): Wiązania ocamlfuse dla OCamla
15 Source0: http://downloads.sourceforge.net/ocamlfuse/ocamlfuse-%{version}-1.tar.gz
16 # Source0-md5: cb9cbe4fafb36ead1b78faaacc26f3e3
17 URL: http://sourceforge.net/apps/mediawiki/ocamlfuse/
18 BuildRequires: libfuse-devel
19 BuildRequires: ocaml >= 3.08
20 BuildRequires: ocaml-camlidl >= 1.0.5
21 BuildRequires: ocaml-findlib >= 1.4
22 %requires_eq ocaml-runtime
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 OcamlFuse is a binding to the high-level part of the fuse library,
27 allowing you to implement linux filesystems in OCaml. Other operating
28 systems are not supported, if you think you can help we will be glad
31 The main features of ocamlfuse are:
32 - Multithreading: each callback runs in a separate ocaml thread, so
33 that a slow call can't block the filesystem
34 - Efficiency: read and write operations use the bigarray library
35 achieving very high troughput _ Ease of use: the fusexmp filesystem
36 (mimicking bindfs) is 73 lines of code, including in-memory extended
37 attributes using a hash table. The hello example is 42 lines of code.
39 %description -l pl.UTF-8
40 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
41 używających tej biblioteki.
44 Summary: ocamlfuse binding for OCaml - development part
45 Summary(pl.UTF-8): Wiązania ocamlfuse dla OCamla - cześć programistyczna
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
51 This package contains files needed to develop OCaml programs using
54 %description devel -l pl.UTF-8
55 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
63 %{__make} all %{?with_opt:opt} -C lib \
64 CC="%{__cc} %{rpmcflags} -fPIC"
67 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{ocamlfuse,stublibs}
71 install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlfuse
72 install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
74 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlfuse
75 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlfuse/META <<EOF
77 version = "%{version}"
78 directory = "+ocamlfuse"
79 archive(byte) = "ocamlfuse.cma"
80 archive(native) = "ocamlfuse.cmxa"
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
90 %dir %{_libdir}/ocaml/ocamlfuse
91 %attr(755,root,root) %{_libdir}/ocaml/ocamlfuse/dll*_stubs.so
94 %defattr(644,root,root,755)
95 %doc LICENSE lib/*.mli
96 %dir %{_libdir}/ocaml/ocamlfuse
97 %{_libdir}/ocaml/ocamlfuse/*.cm[ixa]*
98 %{_libdir}/ocaml/ocamlfuse/*.a
99 %{_libdir}/ocaml/site-lib/ocamlfuse