]> git.pld-linux.org Git - packages/ocaml-seq.git/blame - ocaml-seq.spec
- typo
[packages/ocaml-seq.git] / ocaml-seq.spec
CommitLineData
a6fe2595
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: Compatibility package for OCaml's standard iterator type starting from 4.07
11Summary(pl.UTF-8): Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07
12Name: ocaml-seq
13Version: 0.2.2
14Release: 1
15License: LGPL v2.1 with linking exception
16Group: Libraries
17#Source0Download: https://github.com/c-cube/seq/releases
18Source0: https://github.com/c-cube/seq/archive/%{version}/seq-%{version}.tar.gz
19# Source0-md5: 9033e02283aa3bde9f97f24e632902e3
20URL: https://github.com/c-cube/seq
21BuildRequires: ocaml >= 1:4.00
22BuildRequires: ocaml-dune >= 1.1.0
23%requires_eq ocaml-runtime
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define debug_package %{nil}
27
28%description
29Compatibility package for OCaml's standard iterator type starting from
304.07.
31
32This package contains files needed to run bytecode executables using
33OCaml seq library.
34
35%description -l pl.UTF-8
36Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07.
37
38Pakiet ten zawiera binaria potrzebne do uruchamiania programów
39używających biblioteki OCamla seq.
40
41%package devel
42Summary: Compatibility package for OCaml's standard iterator type starting from 4.07 - development part
88f9a9ca 43Summary(pl.UTF-8): Pakiet zgodności ze typem standardowego iteratora z OCamla >= 4.07 - część programistyczna
a6fe2595
JB
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46%requires_eq ocaml
47
48%description devel
49This package contains files needed to develop OCaml programs using
50seq library.
51
52%description devel -l pl.UTF-8
53Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
54biblioteki seq.
55
56%prep
57%setup -q -n seq-%{version}
58
59%build
60dune build --verbose
61
62%install
63rm -rf $RPM_BUILD_ROOT
64
65dune install --destdir=$RPM_BUILD_ROOT
66
67# sources
68%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/seq/*.ml
69# packaged as %doc
70%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/seq
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc LICENSE README.md
78%dir %{_libdir}/ocaml/seq
79%{_libdir}/ocaml/seq/META
80%{_libdir}/ocaml/seq/*.cma
81%if %{with ocaml_opt}
82%attr(755,root,root) %{_libdir}/ocaml/seq/*.cmxs
83%endif
84
85%files devel
86%defattr(644,root,root,755)
87%{_libdir}/ocaml/seq/*.cmi
88%{_libdir}/ocaml/seq/*.cmt
89%{_libdir}/ocaml/seq/*.cmti
90%{_libdir}/ocaml/seq/*.mli
91%if %{with ocaml_opt}
92%{_libdir}/ocaml/seq/*.a
93%{_libdir}/ocaml/seq/*.cmx
94%{_libdir}/ocaml/seq/*.cmxa
95%endif
96%{_libdir}/ocaml/seq/dune-package
97%{_libdir}/ocaml/seq/opam
This page took 0.060817 seconds and 4 git commands to generate.