|
|
138d93c |
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
138d93c |
%define debug_package %{nil}
|
|
|
138d93c |
|
|
|
138d93c |
Name: ocaml-lwt
|
|
|
6277ccd |
Version: 2.3.2
|
|
|
6277ccd |
Release: 0%{?dist}
|
|
|
138d93c |
Summary: OCaml lightweight thread library
|
|
|
138d93c |
|
|
|
138d93c |
Group: Development/Libraries
|
|
|
138d93c |
License: LGPLv2+ with exceptions
|
|
|
c24489a |
URL: http://ocsigen.org/lwt
|
|
|
f9ddd56 |
Source0: http://ocsigen.org/download/lwt-%{version}.tar.gz
|
|
|
138d93c |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
16b5251 |
ExcludeArch: sparc64 s390 s390x
|
|
|
138d93c |
|
|
|
f9ddd56 |
# Location of libev headers on Fedora is in /usr/include/libev/ev.h
|
|
|
f9ddd56 |
# so we need to patch the source accordingly.
|
|
|
6277ccd |
Patch0: lwt-2.3.2-libev.patch
|
|
|
f9ddd56 |
|
|
|
138d93c |
BuildRequires: ocaml >= 3.10.0
|
|
|
138d93c |
BuildRequires: ocaml-findlib-devel
|
|
|
138d93c |
BuildRequires: ocaml-ocamldoc
|
|
|
dd50d5a |
BuildRequires: ocaml-camlp4-devel
|
|
|
138d93c |
BuildRequires: ocaml-ssl >= 0.4.0
|
|
|
c24489a |
BuildRequires: ocaml-react >= 0.9.0
|
|
|
c24489a |
BuildRequires: chrpath
|
|
|
f9ddd56 |
BuildRequires: libev-devel
|
|
|
138d93c |
|
|
|
138d93c |
%define _use_internal_dependency_generator 0
|
|
|
138d93c |
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
|
|
138d93c |
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%description
|
|
|
138d93c |
Lwt is a lightweight thread library for Objective Caml. This library
|
|
|
138d93c |
is part of the Ocsigen project.
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%package devel
|
|
|
138d93c |
Summary: Development files for %{name}
|
|
|
138d93c |
Group: Development/Libraries
|
|
|
138d93c |
Requires: %{name} = %{version}-%{release}
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%description devel
|
|
|
138d93c |
The %{name}-devel package contains libraries and signature files for
|
|
|
138d93c |
developing applications that use %{name}.
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%prep
|
|
|
f9ddd56 |
%setup -q -n lwt-%{version}
|
|
|
f9ddd56 |
|
|
|
f9ddd56 |
%patch0 -p1
|
|
|
138d93c |
|
|
|
138d93c |
mv README README.old
|
|
|
138d93c |
iconv -f iso-8859-1 -t utf-8 < README.old > README
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%build
|
|
|
138d93c |
make
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%install
|
|
|
138d93c |
rm -rf $RPM_BUILD_ROOT
|
|
|
138d93c |
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
138d93c |
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
138d93c |
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
138d93c |
make install
|
|
|
138d93c |
|
|
|
c24489a |
strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
c24489a |
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
c24489a |
|
|
|
138d93c |
|
|
|
138d93c |
%clean
|
|
|
138d93c |
rm -rf $RPM_BUILD_ROOT
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%files
|
|
|
138d93c |
%defattr(-,root,root,-)
|
|
|
138d93c |
%doc LICENSE COPYING
|
|
|
138d93c |
%{_libdir}/ocaml/lwt
|
|
|
138d93c |
%if %opt
|
|
|
138d93c |
%exclude %{_libdir}/ocaml/lwt/*.a
|
|
|
138d93c |
%exclude %{_libdir}/ocaml/lwt/*.cmxa
|
|
|
f9ddd56 |
#%exclude %{_libdir}/ocaml/lwt/*.cmx
|
|
|
138d93c |
%endif
|
|
|
138d93c |
%exclude %{_libdir}/ocaml/lwt/*.mli
|
|
|
c24489a |
%{_libdir}/ocaml/stublibs/*.so
|
|
|
c24489a |
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%files devel
|
|
|
138d93c |
%defattr(-,root,root,-)
|
|
|
f9ddd56 |
%doc LICENSE COPYING CHANGES CHANGES.darcs README
|
|
|
138d93c |
%if %opt
|
|
|
138d93c |
%{_libdir}/ocaml/lwt/*.a
|
|
|
138d93c |
%{_libdir}/ocaml/lwt/*.cmxa
|
|
|
f9ddd56 |
#%{_libdir}/ocaml/lwt/*.cmx
|
|
|
138d93c |
%endif
|
|
|
138d93c |
%{_libdir}/ocaml/lwt/*.mli
|
|
|
138d93c |
|
|
|
138d93c |
|
|
|
138d93c |
%changelog
|
|
|
6277ccd |
* Thu Dec 08 2011 Scott Tsai scottt.tw@gmail.com - 2.3.2-0
|
|
|
6277ccd |
- New upstream version 2.3.2.
|
|
|
6277ccd |
|
|
|
35e6ed0 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
|
|
|
35e6ed0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
35e6ed0 |
|
|
|
f9ddd56 |
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-1
|
|
|
f9ddd56 |
- New upstream version 2.2.0.
|
|
|
f9ddd56 |
- Rebuild for OCaml 3.12.0.
|
|
|
f9ddd56 |
- Add BR libev-devel.
|
|
|
f9ddd56 |
- Patch <ev.h> -> <libev/ev.h>
|
|
|
f9ddd56 |
- *.cmx files are no longer being distributed.
|
|
|
f9ddd56 |
- No VERSION file.
|
|
|
f9ddd56 |
|
|
|
3bc7090 |
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.3.rc1
|
|
|
3bc7090 |
- Rebuild for OCaml 3.11.2.
|
|
|
3bc7090 |
|
|
|
dd50d5a |
* Mon Oct 12 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.2.rc1.fc13
|
|
|
8e464ff |
- ocaml-react is now in Fedora, so build this package.
|
|
|
dd50d5a |
- Missing BR on camlp4.
|
|
|
8e464ff |
|
|
|
c24489a |
* Thu Oct 8 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.0-0.rc1.fc13
|
|
|
c24489a |
- New upstream version 2.0.0+rc1.
|
|
|
c24489a |
- NB. This cannot be built as it depends on new package ocaml-react
|
|
|
c24489a |
(RHBZ#527971).
|
|
|
c24489a |
|
|
|
7ce5cd1 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
|
|
|
7ce5cd1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7ce5cd1 |
|
|
|
5363081 |
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-5
|
|
|
5363081 |
- Rebuild for OCaml 3.11.1
|
|
|
5363081 |
|
|
|
16b5251 |
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
16b5251 |
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
16b5251 |
(added sparc64 per request from the sparc maintainer)
|
|
|
16b5251 |
|
|
|
d7d48fc |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
|
|
|
d7d48fc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
d7d48fc |
|
|
|
16665ef |
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-3
|
|
|
16665ef |
- Rebuild.
|
|
|
16665ef |
|
|
|
93e1b85 |
* Wed Sep 3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-2
|
|
|
93e1b85 |
- Rebuild with higher EVR than F-9 branch.
|
|
|
93e1b85 |
|
|
|
138d93c |
* Mon Sep 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-1
|
|
|
138d93c |
- Initial RPM release.
|