|
|
d81060 |
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
d81060 |
%global debug_package %{nil}
|
|
|
d81060 |
|
|
|
d81060 |
%global svnrev 234
|
|
|
d81060 |
|
|
|
d81060 |
Name: ocaml-xml-light
|
|
|
d81060 |
Version: 2.3
|
|
|
d81060 |
Release: 0.4.svn%{svnrev}%{?dist}
|
|
|
d81060 |
Summary: Minimal XML parser and printer for OCaml
|
|
|
d81060 |
|
|
|
d81060 |
Group: Development/Libraries
|
|
|
d81060 |
License: LGPLv2+
|
|
|
d81060 |
URL: http://tech.motion-twin.com/xmllight.html
|
|
|
d81060 |
|
|
|
d81060 |
# Upstream does not have releases (or rather, it did up to version 2.2
|
|
|
d81060 |
# and then they stopped). Use the SVN repository here:
|
|
|
d81060 |
# https://code.google.com/p/ocamllibs/source/checkout
|
|
|
d81060 |
#
|
|
|
d81060 |
# To prepare a source release:
|
|
|
d81060 |
# (1) Adjust 'svnrev' above to the latest release.
|
|
|
d81060 |
# (2) Check out the sources:
|
|
|
d81060 |
# svn checkout http://ocamllibs.googlecode.com/svn/trunk/ ocamllibs
|
|
|
d81060 |
# (3) Create a tarball:
|
|
|
d81060 |
# cd ocamllibs/xml-light/
|
|
|
d81060 |
# tar -zcf /tmp/xml-light-NNN.tar.gz --xform='s,^\.,xml-light-NNN,' .
|
|
|
d81060 |
# (where NNN is the svnrev above)
|
|
|
d81060 |
Source0: xml-light-%{svnrev}.tar.gz
|
|
|
d81060 |
|
|
|
d81060 |
ExcludeArch: sparc64 s390 s390x
|
|
|
d81060 |
|
|
|
d81060 |
BuildRequires: ocaml >= 4.00.1
|
|
|
d81060 |
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
|
|
d81060 |
BuildRequires: ocaml-ocamldoc
|
|
|
d81060 |
BuildRequires: gawk
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%description
|
|
|
d81060 |
Xml-Light is a minimal XML parser & printer for OCaml. It provides
|
|
|
d81060 |
functions to parse an XML document into an OCaml data structure, work
|
|
|
d81060 |
with it, and print it back to an XML document. It support also DTD
|
|
|
d81060 |
parsing and checking, and is entirely written in OCaml, hence it does
|
|
|
d81060 |
not require additional C library.
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%package devel
|
|
|
d81060 |
Summary: Development files for %{name}
|
|
|
d81060 |
Group: Development/Libraries
|
|
|
d81060 |
Requires: %{name} = %{version}-%{release}
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%description devel
|
|
|
d81060 |
The %{name}-devel package contains libraries and signature files for
|
|
|
d81060 |
developing applications that use %{name}.
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%prep
|
|
|
d81060 |
%setup -n xml-light-%{svnrev}
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%build
|
|
|
d81060 |
# Build breaks if parallelized.
|
|
|
d81060 |
unset MAKEFLAGS
|
|
|
d81060 |
make all
|
|
|
d81060 |
make doc
|
|
|
d81060 |
%if %opt
|
|
|
d81060 |
make opt
|
|
|
d81060 |
%endif
|
|
|
d81060 |
sed -e 's/@VERSION@/%{VERSION}/' < META.in > META
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%check
|
|
|
d81060 |
./test.exe <
|
|
|
d81060 |
<abc><123/></abc>
|
|
|
d81060 |
|
|
|
d81060 |
EOF
|
|
|
d81060 |
|
|
|
d81060 |
%if %opt
|
|
|
d81060 |
./test_opt.exe <
|
|
|
d81060 |
<abc><123/></abc>
|
|
|
d81060 |
|
|
|
d81060 |
EOF
|
|
|
d81060 |
%endif
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%install
|
|
|
d81060 |
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
d81060 |
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
d81060 |
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
d81060 |
rm -f test.cmi
|
|
|
d81060 |
ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%files
|
|
|
d81060 |
%doc README
|
|
|
d81060 |
%{_libdir}/ocaml/xml-light
|
|
|
d81060 |
%if %opt
|
|
|
d81060 |
%exclude %{_libdir}/ocaml/xml-light/*.a
|
|
|
d81060 |
%exclude %{_libdir}/ocaml/xml-light/*.cmxa
|
|
|
d81060 |
%exclude %{_libdir}/ocaml/xml-light/*.cmx
|
|
|
d81060 |
%endif
|
|
|
d81060 |
%exclude %{_libdir}/ocaml/xml-light/*.mli
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%files devel
|
|
|
d81060 |
%doc README doc/*
|
|
|
d81060 |
%if %opt
|
|
|
d81060 |
%{_libdir}/ocaml/xml-light/*.a
|
|
|
d81060 |
%{_libdir}/ocaml/xml-light/*.cmxa
|
|
|
d81060 |
%{_libdir}/ocaml/xml-light/*.cmx
|
|
|
d81060 |
%endif
|
|
|
d81060 |
%{_libdir}/ocaml/xml-light/*.mli
|
|
|
d81060 |
|
|
|
d81060 |
|
|
|
d81060 |
%changelog
|
|
|
d81060 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-0.4.svn234
|
|
|
d81060 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d81060 |
|
|
|
d81060 |
* Tue Nov 27 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3-0.3.svn234
|
|
|
d81060 |
- BR >= OCaml 4.00.1 so we can't be built against the wrong OCaml.
|
|
|
d81060 |
|
|
|
d81060 |
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3-0.2.svn234
|
|
|
d81060 |
- Rebuild for OCaml 4.00.1.
|
|
|
d81060 |
|
|
|
d81060 |
* Tue Aug 21 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3-0.1.svn234
|
|
|
d81060 |
- Update to latest version (subversion release 234).
|
|
|
d81060 |
- Includes fix for CVE-2012-3514 - moderate impact hash table collisions
|
|
|
d81060 |
(resolves: rhbz#787890).
|
|
|
d81060 |
- Clean up the spec file and bring up to modern standards.
|
|
|
d81060 |
- Add tests.
|
|
|
d81060 |
|
|
|
d81060 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.cvs20070817-19
|
|
|
d81060 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d81060 |
|
|
|
d81060 |
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-18
|
|
|
d81060 |
- Rebuild for OCaml 4.00.0.
|
|
|
d81060 |
|
|
|
d81060 |
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-17
|
|
|
d81060 |
- Rebuild for OCaml 3.12.1.
|
|
|
d81060 |
|
|
|
d81060 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.cvs20070817-16
|
|
|
d81060 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
d81060 |
|
|
|
d81060 |
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-15
|
|
|
d81060 |
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
|
|
|
d81060 |
|
|
|
d81060 |
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-14
|
|
|
d81060 |
- Rebuild for OCaml 3.11.2.
|
|
|
d81060 |
|
|
|
d81060 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.cvs20070817-13
|
|
|
d81060 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d81060 |
|
|
|
d81060 |
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-12
|
|
|
d81060 |
- Rebuild for OCaml 3.11.1
|
|
|
d81060 |
|
|
|
d81060 |
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
d81060 |
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
d81060 |
(added sparc64 per request from the sparc maintainer)
|
|
|
d81060 |
|
|
|
d81060 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.cvs20070817-11
|
|
|
d81060 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
d81060 |
|
|
|
d81060 |
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-10
|
|
|
d81060 |
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
d81060 |
|
|
|
d81060 |
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-9
|
|
|
d81060 |
- Rebuild for OCaml 3.11.0
|
|
|
d81060 |
|
|
|
d81060 |
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-8
|
|
|
d81060 |
- Rebuild for OCaml 3.10.2
|
|
|
d81060 |
|
|
|
d81060 |
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-7
|
|
|
d81060 |
- Rebuild for ppc64.
|
|
|
d81060 |
|
|
|
d81060 |
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-6
|
|
|
d81060 |
- Rebuild for OCaml 3.10.1
|
|
|
d81060 |
|
|
|
d81060 |
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-5
|
|
|
d81060 |
- Don't package test.cmi file (it's a test program).
|
|
|
d81060 |
|
|
|
d81060 |
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-4
|
|
|
d81060 |
- Force rebuild because of updated requires/provides scripts in OCaml.
|
|
|
d81060 |
|
|
|
d81060 |
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-3
|
|
|
d81060 |
- Force rebuild because of changed BRs in base OCaml.
|
|
|
d81060 |
|
|
|
d81060 |
* Fri Aug 24 2007 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-2
|
|
|
d81060 |
- Clarified that the license is LGPLv2+.
|
|
|
d81060 |
|
|
|
d81060 |
* Fri Aug 17 2007 Richard W.M. Jones <rjones@redhat.com> - 2.2.cvs20070817-1
|
|
|
d81060 |
- Initial RPM release.
|