2020-06-15 19:21:49 +00:00
|
|
|
%global srcname bin-prot
|
|
|
|
%global upname bin_prot
|
2010-01-11 12:06:04 +00:00
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
Name: ocaml-%{srcname}
|
2020-08-19 22:56:32 +00:00
|
|
|
Version: 0.14.0
|
2020-06-15 19:21:49 +00:00
|
|
|
Epoch: 1
|
2020-08-19 22:56:32 +00:00
|
|
|
Release: 1%{?dist}
|
2010-01-11 12:06:04 +00:00
|
|
|
Summary: Read and write OCaml values in a type-safe binary protocol
|
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
# The project as a whole is MIT, but code in the src subdirectory is BSD.
|
|
|
|
License: MIT and BSD
|
|
|
|
URL: https://github.com/janestreet/%{upname}
|
|
|
|
Source0: %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ocaml >= 4.04.2
|
2020-08-21 15:13:55 +00:00
|
|
|
BuildRequires: ocaml-base-devel >= 0.14
|
2020-08-19 22:56:32 +00:00
|
|
|
BuildRequires: ocaml-dune >= 2.0.0
|
2020-06-15 19:21:49 +00:00
|
|
|
BuildRequires: ocaml-odoc
|
2020-08-21 15:13:55 +00:00
|
|
|
BuildRequires: ocaml-ppx-compare-devel >= 0.14
|
|
|
|
BuildRequires: ocaml-ppx-custom-printf-devel >= 0.14
|
|
|
|
BuildRequires: ocaml-ppx-fields-conv-devel >= 0.14
|
|
|
|
BuildRequires: ocaml-ppx-optcomp-devel >= 0.14
|
|
|
|
BuildRequires: ocaml-ppx-sexp-conv-devel >= 0.14
|
|
|
|
BuildRequires: ocaml-ppx-variants-conv-devel >= 0.14
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library contains functionality for reading and writing OCaml
|
|
|
|
values in a type-safe binary protocol. These functions are extremely
|
|
|
|
efficient and provide users with a convenient and safe way of
|
|
|
|
performing I/O on any extensionally defined data type. This means that
|
|
|
|
functions, objects, and values whose type is bound through a
|
|
|
|
polymorphic record field are not supported, but everything else is.
|
|
|
|
|
|
|
|
As of now, there is no support for cyclic or shared values. Cyclic
|
|
|
|
values will lead to non-termination whereas shared values, besides
|
|
|
|
requiring significantly more space when encoded, may lead to a
|
|
|
|
substantial increase in memory footprint when they are read back in.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2020-06-24 14:32:45 +00:00
|
|
|
Requires: %{name} = 1:%{version}-%{release}
|
2020-08-19 22:56:32 +00:00
|
|
|
Requires: ocaml-base-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-compare-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-custom-printf-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-fields-conv-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-optcomp-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-sexp-conv-devel%{?_isa}
|
|
|
|
Requires: ocaml-ppx-variants-conv-devel%{?_isa}
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%description devel
|
2020-06-15 19:21:49 +00:00
|
|
|
The %{name}-devel package contains libraries and signature files
|
|
|
|
for developing applications that use %{name}.
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%prep
|
2020-06-15 19:21:49 +00:00
|
|
|
%autosetup -n %{upname}-%{version}
|
2014-06-18 14:12:22 +00:00
|
|
|
|
|
|
|
%build
|
2020-06-15 19:21:49 +00:00
|
|
|
dune build %{?_smp_mflags}
|
2010-01-11 12:06:04 +00:00
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
# Relink with RPM_LD_FLAGS.
|
|
|
|
pushd _build/default/src
|
|
|
|
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" -o bin_prot_stubs blit_stubs.o
|
|
|
|
popd
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%install
|
2020-06-15 19:21:49 +00:00
|
|
|
dune install --destdir=%{buildroot}
|
2010-01-11 12:06:04 +00:00
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
# We install the documentation with the doc macro
|
|
|
|
rm -fr %{buildroot}%{_prefix}/doc
|
2010-01-11 12:06:04 +00:00
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
# Add missing executable bits
|
|
|
|
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+
|
|
|
|
%endif
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%files
|
2020-06-15 19:21:49 +00:00
|
|
|
%doc CHANGES.md README.md
|
|
|
|
%license COPYRIGHT.txt LICENSE.md LICENSE-Tywith.txt THIRD-PARTY.txt
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/shape/
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/xen/
|
|
|
|
%{_libdir}/ocaml/%{upname}/META
|
|
|
|
%{_libdir}/ocaml/%{upname}/runtime.js
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.cma
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.cmi
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cma
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmi
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/%{upname}/%{upname}*.cmxs
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmxs
|
2010-01-11 12:06:04 +00:00
|
|
|
%endif
|
2020-06-15 19:21:49 +00:00
|
|
|
%{_libdir}/ocaml/stublibs/dllbin_prot_stubs.so
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%files devel
|
2020-06-15 19:21:49 +00:00
|
|
|
%{_libdir}/ocaml/%{upname}/dune-package
|
|
|
|
%{_libdir}/ocaml/%{upname}/opam
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.a
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.a
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmxa
|
2010-01-11 12:06:04 +00:00
|
|
|
%endif
|
2020-06-15 19:21:49 +00:00
|
|
|
%{_libdir}/ocaml/%{upname}/*.cmt
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.cmti
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.ml
|
|
|
|
%{_libdir}/ocaml/%{upname}/*.mli
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmt
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmti
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.ml
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.mli
|
2010-01-11 12:06:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-08-19 22:56:32 +00:00
|
|
|
* Wed Aug 19 2020 Jerry James <loganjerry@gmail.com> - 1:0.14.0-1
|
|
|
|
- Version 0.14.0
|
|
|
|
|
2020-08-01 06:35:49 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.13.0-5
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 12:05:45 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.13.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-23 14:33:47 +00:00
|
|
|
* Thu Jul 23 2020 Richard W.M. Jones <rjones@redhat.com> - 1:0.13.0-3
|
|
|
|
- Rebuild to resolve build order symbol problems.
|
|
|
|
|
2020-06-24 14:32:45 +00:00
|
|
|
* Wed Jun 24 2020 Jerry James <loganjerry@gmail.com> - 1:0.13.0-2
|
|
|
|
- Fix the -devel subpackage dependency on the main package
|
|
|
|
|
2020-06-15 19:21:49 +00:00
|
|
|
* Mon Jun 15 2020 Jerry James <loganjerry@gmail.com> - 1:0.13.0-1
|
|
|
|
- Version 0.13.0
|
|
|
|
- Add Epoch to deal with new version numbering scheme
|
|
|
|
- License change to MIT and BSD
|
|
|
|
- Build with dune
|
|
|
|
|
2020-01-29 19:30:04 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-36
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 22:48:17 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 16:45:53 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-34
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 14:40:38 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-33
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-11 17:48:15 +00:00
|
|
|
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-32
|
|
|
|
- OCaml 4.07.0 (final) rebuild.
|
|
|
|
|
2018-06-20 19:00:10 +00:00
|
|
|
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-31
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
2018-02-08 08:45:19 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-30
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-17 23:36:30 +00:00
|
|
|
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-29
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
2017-08-08 19:26:29 +00:00
|
|
|
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-28
|
|
|
|
- OCaml 4.05.0 rebuild.
|
|
|
|
|
2017-08-03 04:13:03 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-27
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:25:44 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-26
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-27 11:38:05 +00:00
|
|
|
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-25
|
|
|
|
- OCaml 4.04.2 rebuild.
|
|
|
|
|
2017-05-13 10:55:56 +00:00
|
|
|
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-24
|
|
|
|
- OCaml 4.04.1 rebuild.
|
|
|
|
|
2017-02-11 00:28:48 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-08 10:23:18 +00:00
|
|
|
* Tue Nov 08 2016 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-22
|
|
|
|
- Rebuild for OCaml 4.04.0.
|
|
|
|
|
2016-02-04 11:04:21 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-28 21:36:11 +00:00
|
|
|
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-20
|
|
|
|
- OCaml 4.02.3 rebuild.
|
|
|
|
|
2015-06-24 21:18:41 +00:00
|
|
|
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-19
|
|
|
|
- ocaml-4.02.2 final rebuild.
|
|
|
|
|
2015-06-18 12:22:42 +00:00
|
|
|
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-18
|
|
|
|
- ocaml-4.02.2 rebuild.
|
|
|
|
|
2015-06-17 23:32:48 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-17 14:15:46 +00:00
|
|
|
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-16
|
|
|
|
- ocaml-4.02.1 rebuild.
|
|
|
|
|
2014-09-25 23:11:41 +00:00
|
|
|
* Thu Sep 25 2014 Jerry James <loganjerry@gmail.com> - 2.0.9-15
|
|
|
|
- Add -fix-ints patch for ocaml 4.02
|
|
|
|
- Use native, rather than emulated endian-specific, 64-bit arithmetic
|
|
|
|
- Fix license handling
|
|
|
|
|
2014-08-31 21:44:57 +00:00
|
|
|
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-14
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2014-08-31 11:08:57 +00:00
|
|
|
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-13
|
|
|
|
- ocaml-4.02.0 final rebuild.
|
|
|
|
|
2014-08-23 21:30:56 +00:00
|
|
|
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-12
|
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
2014-08-17 12:42:30 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-02 12:36:59 +00:00
|
|
|
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-10
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
2014-07-19 14:31:51 +00:00
|
|
|
* Sat Jul 19 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-9
|
|
|
|
- OCaml 4.02.0 beta rebuild.
|
|
|
|
|
2014-06-18 14:12:22 +00:00
|
|
|
* Wed Jun 18 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-8
|
|
|
|
- Remove -Werror from compiler flags. Fixes FTBFS (RHBZ#1106613).
|
|
|
|
- Move configure into build section (instead of prep).
|
|
|
|
- Use global instead of define.
|
|
|
|
|
2014-06-07 15:30:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-09-14 10:33:45 +00:00
|
|
|
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-6
|
|
|
|
- Rebuild for OCaml 4.01.0.
|
|
|
|
- Enable debuginfo.
|
|
|
|
- Modernize spec file.
|
|
|
|
|
2013-08-03 14:46:59 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 08:54:31 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-30 13:36:16 +00:00
|
|
|
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-3
|
|
|
|
- Rebuild for OCaml 4.00.1.
|
|
|
|
|
2012-07-20 05:49:51 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-02 13:34:46 +00:00
|
|
|
* Mon Jul 2 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-1
|
|
|
|
- New upstream version 2.0.9.
|
|
|
|
- Recompile for OCaml 4.00.0.
|
|
|
|
|
2012-01-12 13:47:08 +00:00
|
|
|
* Thu Jan 12 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-1
|
|
|
|
- New upstream version 2.0.7.
|
|
|
|
- Rebuild for OCaml 3.12.1.
|
|
|
|
|
2011-09-29 00:55:48 +00:00
|
|
|
* Wed Sep 28 2011 Michael Ekstrand <michael@elehack.net> - 2.0.6-1
|
|
|
|
- New upstream version from forge.ocamlcore.org (#741484)
|
|
|
|
|
2011-02-09 01:36:50 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.24-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-06 17:28:35 +00:00
|
|
|
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.24-1
|
|
|
|
- New upstream version 1.2.24.
|
|
|
|
- Fix upstream URL.
|
|
|
|
- Rebuild for OCaml 3.12.0.
|
|
|
|
|
2010-01-11 12:23:56 +00:00
|
|
|
* Mon Jan 11 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.21-1
|
|
|
|
- New upstream version 1.2.21.
|
|
|
|
- Change %%define to %%global.
|
|
|
|
- Use upstream RPM 4.8 OCaml dependency generator.
|
|
|
|
|
2010-01-11 12:06:04 +00:00
|
|
|
* Mon Nov 9 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.20-2
|
|
|
|
- The final license of the code is LGPLv2+ with the OCaml linking
|
|
|
|
exception. It was derived from earlier BSD code.
|
|
|
|
- Don't duplicate the license files across base and -devel packages.
|
|
|
|
- Add note to spec about inclusion of *.ml file in -devel package.
|
|
|
|
|
|
|
|
* Mon Oct 12 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.20-1
|
|
|
|
- New upstream version 1.2.20.
|
|
|
|
|
|
|
|
* Sat Sep 5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.18-1
|
|
|
|
- New upstream version 1.2.18.
|
|
|
|
|
|
|
|
* Fri May 16 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-3
|
|
|
|
- Force signed chars when compiling, as per comment from upstream author.
|
|
|
|
- Remove the part in the description which says this is only
|
|
|
|
supported on little endian architectures.
|
|
|
|
|
|
|
|
* Mon May 12 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-2
|
|
|
|
- Remove ExclusiveArch, but add a Fedora README file warning about
|
|
|
|
shortcomings on non-x86 architectures.
|
|
|
|
- Added missing dependency ocaml-type-conv.
|
|
|
|
- Move *.ml file to devel package.
|
|
|
|
|
|
|
|
* Sat May 3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-1
|
|
|
|
- Initial RPM release.
|