Initial import.
This commit is contained in:
parent
07b43a3245
commit
c4a26fbbfd
|
@ -0,0 +1 @@
|
|||
/stdio-*.tar.gz
|
|
@ -0,0 +1,97 @@
|
|||
%ifnarch %{ocaml_native_compiler}
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%global srcname stdio
|
||||
|
||||
Name: ocaml-%{srcname}
|
||||
Version: 0.13.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Jane Street Standard I/O library for OCaml
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/janestreet/%{srcname}
|
||||
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: ocaml >= 4.04.2
|
||||
BuildRequires: ocaml-base-devel
|
||||
BuildRequires: ocaml-dune-devel >= 2.0.0
|
||||
BuildRequires: ocaml-odoc
|
||||
|
||||
%description
|
||||
Stdio provides input/output functions for OCaml. It re-exports the
|
||||
buffered channels of the stdlib distributed with OCaml but with some
|
||||
improvements.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: ocaml-base-devel%{?_isa}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
dune build %{?_smp_mflags}
|
||||
dune build %{?_smp_mflags} @doc
|
||||
|
||||
%install
|
||||
dune install --destdir=%{buildroot}
|
||||
|
||||
# We do not want the dune markers
|
||||
find _build/default/_doc/_html -name .dune-keep -delete
|
||||
|
||||
# We do not want the ml files
|
||||
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete
|
||||
|
||||
# We install the documentation with the doc macro
|
||||
rm -fr %{buildroot}%{_prefix}/doc
|
||||
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
# Add missing executable bits
|
||||
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc CHANGES.md README.org
|
||||
%license LICENSE.md
|
||||
%dir %{_libdir}/ocaml/%{srcname}/
|
||||
%{_libdir}/ocaml/%{srcname}/META
|
||||
%{_libdir}/ocaml/%{srcname}/*.cma
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmi
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmxs
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_libdir}/ocaml/%{srcname}/dune-package
|
||||
%{_libdir}/ocaml/%{srcname}/opam
|
||||
%ifarch %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/%{srcname}/*.a
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmx
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmt
|
||||
%{_libdir}/ocaml/%{srcname}/*.cmti
|
||||
%{_libdir}/ocaml/%{srcname}/*.mli
|
||||
|
||||
%files doc
|
||||
%doc _build/default/_doc/_html/
|
||||
%doc _build/default/_doc/_mlds/
|
||||
%doc _build/default/_doc/_odoc/
|
||||
%license LICENSE.md
|
||||
|
||||
%changelog
|
||||
* Thu May 7 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-1
|
||||
- Initial RPM
|
Loading…
Reference in New Issue