ocaml-lwt/ocaml-lwt.spec

297 lines
9.9 KiB
RPMSpec
Raw Normal View History

2017-10-03 19:50:38 +00:00
# NB: We are stuck on an old version of LWT because we require various
# packages to be added to Fedora to support the new version. They are:
# - jbuilder (DONE)
# - ocaml-result (DONE)
# - bisect_ppx
# - ocaml-migrate-parsetree
# - ppx_tools_versioned
# Please DO NOT move to a new version until you have added all of the
# above to Fedora.
2008-09-03 21:02:17 +00:00
Name: ocaml-lwt
Version: 2.5.0
2017-10-03 19:50:38 +00:00
Release: 16%{?dist}
2008-09-03 21:02:17 +00:00
Summary: OCaml lightweight thread library
# The openssl linking exception is granted.
2008-09-03 21:02:17 +00:00
License: LGPLv2+ with exceptions
URL: http://ocsigen.org/lwt
Source0: https://github.com/ocsigen/lwt/archive/2.5.0/lwt-2.5.0.tar.gz
2011-01-06 17:13:20 +00:00
# Change some deprecated functions for OCaml 4.5.0.
Patch1: lwt-2.5.0-ocaml45.patch
2008-09-03 21:02:17 +00:00
BuildRequires: ocaml >= 3.10.0
2016-11-07 19:52:58 +00:00
BuildRequires: ocaml-ocamlbuild
2008-09-03 21:02:17 +00:00
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-ocamldoc
2009-10-12 08:50:06 +00:00
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-ssl-devel >= 0.5.1
2015-08-02 06:29:32 +00:00
BuildRequires: ocaml-react-devel >= 1.0.0
BuildRequires: chrpath
BuildRequires: glib2-devel
2011-01-06 17:13:20 +00:00
BuildRequires: libev-devel
2008-09-03 21:02:17 +00:00
%description
Lwt is a lightweight thread library for Objective Caml. This library
is part of the Ocsigen project.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2008-09-03 21:02:17 +00:00
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q -n lwt-%{version}
2008-09-03 21:02:17 +00:00
%patch1 -p1
2008-09-03 21:02:17 +00:00
%build
./configure \
2015-08-02 06:29:32 +00:00
--enable-ssl --enable-glib --enable-react \
--enable-camlp4 \
--prefix=%{_prefix}
2008-09-03 21:02:17 +00:00
make
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
2008-09-03 21:02:17 +00:00
%check
%ifarch %{ocaml_native_compiler}
2015-08-02 06:29:32 +00:00
./configure --enable-ssl --enable-glib --enable-react --enable-tests \
--prefix=%{_prefix}
# Some tests fail, unclear why. Make the tests advisory for now.
make test ||:
%endif
# Check lwt.react support is enabled (RHBZ#1048367).
2015-08-02 06:29:32 +00:00
OCAMLPATH=$RPM_BUILD_ROOT%{_libdir}/ocaml ocamlfind query lwt.react
2008-09-03 21:02:17 +00:00
%files
%doc LICENSE COPYING
%{_libdir}/ocaml/lwt
%ifarch %{ocaml_native_compiler}
2008-09-03 21:02:17 +00:00
%exclude %{_libdir}/ocaml/lwt/*.a
%exclude %{_libdir}/ocaml/lwt/*.cmxa
2011-01-06 17:13:20 +00:00
#%exclude %{_libdir}/ocaml/lwt/*.cmx
2008-09-03 21:02:17 +00:00
%endif
%exclude %{_libdir}/ocaml/lwt/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner
2008-09-03 21:02:17 +00:00
%files devel
%doc CHANGES README.md
%ifarch %{ocaml_native_compiler}
2008-09-03 21:02:17 +00:00
%{_libdir}/ocaml/lwt/*.a
%{_libdir}/ocaml/lwt/*.cmxa
2011-01-06 17:13:20 +00:00
#%{_libdir}/ocaml/lwt/*.cmx
2008-09-03 21:02:17 +00:00
%endif
%{_libdir}/ocaml/lwt/*.mli
%changelog
2017-10-03 19:50:38 +00:00
* Tue Oct 03 2017 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-16
- Rebuild against new ocaml-ssl.
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-15
2017-08-08 17:37:57 +00:00
- OCaml 4.05.0 rebuild.
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-27 07:14:45 +00:00
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-11
- Bump release and rebuild.
2017-06-26 22:35:35 +00:00
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-10
- OCaml 4.04.2 rebuild.
2017-05-12 16:54:47 +00:00
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-9
- OCaml 4.04.1 rebuild.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-11-09 17:59:42 +00:00
* Wed Nov 09 2016 Dan Horák <dan@danny.cz> - 2.5.0-7
- rebuild for s390x codegen bug
2016-11-07 19:16:30 +00:00
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-6
- Rebuild for OCaml 4.04.0.
2016-11-07 19:52:58 +00:00
- Add explicit dependency on ocamlbuild.
2016-11-07 19:16:30 +00:00
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-08-02 06:29:32 +00:00
* Sun Aug 2 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.5.0-4
- Re-enable React (fixes bz# 1249307)
2015-07-28 17:39:23 +00:00
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-3
- OCaml 4.02.3 rebuild.
* Fri Jul 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-2
- Enable building the syntax extension.
- Fix Source URL.
* Wed Jul 22 2015 Richard W.M. Jones <rjones@redhat.com> - 2.5.0-1
- New version 2.5.0.
- Enable bytecode builds.
2015-06-24 19:43:57 +00:00
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.4.5-6
- ocaml-4.02.2 final rebuild.
2015-06-17 19:54:35 +00:00
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 2.4.5-5
- ocaml-4.02.2 rebuild.
2015-02-17 10:04:08 +00:00
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 2.4.5-4
- ocaml-4.02.1 rebuild.
2014-08-31 09:40:14 +00:00
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.5-3
- ocaml-4.02.0 final rebuild.
2014-08-23 18:41:17 +00:00
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.5-2
- ocaml-4.02.0+rc1 rebuild.
* Mon Aug 18 2014 Scott Tsai <scottt.tw@gmail.com> 2.4.5-1
- New upstream version 2.4.5 (tarball created from tag through github https://github.com/ocsigen/lwt/tags)
- Remove patches which are now upstream.
- Disable ocaml-react support since it breaks the build (https://github.com/ocsigen/lwt/issues/77)
- Remove manual.pdf for now since tarballs from git tags don't include the pre-built documentation
2014-08-17 20:03:24 +00:00
* Mon Aug 18 2014 Scott Tsai <scottt.tw@gmail.com> - 2.4.3-12
- Add lwt-fix-ocaml-camlp4-19.patch to fix OCaml 4.02+ build failure
- Rebuild for ocaml-4.02.0-0.8.git10e45753.fc22.
2014-08-17 20:03:24 +00:00
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Aug 09 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.3-10
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
2014-07-22 09:32:18 +00:00
* Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.3-9
- OCaml 4.02.0 beta rebuild.
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Apr 15 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.3-7
- Remove ocaml_arches macro (RHBZ#1087794).
* Tue Apr 15 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.3-6
- Remove ocaml_arches macro (RHBZ#1087794).
* Fri Jan 3 2014 Richard W.M. Jones <rjones@redhat.com> - 2.4.3-5
- Enable lwt.react support, and check it gets enabled (RHBZ#1048367).
- Remove libev patch since headers are back to normal location
in libev >= 4.15-3.
* Wed Sep 18 2013 Jerry James <loganjerry@gmail.com> - 2.4.3-4
- Rebuild for OCaml 4.01.0, and add -ocaml41 patch to adapt to changes
- Enable debuginfo
- Enable glib integration
- Add check script
- Add manual to -devel subpackage
- Minor spec file cleanups
* Sat Sep 14 2013 Scott Tsai <scottt.tw@gmail.com> - 2.4.3-3
2013-09-14 12:58:07 +00:00
- New upstream version 2.4.3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-1
- New upstream version 2.4.2.
- Rebuild for OCaml 4.00.1.
- Remove patches which are now upstream.
- Clean up spec file.
2012-07-30 07:37:47 +00:00
* Mon Jul 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3.2-7
- Rebuild for OCaml 4.00.0 official.
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jun 14 2012 Scott Tsai <scottt.tw@gmail.com> - 2.3.2-5
- Patch myocamlobuild.ml in lwt-2.3.2-ocaml-4.patch to
add compiler-libs to search patch for "Toploop".
- Add oasis-common.patch to make setup.ml work on OCaml 4.00.0
- Both patches from https://sympa.inria.fr/sympa/arc/caml-list/2012-05/msg00223.html
2012-06-11 12:09:57 +00:00
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3.2-4
- Patch for OCaml 4.00.0.
2012-06-10 23:19:07 +00:00
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3.2-3
- Rebuild for OCaml 4.00.0.
2012-01-07 18:09:34 +00:00
* Sat Jan 07 2012 Richard W.M. Jones <rjones@redhat.com> - 2.3.2-2
- Rebuild for OCaml 3.12.1.
* Thu Dec 08 2011 Scott Tsai scottt.tw@gmail.com - 2.3.2-1
2011-12-08 14:31:10 +00:00
- New upstream version 2.3.2.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-01-06 17:13:20 +00:00
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-1
- New upstream version 2.2.0.
- Rebuild for OCaml 3.12.0.
- Add BR libev-devel.
- Patch <ev.h> -> <libev/ev.h>
- *.cmx files are no longer being distributed.
- No VERSION file.
2009-12-30 13:50:41 +00:00
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.3.rc1
- Rebuild for OCaml 3.11.2.
2009-10-12 08:50:06 +00:00
* Mon Oct 12 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.2.rc1.fc13
- ocaml-react is now in Fedora, so build this package.
2009-10-12 08:50:06 +00:00
- Missing BR on camlp4.
* Thu Oct 8 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.rc1.fc13
- New upstream version 2.0.0+rc1.
- NB. This cannot be built as it depends on new package ocaml-react
(RHBZ#527971).
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-05-23 11:07:22 +00:00
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-5
- Rebuild for OCaml 3.11.1
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
(added sparc64 per request from the sparc maintainer)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-04 12:48:03 +00:00
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-3
- Rebuild.
* Wed Sep 3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-2
- Rebuild with higher EVR than F-9 branch.
2008-09-03 21:02:17 +00:00
* Mon Sep 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-1
- Initial RPM release.