28521bd
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
28521bd
ExcludeArch: %{ix86}
28521bd
50c2628
Name:           ocaml-bin-prot
b0795b3
Version:        0.16.0
39ec9fe
Epoch:          1
2a2f164
Release:        7%{?dist}
612246a
Summary:        Read and write OCaml values in a type-safe binary protocol
612246a
d247e61
# The project as a whole is MIT.
d247e61
# Code in the src subdirectory is BSD-3-Clause.
a8b7301
License:        MIT AND BSD-3-Clause
50c2628
URL:            https://github.com/janestreet/bin_prot
50c2628
Source0:        %{url}/archive/v%{version}/bin_prot-%{version}.tar.gz
39ec9fe
b0795b3
BuildRequires:  ocaml >= 4.14.0
b0795b3
BuildRequires:  ocaml-base-devel >= 0.16
07d77ef
BuildRequires:  ocaml-dune >= 2.0.0
b0795b3
BuildRequires:  ocaml-ppx-compare-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-custom-printf-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-fields-conv-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-optcomp-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-sexp-conv-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-stable-witness-devel >= 0.16
b0795b3
BuildRequires:  ocaml-ppx-variants-conv-devel >= 0.16
612246a
612246a
%description
612246a
This library contains functionality for reading and writing OCaml
612246a
values in a type-safe binary protocol. These functions are extremely
612246a
efficient and provide users with a convenient and safe way of
612246a
performing I/O on any extensionally defined data type. This means that
612246a
functions, objects, and values whose type is bound through a
612246a
polymorphic record field are not supported, but everything else is.
612246a
612246a
As of now, there is no support for cyclic or shared values. Cyclic
612246a
values will lead to non-termination whereas shared values, besides
612246a
requiring significantly more space when encoded, may lead to a
612246a
substantial increase in memory footprint when they are read back in.
612246a
612246a
%package        devel
612246a
Summary:        Development files for %{name}
844fb35
Requires:       %{name} = 1:%{version}-%{release}
07d77ef
Requires:       ocaml-base-devel%{?_isa}
50c2628
Requires:       ocaml-fieldslib-devel%{?_isa}
07d77ef
Requires:       ocaml-ppx-compare-devel%{?_isa}
07d77ef
Requires:       ocaml-ppx-sexp-conv-devel%{?_isa}
50c2628
Requires:       ocaml-sexplib0-devel%{?_isa}
b0795b3
Requires:       ocaml-ppx-stable-witness-devel%{?_isa}
50c2628
Requires:       ocaml-variantslib-devel%{?_isa}
612246a
612246a
%description    devel
39ec9fe
The %{name}-devel package contains libraries and signature files
39ec9fe
for developing applications that use %{name}.
612246a
612246a
%prep
50c2628
%autosetup -n bin_prot-%{version}
6d78d45
6d78d45
%build
50c2628
%dune_build
612246a
612246a
%install
50c2628
%dune_install
612246a
ba364f7
%check
50c2628
%dune_check
ba364f7
50c2628
%files -f .ofiles
39ec9fe
%doc CHANGES.md README.md
39ec9fe
%license COPYRIGHT.txt LICENSE.md LICENSE-Tywith.txt THIRD-PARTY.txt
50c2628
50c2628
%files devel -f .ofiles-devel
612246a
612246a
%changelog
2a2f164
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.16.0-7
2a2f164
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2a2f164
48fa139
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.16.0-6
48fa139
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
48fa139
51a849f
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.16.0-5
51a849f
- OCaml 5.1.1 rebuild for Fedora 40
51a849f
83f6af1
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.16.0-4
83f6af1
- OCaml 5.1 rebuild for Fedora 40
83f6af1
dbfbfeb
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.16.0-3
dbfbfeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
dbfbfeb
d7511b6
* Wed Jul 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.16.0-2
d7511b6
- OCaml 5.0 rebuild for Fedora 39
d7511b6
b0795b3
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 1:0.16.0-1
b0795b3
- Version 0.16.0
b0795b3
d9e3d89
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.15.0-11
d9e3d89
- Bump release and rebuild
d9e3d89
7afe6e2
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1:0.15.0-10
7afe6e2
- Rebuild OCaml packages for F38
7afe6e2
21275cd
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-9
21275cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
21275cd
6c54498
* Tue Nov  1 2022 Jerry James <loganjerry@gmail.com> - 1:0.15.0-8
6c54498
- Rebuild for ocaml-ppxlib 0.28.0
6c54498
d247e61
* Thu Aug 18 2022 Jerry James <loganjerry@gmail.com> - 1:0.15.0-7
d247e61
- Rebuild for ocaml-ppxlib 0.27.0
d247e61
- Convert License tag to SPDX
d247e61
7858ad9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-6
7858ad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7858ad9
50c2628
* Wed Jul 20 2022 Jerry James <loganjerry@gmail.com> - 1:0.15.0-5
50c2628
- Use new OCaml macros
50c2628
f736fb3
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 1:0.15.0-5
f736fb3
- OCaml 4.14.0 rebuild
f736fb3
89125e7
* Mon Feb 28 2022 Jerry James <loganjerry@gmail.com> - 1:0.15.0-4
89125e7
- Version 0.15.0 rerelease
89125e7
1145d15
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1:0.15.0-3
1145d15
- OCaml 4.13.1 rebuild to remove package notes
1145d15
a960612
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-2
a960612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a960612
ba364f7
* Mon Dec 27 2021 Jerry James <loganjerry@gmail.com> - 1:0.15.0-1
ba364f7
- Version 0.15.0
ba364f7
03f0466
* Tue Nov 30 2021 Jerry James <loganjerry@gmail.com> - 1:0.14.0-12
03f0466
- Rebuild for ocaml-sexplib0 0.15.0
03f0466
6f63944
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 1:0.14.0-11
6f63944
- OCaml 4.13.1 build
6f63944
f41973d
* Wed Sep  1 2021 Jerry James <loganjerry@gmail.com> - 1:0.14.0-10
f41973d
- Rebuild for ocaml-ppxlib 0.23.0
f41973d
fef6ecb
* Tue Aug 17 2021 Jerry James <loganjerry@gmail.com> - 1:0.14.0-9
fef6ecb
- Rebuild for ocaml-ppx-optcomp 0.14.3
fef6ecb
9529b21
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.14.0-8
9529b21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9529b21
1201947
* Tue Mar  2 10:50:30 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1:0.14.0-7
1201947
- OCaml 4.12.0 build
1201947
9f37d48
* Sat Feb 20 2021 Jerry James <loganjerry@gmail.com> - 1:0.14.0-6
9f37d48
- Rebuild for ocaml-base 0.14.1
9f37d48
4560901
* Tue Feb  2 2021 Richard W.M. Jones <rjones@redhat.com> - 1:0.14.0-5
4560901
- Bump and rebuild for updated ocaml Dynlink dependency.
4560901
d08ba7e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.14.0-4
d08ba7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d08ba7e
7ed43d2
* Wed Sep 02 2020 Richard W.M. Jones <rjones@redhat.com> - 1:0.14.0-3
7ed43d2
- OCaml 4.11.1 rebuild
7ed43d2
7e09b73
* Mon Aug 24 2020 Richard W.M. Jones <rjones@redhat.com> - 1:0.14.0-2
7e09b73
- OCaml 4.11.0 rebuild
7e09b73
07d77ef
* Wed Aug 19 2020 Jerry James <loganjerry@gmail.com> - 1:0.14.0-1
07d77ef
- Version 0.14.0
07d77ef
e3b5464
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.13.0-5
e3b5464
- Second attempt - Rebuilt for
e3b5464
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e3b5464
9844c75
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.13.0-4
9844c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9844c75
d1d73c8
* Thu Jul 23 2020 Richard W.M. Jones <rjones@redhat.com> - 1:0.13.0-3
d1d73c8
- Rebuild to resolve build order symbol problems.
d1d73c8
844fb35
* Wed Jun 24 2020 Jerry James <loganjerry@gmail.com> - 1:0.13.0-2
844fb35
- Fix the -devel subpackage dependency on the main package
844fb35
39ec9fe
* Mon Jun 15 2020 Jerry James <loganjerry@gmail.com> - 1:0.13.0-1
39ec9fe
- Version 0.13.0
39ec9fe
- Add Epoch to deal with new version numbering scheme
39ec9fe
- License change to MIT and BSD
39ec9fe
- Build with dune
39ec9fe
2314199
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-36
2314199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2314199
76babfc
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-35
76babfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
76babfc
6501414
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-34
6501414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6501414
6c1b1f8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-33
6c1b1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6c1b1f8
9fa15e7
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-32
9fa15e7
- OCaml 4.07.0 (final) rebuild.
9fa15e7
3023b49
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-31
3023b49
- OCaml 4.07.0-rc1 rebuild.
3023b49
0793261
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-30
0793261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0793261
1c10a9c
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-29
1c10a9c
- OCaml 4.06.0 rebuild.
1c10a9c
449d8c1
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-28
449d8c1
- OCaml 4.05.0 rebuild.
449d8c1
dd2e42f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-27
dd2e42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dd2e42f
cdd9f51
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-26
cdd9f51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cdd9f51
b7bd0a9
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-25
b7bd0a9
- OCaml 4.04.2 rebuild.
b7bd0a9
754d132
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-24
754d132
- OCaml 4.04.1 rebuild.
754d132
41be116
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-23
41be116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
41be116
b2fa69e
* Tue Nov 08 2016 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-22
b2fa69e
- Rebuild for OCaml 4.04.0.
b2fa69e
2b43b9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-21
2b43b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b43b9c
b4fed45
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-20
b4fed45
- OCaml 4.02.3 rebuild.
b4fed45
45e27ba
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-19
45e27ba
- ocaml-4.02.2 final rebuild.
45e27ba
d6100ab
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-18
d6100ab
- ocaml-4.02.2 rebuild.
d6100ab
e6d7d15
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-17
e6d7d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e6d7d15
5901fbb
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-16
5901fbb
- ocaml-4.02.1 rebuild.
5901fbb
Jerry James e3038ba
* Thu Sep 25 2014 Jerry James <loganjerry@gmail.com> - 2.0.9-15
Jerry James e3038ba
- Add -fix-ints patch for ocaml 4.02
Jerry James e3038ba
- Use native, rather than emulated endian-specific, 64-bit arithmetic
Jerry James e3038ba
- Fix license handling
Jerry James e3038ba
cbd6dc3
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-14
cbd6dc3
- Bump release and rebuild.
cbd6dc3
54c191d
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-13
54c191d
- ocaml-4.02.0 final rebuild.
54c191d
d191002
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-12
d191002
- ocaml-4.02.0+rc1 rebuild.
d191002
c15d369
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-11
c15d369
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c15d369
184280f
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-10
184280f
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
184280f
f517acc
* Sat Jul 19 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-9
f517acc
- OCaml 4.02.0 beta rebuild.
f517acc
6d78d45
* Wed Jun 18 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-8
6d78d45
- Remove -Werror from compiler flags.  Fixes FTBFS (RHBZ#1106613).
6d78d45
- Move configure into build section (instead of prep).
6d78d45
- Use global instead of define.
6d78d45
ac69898
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-7
ac69898
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ac69898
aa462f1
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-6
aa462f1
- Rebuild for OCaml 4.01.0.
aa462f1
- Enable debuginfo.
aa462f1
- Modernize spec file.
aa462f1
354bd64
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-5
354bd64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
354bd64
7093c74
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-4
7093c74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7093c74
b4a1cc9
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-3
b4a1cc9
- Rebuild for OCaml 4.00.1.
b4a1cc9
760ea40
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-2
760ea40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
760ea40
9b526a9
* Mon Jul  2 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-1
9b526a9
- New upstream version 2.0.9.
9b526a9
- Recompile for OCaml 4.00.0.
9b526a9
2ee766f
* Thu Jan 12 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-1
2ee766f
- New upstream version 2.0.7.
2ee766f
- Rebuild for OCaml 3.12.1.
2ee766f
Michael Ekstrand e0ef162
* Wed Sep 28 2011 Michael Ekstrand <michael@elehack.net> - 2.0.6-1
Michael Ekstrand e0ef162
- New upstream version from forge.ocamlcore.org (#741484)
Michael Ekstrand e0ef162
3753802
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.24-2
3753802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3753802
e918761
* Thu Jan  6 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.24-1
e918761
- New upstream version 1.2.24.
e918761
- Fix upstream URL.
e918761
- Rebuild for OCaml 3.12.0.
e918761
3ef8043
* Mon Jan 11 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.21-1
3ef8043
- New upstream version 1.2.21.
3ef8043
- Change %%define to %%global.
3ef8043
- Use upstream RPM 4.8 OCaml dependency generator.
3ef8043
612246a
* Mon Nov  9 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.20-2
612246a
- The final license of the code is LGPLv2+ with the OCaml linking
612246a
  exception.  It was derived from earlier BSD code.
612246a
- Don't duplicate the license files across base and -devel packages.
612246a
- Add note to spec about inclusion of *.ml file in -devel package.
612246a
612246a
* Mon Oct 12 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.20-1
612246a
- New upstream version 1.2.20.
612246a
612246a
* Sat Sep  5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.18-1
612246a
- New upstream version 1.2.18.
612246a
612246a
* Fri May 16 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-3
612246a
- Force signed chars when compiling, as per comment from upstream author.
612246a
- Remove the part in the description which says this is only
612246a
  supported on little endian architectures.
612246a
612246a
* Mon May 12 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-2
612246a
- Remove ExclusiveArch, but add a Fedora README file warning about
612246a
  shortcomings on non-x86 architectures.
612246a
- Added missing dependency ocaml-type-conv.
612246a
- Move *.ml file to devel package.
612246a
612246a
* Sat May  3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-1
612246a
- Initial RPM release.