2014-02-11 17:03:14 +00:00
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%if !%{opt}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: ocaml-xmlm
|
|
|
|
Version: 1.2.0
|
2021-03-01 16:57:45 +00:00
|
|
|
Release: 51%{?dist}
|
2014-02-11 17:03:14 +00:00
|
|
|
Summary: A streaming XML codec
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: http://erratique.ch/software/xmlm
|
|
|
|
Source0: http://erratique.ch/software/xmlm/releases/xmlm-%{version}.tbz
|
2017-11-22 16:00:23 +00:00
|
|
|
|
2014-02-11 17:03:14 +00:00
|
|
|
# Example XML files for testing
|
|
|
|
Source1: test-valid.xml
|
|
|
|
Source2: test-invalid.xml
|
|
|
|
|
2017-11-22 16:00:23 +00:00
|
|
|
# Ensure source files are included in generated debuginfo subpackage
|
|
|
|
Patch0: xmlm-1.2.0-debug.patch
|
|
|
|
|
|
|
|
# Safe-string, cherry-picked from upstream.
|
|
|
|
Patch1: 0001-Safe-string-support.patch
|
|
|
|
|
2014-02-11 17:03:14 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.0
|
|
|
|
BuildRequires: ocaml-findlib
|
2016-11-07 20:18:29 +00:00
|
|
|
BuildRequires: ocaml-ocamlbuild
|
2014-02-11 17:03:14 +00:00
|
|
|
|
|
|
|
%global libname %(sed -e 's/^ocaml-//' <<< %{name})
|
|
|
|
|
|
|
|
%description
|
|
|
|
Xmlm is an OCaml streaming codec to decode and encode the XML data
|
|
|
|
format. It can process XML documents without a complete in-memory
|
|
|
|
representation of the data.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{libname}-%{version}
|
2014-02-14 02:24:38 +00:00
|
|
|
%patch0 -p1 -b .debug
|
2017-11-22 16:00:23 +00:00
|
|
|
%patch1 -p1
|
2014-02-11 17:03:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{opt}
|
|
|
|
./pkg/build true
|
|
|
|
%else
|
|
|
|
./pkg/build false
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
# These rules work if the library uses 'ocamlfind install' to install itself.
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR/%{libname}
|
|
|
|
|
|
|
|
%if %{opt}
|
|
|
|
install -m 755 -p _build/test/xmltrip.native $RPM_BUILD_ROOT%{_bindir}/xmltrip
|
|
|
|
install -m 644 -p _build/src/xmlm.{a,cmxa} $OCAMLFIND_DESTDIR/%{libname}/
|
|
|
|
install -m 755 -p _build/src/xmlm.cmxs $OCAMLFIND_DESTDIR/%{libname}/
|
|
|
|
%else
|
|
|
|
install -m 755 -p _build/test/xmltrip.byte $RPM_BUILD_ROOT%{_bindir}/xmltrip
|
|
|
|
%endif
|
|
|
|
install -m 644 -p _build/pkg/META _build/src/xmlm.{cm?,mli} $OCAMLFIND_DESTDIR/%{libname}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Against valid XML
|
|
|
|
$RPM_BUILD_ROOT%{_bindir}/xmltrip -p %{SOURCE1} 2>valid-err.log
|
|
|
|
[ -z "$(cat valid-err.log)" ]
|
|
|
|
|
|
|
|
# Against invalid XML - stderr should contain the word expected
|
|
|
|
$RPM_BUILD_ROOT%{_bindir}/xmltrip -p %{SOURCE2} 2>invalid-err.log
|
|
|
|
grep expected invalid-err.log >/dev/null
|
|
|
|
|
|
|
|
%files
|
|
|
|
# LICENSE not bundled
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/xmltrip
|
|
|
|
%{_libdir}/ocaml/xmlm/
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.cmxs
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.cmx
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/*/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
# LICENSE not bundled
|
|
|
|
%doc CHANGES.md _build/test/examples.ml _build/test/xhtml.ml doc
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/*/*.a
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
|
|
|
%{_libdir}/ocaml/*/*.cmxs
|
|
|
|
%{_libdir}/ocaml/*/*.cmx
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/*/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-03-01 16:57:45 +00:00
|
|
|
* Mon Mar 1 16:57:44 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-51
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
2021-01-26 22:10:15 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-50
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-01 22:45:24 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-49
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
2020-09-01 21:32:48 +00:00
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-48
|
|
|
|
- Rebuild.
|
|
|
|
|
2020-08-21 10:59:53 +00:00
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-47
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
2020-08-01 06:45:59 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-46
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 12:21:37 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-45
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-04 22:06:54 +00:00
|
|
|
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-44
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-21 15:48:45 +00:00
|
|
|
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-43
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-17 20:22:44 +00:00
|
|
|
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-42
|
|
|
|
- OCaml 4.11.0 pre-release
|
|
|
|
|
2020-04-02 13:05:50 +00:00
|
|
|
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-41
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 10:56:24 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-40
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-01-29 19:49:33 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-39
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-19 11:51:07 +00:00
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-38
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
2020-01-09 19:52:19 +00:00
|
|
|
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-37
|
|
|
|
- OCaml 4.09.0 for riscv64
|
|
|
|
|
2019-12-06 16:03:38 +00:00
|
|
|
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-36
|
|
|
|
- OCaml 4.09.0 (final) rebuild.
|
|
|
|
|
2019-08-16 17:19:00 +00:00
|
|
|
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-35
|
|
|
|
- OCaml 4.08.1 (final) rebuild.
|
|
|
|
|
2019-08-01 07:57:03 +00:00
|
|
|
* Thu Aug 01 2019 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-34
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
2019-07-25 23:02:46 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-33
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-27 21:00:59 +00:00
|
|
|
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-32
|
|
|
|
- OCaml 4.08.0 (final) rebuild.
|
|
|
|
|
2019-04-30 10:06:39 +00:00
|
|
|
* Tue Apr 30 2019 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-31
|
|
|
|
- OCaml 4.08.0 (beta 3) rebuild.
|
|
|
|
|
2019-02-01 16:59:17 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-30
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 14:49:32 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-29
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-11 19:06:28 +00:00
|
|
|
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-28
|
|
|
|
- OCaml 4.07.0 (final) rebuild.
|
|
|
|
|
2018-06-20 20:49:41 +00:00
|
|
|
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-27
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
2018-02-08 09:00:22 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-26
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-22 16:00:23 +00:00
|
|
|
* Wed Nov 22 2017 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-25
|
2017-11-18 00:48:20 +00:00
|
|
|
- OCaml 4.06.0 rebuild.
|
2017-11-22 16:00:23 +00:00
|
|
|
- Fix safe-string for OCaml 4.06.
|
2017-11-18 00:48:20 +00:00
|
|
|
|
2017-08-09 10:09:59 +00:00
|
|
|
* Wed Aug 09 2017 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-24
|
|
|
|
- OCaml 4.05.0 rebuild.
|
|
|
|
|
2017-08-03 04:20:28 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:32:17 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-27 12:56:44 +00:00
|
|
|
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-21
|
|
|
|
- OCaml 4.04.2 rebuild.
|
|
|
|
|
2017-05-13 12:22:34 +00:00
|
|
|
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-20
|
|
|
|
- OCaml 4.04.1 rebuild.
|
|
|
|
|
2017-02-11 00:36:33 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-09 18:01:24 +00:00
|
|
|
* Wed Nov 09 2016 Dan Horák <dan@danny.cz> - 1.2.0-18
|
|
|
|
- rebuild for s390x codegen bug
|
|
|
|
|
2016-11-07 20:08:36 +00:00
|
|
|
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-17
|
|
|
|
- Rebuild for OCaml 4.04.0.
|
2016-11-07 20:18:29 +00:00
|
|
|
- Add explicit dependency on ocamlbuild.
|
2016-11-07 20:08:36 +00:00
|
|
|
|
2016-02-04 11:11:33 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-28 23:21:20 +00:00
|
|
|
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-15
|
|
|
|
- OCaml 4.02.3 rebuild.
|
|
|
|
|
2015-06-24 23:38:23 +00:00
|
|
|
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-14
|
|
|
|
- ocaml-4.02.2 final rebuild.
|
|
|
|
|
2015-06-18 15:01:41 +00:00
|
|
|
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-13
|
|
|
|
- ocaml-4.02.2 rebuild.
|
|
|
|
|
2015-06-17 23:37:08 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-17 16:48:41 +00:00
|
|
|
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-11
|
|
|
|
- ocaml-4.02.1 rebuild.
|
|
|
|
|
2014-08-31 13:36:18 +00:00
|
|
|
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-10
|
|
|
|
- ocaml-4.02.0 final rebuild.
|
|
|
|
|
2014-08-23 23:32:47 +00:00
|
|
|
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-9
|
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
2014-08-17 13:11:46 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-02 18:13:22 +00:00
|
|
|
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-7
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
2014-07-25 11:46:36 +00:00
|
|
|
* Fri Jul 25 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-6
|
|
|
|
- OCaml 4.02.0 beta rebuild.
|
|
|
|
|
2014-06-07 15:52:53 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-24 14:12:38 +00:00
|
|
|
* Thu Apr 24 2014 Jaromir Capik <jcapik@redhat.com> - 1.2.0-4
|
|
|
|
- Removing ExclusiveArch
|
|
|
|
|
2014-02-14 02:24:38 +00:00
|
|
|
* Fri Feb 14 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.0-3
|
|
|
|
- Include source files in -debuginfo
|
|
|
|
|
2014-02-11 17:03:14 +00:00
|
|
|
* Sat Feb 8 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.0-2
|
|
|
|
- Incorporate review feedback
|
|
|
|
|
|
|
|
* Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.0-1
|
|
|
|
- Initial package
|