3 %bcond_without ocaml_opt # native optimized binaries (bytecode is always built)
5 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
6 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
7 %undefine with_ocaml_opt
10 Summary: Typerep - library for runtime types
11 Summary(pl.UTF-8): Typerep - biblioteka do typów uruchomieniowych
17 #Source0Download: https://github.com/janestreet/typerep/tags
18 Source0: https://github.com/janestreet/typerep/archive/v%{version}/typerep-%{version}.tar.gz
19 # Source0-md5: d95f944090434bc998f4209c8725e5ba
20 URL: https://github.com/janestreet/typerep
21 BuildRequires: ocaml >= 1:4.04.2
22 BuildRequires: ocaml-base-devel >= 0.14
23 BuildRequires: ocaml-base-devel < 0.15
24 BuildRequires: ocaml-dune >= 2.0.0
25 %requires_eq ocaml-runtime
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define debug_package %{nil}
31 Typerep is a library for runtime types.
33 This package contains files needed to run bytecode executables using
36 %description -l pl.UTF-8
37 Typerep to biblioteka do typów uruchomieniowych.
39 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
40 używających biblioteki typerep.
43 Summary: Typerep - library for runtime types - development part
44 Summary(pl.UTF-8): Typerep - biblioteka do typów uruchomieniowych - część programistyczna
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
48 Requires: ocaml-base-devel >= 0.14
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 w OCamlu
56 używających biblioteki typerep.
59 %setup -q -n typerep-%{version}
65 rm -rf $RPM_BUILD_ROOT
67 dune install --destdir=$RPM_BUILD_ROOT
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/typerep/*.ml
72 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/typerep
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc CHANGES.md LICENSE.md
80 %dir %{_libdir}/ocaml/typerep
81 %{_libdir}/ocaml/typerep/META
82 %{_libdir}/ocaml/typerep/*.cma
84 %attr(755,root,root) %{_libdir}/ocaml/typerep/*.cmxs
88 %defattr(644,root,root,755)
89 %{_libdir}/ocaml/typerep/*.cmi
90 %{_libdir}/ocaml/typerep/*.cmt
91 %{_libdir}/ocaml/typerep/*.cmti
92 %{_libdir}/ocaml/typerep/*.mli
94 %{_libdir}/ocaml/typerep/typerep_lib.a
95 %{_libdir}/ocaml/typerep/*.cmx
96 %{_libdir}/ocaml/typerep/*.cmxa
98 %{_libdir}/ocaml/typerep/dune-package
99 %{_libdir}/ocaml/typerep/opam