]> git.pld-linux.org Git - packages/ocaml-typerep.git/blob - ocaml-typerep.spec
- new
[packages/ocaml-typerep.git] / ocaml-typerep.spec
1 #
2 # Conditional build:
3 %bcond_without  ocaml_opt       # native optimized binaries (bytecode is always built)
4
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
8 %endif
9
10 Summary:        Typerep - library for runtime types
11 Summary(pl.UTF-8):      Typerep - biblioteka do typów uruchomieniowych
12 Name:           ocaml-typerep
13 Version:        0.14.0
14 Release:        1
15 License:        MIT
16 Group:          Libraries
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)
27
28 %define         debug_package   %{nil}
29
30 %description
31 Typerep is a library for runtime types.
32
33 This package contains files needed to run bytecode executables using
34 typerep library.
35
36 %description -l pl.UTF-8
37 Typerep to biblioteka do typów uruchomieniowych.
38
39 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
40 używających biblioteki typerep.
41
42 %package devel
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}
47 %requires_eq    ocaml
48 Requires:       ocaml-base-devel >= 0.14
49
50 %description devel
51 This package contains files needed to develop OCaml programs using
52 typerep library.
53
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.
57
58 %prep
59 %setup -q -n typerep-%{version}
60
61 %build
62 dune build --verbose
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 dune install --destdir=$RPM_BUILD_ROOT
68
69 # sources
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/typerep/*.ml
71 # packaged as %doc
72 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/typerep
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
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
83 %if %{with ocaml_opt}
84 %attr(755,root,root) %{_libdir}/ocaml/typerep/*.cmxs
85 %endif
86
87 %files devel
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
93 %if %{with ocaml_opt}
94 %{_libdir}/ocaml/typerep/typerep_lib.a
95 %{_libdir}/ocaml/typerep/*.cmx
96 %{_libdir}/ocaml/typerep/*.cmxa
97 %endif
98 %{_libdir}/ocaml/typerep/dune-package
99 %{_libdir}/ocaml/typerep/opam
This page took 0.132162 seconds and 3 git commands to generate.