]> git.pld-linux.org Git - packages/ocaml-jane-street-headers.git/blame - ocaml-jane-street-headers.spec
- typo
[packages/ocaml-jane-street-headers.git] / ocaml-jane-street-headers.spec
CommitLineData
9d7feded
JB
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
10Summary: Jane Street header files
11Summary(pl.UTF-8): Pliki nagłówkowe Jane Street
12Name: ocaml-jane-street-headers
13Version: 0.14.0
14Release: 1
15License: MIT
16Group: Libraries
17#Source0Download: https://github.com/janestreet/jane-street-headers/tags
18Source0: https://github.com/janestreet/jane-street-headers/archive/v%{version}/jane-street-headers-%{version}.tar.gz
19# Source0-md5: e9c5476e0748d0f4476ad534a51fc677
20URL: https://github.com/janestreet/jane-street-headers
21BuildRequires: ocaml >= 1:4.04.2
22BuildRequires: ocaml-dune >= 2.0.0
23%requires_eq ocaml-runtime
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define debug_package %{nil}
27
28%description
29C header files shared between the various Jane Street packages.
30
31This package contains files needed to run bytecode executables using
32jane-street-headers library.
33
34%description -l pl.UTF-8
35Pliki nagłówkowe C współdzielone między różnymi pakietami Jane Street.
36
37Pakiet ten zawiera binaria potrzebne do uruchamiania programów
38używających biblioteki jane-street-headers.
39
40%package devel
41Summary: Jane Street header files - development part
249f68f8 42Summary(pl.UTF-8): Pliki nagłówkowe Jane Street - część programistyczna
9d7feded
JB
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45%requires_eq ocaml
46
47%description devel
48This package contains files needed to develop OCaml programs using
49jane-street-headers library.
50
51%description devel -l pl.UTF-8
52Pakiet ten zawiera pliki niezbędne do tworzenia programów w OCamlu
53używających biblioteki jane-street-headers.
54
55%prep
56%setup -q -n jane-street-headers-%{version}
57
58%build
59dune build --verbose
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64dune install --destdir=$RPM_BUILD_ROOT
65
66# sources
67%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/jane-street-headers/*.ml
68# packaged as %doc
69%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/jane-street-headers
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
76%doc LICENSE.md README.org
77%dir %{_libdir}/ocaml/jane-street-headers
78%{_libdir}/ocaml/jane-street-headers/META
79%{_libdir}/ocaml/jane-street-headers/*.cma
80%if %{with ocaml_opt}
81%attr(755,root,root) %{_libdir}/ocaml/jane-street-headers/*.cmxs
82%endif
83
84%files devel
85%defattr(644,root,root,755)
86%{_libdir}/ocaml/jane-street-headers/*.cmi
87%{_libdir}/ocaml/jane-street-headers/*.cmt
88%{_libdir}/ocaml/jane-street-headers/*.h
89%if %{with ocaml_opt}
90%{_libdir}/ocaml/jane-street-headers/jane_street_headers.a
91%{_libdir}/ocaml/jane-street-headers/*.cmx
92%{_libdir}/ocaml/jane-street-headers/*.cmxa
93%endif
94%{_libdir}/ocaml/jane-street-headers/dune-package
95%{_libdir}/ocaml/jane-street-headers/opam
This page took 3.283321 seconds and 4 git commands to generate.