08fe85b
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
08fe85b
ExcludeArch: %{ix86}
08fe85b
b740357
%global debug_package %{nil}
843d4fe
843d4fe
Name:           ocaml-xmlrpc-light
c5f810d
Version:        0.6.1
ef906d6
Release:        73%{?dist}
843d4fe
Summary:        OCaml library for writing XML-RPC clients and servers
e62b010
License:        LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
b740357
e62b010
URL:            https://code.google.com/archive/p/xmlrpc-light/
e62b010
Source0:        https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/xmlrpc-light/xmlrpc-light-%{version}.tar.gz
b740357
95da32f
BuildRequires:  make
843d4fe
BuildRequires:  ocaml >= 3.10.0
e62b010
BuildRequires:  ocaml-findlib
843d4fe
BuildRequires:  ocaml-ocamldoc
843d4fe
BuildRequires:  ocaml-xml-light-devel
843d4fe
BuildRequires:  ocaml-ocamlnet-devel
843d4fe
BuildRequires:  ocaml-ocamlnet-nethttpd-devel
e62b010
BuildRequires:  ocaml-camlp-streams-devel
843d4fe
BuildRequires:  dos2unix
e62b010
BuildRequires:  python3
843d4fe
cde0ff3
# Fix the package to work with ocamlnet 3.x.
e7f3dce
Patch1:         debian_patches_0002-Compile-with-ocamlnet-3.3.5.patch
e7f3dce
cde0ff3
# Further fix the package to work with ocamlnet 4.x.
cde0ff3
Patch2:         xmlrpc-light-0.6.1-ocamlnet4.patch
cde0ff3
60d2ce0
# Safe-string patches for OCaml 4.06.
60d2ce0
Patch3:         xmlrpc-light-0.6.1-safe-string.patch
60d2ce0
e62b010
# Use camlp-streams for compatibility with OCaml 5.0
e62b010
Patch4:         xmlrpc-light-0.6.1-camlp-streams.patch
e62b010
843d4fe
843d4fe
%description
843d4fe
XmlRpc-Light is an XmlRpc library written in OCaml.
843d4fe
843d4fe
843d4fe
%package        devel
843d4fe
Summary:        Development files for %{name}
e62b010
Requires:       %{name}%{?_isa} = %{version}-%{release}
e62b010
Requires:       ocaml-xml-light-devel%{?_isa}
e62b010
Requires:       ocaml-ocamlnet-devel%{?_isa}
e62b010
Requires:       ocaml-ocamlnet-nethttpd-devel%{?_isa}
e62b010
Requires:       ocaml-camlp-streams-devel%{?_isa}
843d4fe
843d4fe
843d4fe
%description    devel
843d4fe
The %{name}-devel package contains libraries and signature files for
843d4fe
developing applications that use %{name}.
843d4fe
843d4fe
843d4fe
%prep
e62b010
%autosetup -n xmlrpc-light-%{version} -p1
843d4fe
dos2unix LICENSE
843d4fe
dos2unix README.txt
843d4fe
e62b010
%ifnarch %{ocaml_native_compiler}
e62b010
# Do not try to build or install the native library
e62b010
sed -i 's/ xmlrpc-light\.cmxa xmlrpc-light\.a//' Makefile
e62b010
sed -i '/libinstall:/s/\tall/ byte-code-library/' OCamlMakefile
e62b010
%endif
e7f3dce
843d4fe
843d4fe
%build
e62b010
%ifarch %{ocaml_native_compiler}
843d4fe
make
e62b010
%else
e62b010
make byte-code-library
e62b010
%endif
843d4fe
843d4fe
843d4fe
%install
843d4fe
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
e62b010
mkdir -p $OCAMLFIND_DESTDIR
e62b010
%make_install
e62b010
%ocaml_files
843d4fe
843d4fe
e62b010
%files -f .ofiles
e62b010
%license LICENSE
843d4fe
843d4fe
e62b010
%files devel -f .ofiles-devel
e62b010
%doc doc/xmlrpc-light/{html,latex} README.txt
e62b010
%license LICENSE
843d4fe
843d4fe
843d4fe
%changelog
ef906d6
* Wed Jul 12 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-73
ef906d6
- OCaml 5.0 rebuild for Fedora 39
ef906d6
e62b010
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 0.6.1-72
e62b010
- OCaml 5.0.0 rebuild
e62b010
- New project URLs
e62b010
- Convert License tag to SPDX
e62b010
- Add patch for OCaml 5.0 compatibility
e62b010
- Use new OCaml macros
e62b010
95da32f
* Thu Feb 23 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-71
95da32f
- Rebuild for updated ocaml-xml-light
95da32f
278e66c
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-70
278e66c
- Rebuild OCaml packages for F38
278e66c
fa642c0
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-69
fa642c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fa642c0
36a335a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-68
36a335a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
36a335a
742d8c5
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-67
742d8c5
- OCaml 4.14.0 rebuild
742d8c5
1b5f10e
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-66
1b5f10e
- OCaml 4.13.1 rebuild to remove package notes
1b5f10e
feaeaba
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-65
feaeaba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
feaeaba
34f9c7b
* Thu Dec 30 2021 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-64
34f9c7b
- Build and rebuild for new xml-light (RHBZ#2036236)
34f9c7b
0ea21a6
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-63
0ea21a6
- OCaml 4.13.1 build
0ea21a6
4c2c186
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-62
4c2c186
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4c2c186
44ad13e
* Mon Mar  1 17:05:32 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-61
44ad13e
- OCaml 4.12.0 build
44ad13e
43a9c34
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-60
43a9c34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
43a9c34
3874cc3
* Mon Jan 18 2021 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-59
3874cc3
- Bump and rebuild against new ocaml-ocamlnet (RHBZ#1917354).
3874cc3
b45695e
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-58
b45695e
- OCaml 4.11.1 rebuild
b45695e
838c64e
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-57
838c64e
- OCaml 4.11.0 rebuild
838c64e
313f82e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-56
313f82e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
313f82e
4337aad
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-55
4337aad
- OCaml 4.11.0+dev2-2020-04-22 rebuild
4337aad
0e959f3
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-54
0e959f3
- OCaml 4.11.0 pre-release attempt 2
0e959f3
b2117db
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-53
b2117db
- OCaml 4.11.0 pre-release
b2117db
b3309fd
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-52
b3309fd
- Update all OCaml dependencies for RPM 4.16.
b3309fd
68d6ff1
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-51
68d6ff1
- OCaml 4.10.0 final.
68d6ff1
2907fd5
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-50
2907fd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2907fd5
e00bc7c
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-49
e00bc7c
- OCaml 4.10.0+beta1 rebuild.
e00bc7c
9977a7c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-48
9977a7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9977a7c
e043fc5
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-47
e043fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e043fc5
0500d48
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-46
0500d48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0500d48
21425a5
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-45
21425a5
- OCaml 4.07.0 (final) rebuild.
21425a5
8c57451
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-44
8c57451
- OCaml 4.07.0-rc1 rebuild.
8c57451
d07d4cb
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-43
d07d4cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d07d4cb
092bc2e
* Wed Dec 13 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-42
092bc2e
- Rebuild against new ocamlnet.
092bc2e
60d2ce0
* Wed Nov 22 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-41
cdeecb4
- OCaml 4.06.0 rebuild.
60d2ce0
- Fix safe-string issues.
cdeecb4
d5aea43
* Wed Aug 09 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-40
d5aea43
- OCaml 4.05.0 rebuild.
d5aea43
2a45315
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-39
2a45315
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2a45315
bb0c1b2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-38
bb0c1b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bb0c1b2
386ea48
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-37
386ea48
- OCaml 4.04.2 rebuild.
386ea48
567e77e
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-36
567e77e
- OCaml 4.04.1 rebuild.
567e77e
25fb075
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-35
25fb075
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
25fb075
378cb94
* Wed Nov 09 2016 Dan HorĂ¡k <dan@danny.cz> - 0.6.1-34
378cb94
- remove ExcludeArch
378cb94
9597abd
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-33
9597abd
- Rebuild for OCaml 4.04.0.
9597abd
57ac1bd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-32
57ac1bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
57ac1bd
98757f1
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-31
98757f1
- OCaml 4.02.3 rebuild.
98757f1
fccbdc7
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-30
fccbdc7
- Revert previous work on enabling bytecode, as it breaks documentation.
fccbdc7
3848790
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-28
3848790
- ocaml-4.02.2 final rebuild.
3848790
b7f29e2
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-27
b7f29e2
- ocaml-4.02.2 rebuild.
b7f29e2
395487d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-26
395487d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
395487d
512e399
* Sat May 16 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-25
512e399
- Bump and rebuild again for ocamlnet update.
512e399
a22d390
* Wed Feb 18 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-24
a22d390
- Bump release and rebuild.
a22d390
cde0ff3
* Wed Feb 18 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-23
cde0ff3
- Further patching to work with ocamlnet 4.0.
cde0ff3
a996ae6
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-22
a996ae6
- ocaml-4.02.1 rebuild.
a996ae6
18db911
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-21
18db911
- ocaml-4.02.0 final rebuild.
18db911
214f41b
* Sun Aug 24 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-20
214f41b
- ocaml-4.02.0+rc1 rebuild.
214f41b
ec4e3b3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-19
ec4e3b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ec4e3b3
d711a34
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-18
d711a34
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
d711a34
40b6554
* Wed Jul 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-17
40b6554
- Bump release and rebuild.
40b6554
fc6f9bc
* Wed Jul 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-16
fc6f9bc
- OCaml 4.02.0 beta rebuild.
fc6f9bc
f99e12e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-15
f99e12e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f99e12e
b740357
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-14
b740357
- OCaml 4.01.0 rebuild.
b740357
- Modernize the spec file.
b740357
5285fcb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-13
5285fcb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5285fcb
df9ed50
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-12
df9ed50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
df9ed50
749769c
* Sun Dec 02 2012 Bruno Wolff III <bruno@wolff.to> - 0.6.1-11
749769c
- Rebuild for ocaml 4.0.1.
749769c
ceaec74
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-10
ceaec74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ceaec74
f467b7d
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-9
f467b7d
- Rebuild for OCaml 4.00.0.
f467b7d
94471e3
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-8
94471e3
- Rebuild for OCaml 3.12.1.
94471e3
e7f3dce
* Wed Sep 21 2011 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-6
e7f3dce
- Rebuilt for updated ocamlnet.
e7f3dce
- Apply patch from Debian to fix builds against ocamlnet 3
e7f3dce
  (thanks Stephane Glondu).
e7f3dce
95d8521
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-6
95d8521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95d8521
2749fd9
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-5
2749fd9
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
2749fd9
1283e90
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-4
1283e90
- Rebuild for OCaml 3.11.2.
1283e90
31a0895
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
31a0895
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
31a0895
947a12c
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-2
947a12c
- Rebuild for OCaml 3.11.1
947a12c
ce21dd2
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
ce21dd2
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
ce21dd2
  (added sparc64 per request from the sparc maintainer)
ce21dd2
c5f810d
* Tue Mar 10 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1-1
c5f810d
- New upstream version 0.6.1.
c5f810d
8ef8939
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
8ef8939
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8ef8939
6d9aa3e
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-5
6d9aa3e
- Rebuild for OCaml 3.11.0+rc1.
6d9aa3e
678f83f
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-4
678f83f
- Rebuild for OCaml 3.11.0
678f83f
7d7abe2
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-3
7d7abe2
- Rebuild for OCaml 3.10.2
7d7abe2
843d4fe
* Mon Mar  3 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-2
843d4fe
- Added missing BR ocaml-ocamlnet-nethttpd-devel.
843d4fe
- Test build in mock.
843d4fe
- Removed ExcludeArch: ppc64.
843d4fe
843d4fe
* Sat Feb 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-1
843d4fe
- Initial RPM release.