b003e03
Name:           ocaml-mmap
b003e03
Version:        1.1.0
5d85692
Release:        14%{?dist}.1
b003e03
Summary:        File mapping functionality
b003e03
b003e03
%global libname mmap
b003e03
b003e03
# License is LGPL 2.1 with standard OCaml exceptions
b003e03
License:        LGPLv2+ with exceptions
b003e03
URL:            https://github.com/mirage/mmap
b003e03
Source0:        https://github.com/mirage/mmap/archive/v%{version}/mmap-v%{version}.tar.gz
b003e03
b003e03
BuildRequires:  ocaml
b003e03
BuildRequires:  ocaml-findlib
b003e03
b003e03
BuildRequires:  ocaml-dune
b003e03
b003e03
%description
b003e03
This project provides a Mmap.map_file functions for mapping files
b003e03
in memory. This function is the same as the Unix.map_file function
b003e03
added in OCaml >= 4.06.
b003e03
b003e03
%package        devel
b003e03
Summary:        Development files for %{name}
b003e03
Requires:       %{name}%{?isa} = %{version}-%{release}
b003e03
b003e03
%description    devel
b003e03
The %{name}-devel package contains libraries and
b003e03
signature files for developing applications that use %{name}.
b003e03
b003e03
%prep
b003e03
%autosetup -n %{libname}-%{version}
b003e03
b003e03
%build
b003e03
# It might be nice to have a %jbuilder macro that just does this.
b003e03
dune build -p %{libname} %{?_smp_mflags}
b003e03
b003e03
%install
b003e03
mkdir -p %{buildroot}%{_libdir}/ocaml/%{libname}/
b003e03
cp -aLr _build/install/default/lib/%{libname}/* %{buildroot}%{_libdir}/ocaml/%{libname}/
b003e03
b003e03
%check
b003e03
dune runtest
b003e03
b003e03
%files
b003e03
%license LICENSE
b003e03
%doc README.md CHANGES.md
b003e03
%{_libdir}/ocaml/%{libname}
b003e03
%ifarch %{ocaml_native_compiler}
b003e03
%exclude %{_libdir}/ocaml/%{libname}/*.a
b003e03
%exclude %{_libdir}/ocaml/%{libname}/*.cmxa
b003e03
%exclude %{_libdir}/ocaml/%{libname}/*.cmx
b003e03
%endif
b003e03
%exclude %{_libdir}/ocaml/%{libname}/*.mli
b003e03
b003e03
b003e03
%files devel
b003e03
#license LICENSE
b003e03
%ifarch %{ocaml_native_compiler}
b003e03
%{_libdir}/ocaml/%{libname}/*.a
b003e03
%{_libdir}/ocaml/%{libname}/*.cmxa
b003e03
%{_libdir}/ocaml/%{libname}/*.cmx
b003e03
%endif
b003e03
%{_libdir}/ocaml/%{libname}/*.mli
b003e03
b003e03
b003e03
%changelog
5d85692
* Wed Sep 02 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-14.1
5d85692
- Bump release and rebuild.
5d85692
4177375
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-14
4177375
- OCaml 4.11.1 rebuild
4177375
858a2c0
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-13
858a2c0
- OCaml 4.11.0 rebuild
858a2c0
9786a09
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12
9786a09
- Second attempt - Rebuilt for
9786a09
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9786a09
c51b315
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11
c51b315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c51b315
c591712
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-10
c591712
- OCaml 4.11.0+dev2-2020-04-22 rebuild
c591712
65ee281
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-9
65ee281
- OCaml 4.11.0 pre-release attempt 2
65ee281
9f7ff26
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-8
9f7ff26
- Update all OCaml dependencies for RPM 4.16.
9f7ff26
0fed155
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-7
0fed155
- OCaml 4.10.0 final.
0fed155
89820cb
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
89820cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
89820cb
978e86d
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-5
978e86d
- OCaml 4.10.0+beta1 rebuild.
978e86d
a84da0c
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-4
a84da0c
- OCaml 4.09.0 (final) rebuild.
a84da0c
bcc86a0
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-3
bcc86a0
- OCaml 4.08.1 (final) rebuild.
bcc86a0
b003e03
* Tue Aug 06 2019 Ben Rosser <rosser.bjr@gmail.com> - 1.1.0-2
b003e03
- Switched to github tag archive with tests, license file.
b003e03
- Added missing isa to devel package requirement.
b003e03
- Added "dune runtest" to check section.
b003e03
- Cleaned up files paths to use ocaml/libname rather than ocaml/*.
b003e03
b003e03
* Tue Jul 30 2019 Ben Rosser <rosser.bjr@gmail.com> - 1.1.0-1
b003e03
- Initial package.