2008-09-03 21:02:17 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: ocaml-lwt
|
2011-01-06 17:13:20 +00:00
|
|
|
Version: 2.2.0
|
|
|
|
Release: 1%{?dist}
|
2008-09-03 21:02:17 +00:00
|
|
|
Summary: OCaml lightweight thread library
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2+ with exceptions
|
2009-10-08 12:42:49 +00:00
|
|
|
URL: http://ocsigen.org/lwt
|
2011-01-06 17:13:20 +00:00
|
|
|
Source0: http://ocsigen.org/download/lwt-%{version}.tar.gz
|
2008-09-03 21:02:17 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-04-16 09:06:09 +00:00
|
|
|
ExcludeArch: sparc64 s390 s390x
|
2008-09-03 21:02:17 +00:00
|
|
|
|
2011-01-06 17:13:20 +00:00
|
|
|
# Location of libev headers on Fedora is in /usr/include/libev/ev.h
|
|
|
|
# so we need to patch the source accordingly.
|
|
|
|
Patch0: lwt-2.2.0-libev.patch
|
|
|
|
|
2008-09-03 21:02:17 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.0
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
2009-10-12 08:50:06 +00:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2008-09-03 21:02:17 +00:00
|
|
|
BuildRequires: ocaml-ssl >= 0.4.0
|
2009-10-08 12:42:49 +00:00
|
|
|
BuildRequires: ocaml-react >= 0.9.0
|
|
|
|
BuildRequires: chrpath
|
2011-01-06 17:13:20 +00:00
|
|
|
BuildRequires: libev-devel
|
2008-09-03 21:02:17 +00:00
|
|
|
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-01-06 17:13:20 +00:00
|
|
|
%setup -q -n lwt-%{version}
|
|
|
|
|
|
|
|
%patch0 -p1
|
2008-09-03 21:02:17 +00:00
|
|
|
|
|
|
|
mv README README.old
|
|
|
|
iconv -f iso-8859-1 -t utf-8 < README.old > README
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
make install
|
|
|
|
|
2009-10-08 12:42:49 +00:00
|
|
|
strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
|
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
|
|
2008-09-03 21:02:17 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE COPYING
|
|
|
|
%{_libdir}/ocaml/lwt
|
|
|
|
%if %opt
|
|
|
|
%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
|
2009-10-08 12:42:49 +00:00
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
2008-09-03 21:02:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2011-01-06 17:13:20 +00:00
|
|
|
%doc LICENSE COPYING CHANGES CHANGES.darcs README
|
2008-09-03 21:02:17 +00:00
|
|
|
%if %opt
|
|
|
|
%{_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
|
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
|
2009-10-12 08:39:50 +00:00
|
|
|
- ocaml-react is now in Fedora, so build this package.
|
2009-10-12 08:50:06 +00:00
|
|
|
- Missing BR on camlp4.
|
2009-10-12 08:39:50 +00:00
|
|
|
|
2009-10-08 12:42:49 +00:00
|
|
|
* 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).
|
|
|
|
|
2009-07-25 19:59:20 +00:00
|
|
|
* 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
|
|
|
|
|
2009-04-16 09:06:09 +00:00
|
|
|
* 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)
|
|
|
|
|
2009-02-26 07:14:39 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-09-03 21:04:53 +00:00
|
|
|
* 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.
|