2011-12-08 17:26:42 +00:00
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
2007-07-12 17:11:27 +00:00
|
|
|
|
|
|
|
Name: ocaml-findlib
|
2015-02-16 13:42:49 +00:00
|
|
|
Version: 1.5.5
|
2015-06-17 09:42:57 +00:00
|
|
|
Release: 3%{?dist}
|
2007-07-12 17:11:27 +00:00
|
|
|
Summary: Objective CAML package manager and build helper
|
|
|
|
License: BSD
|
2013-09-13 20:51:47 +00:00
|
|
|
|
2008-04-23 08:48:03 +00:00
|
|
|
URL: http://projects.camlcity.org/projects/findlib.html
|
|
|
|
Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz
|
2013-09-13 20:51:47 +00:00
|
|
|
|
|
|
|
# Use ocamlopt -g patch to include debug information.
|
|
|
|
Patch1: findlib-1.4-add-debug.patch
|
|
|
|
|
2014-07-12 18:10:06 +00:00
|
|
|
BuildRequires: ocaml >= 4.02.0
|
2014-07-19 11:10:40 +00:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2014-07-12 18:10:06 +00:00
|
|
|
#BuildRequires: ocaml-labltk-devel
|
2012-06-07 18:36:52 +00:00
|
|
|
BuildRequires: ocaml-compiler-libs
|
2007-08-02 12:32:55 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2007-07-12 17:11:27 +00:00
|
|
|
BuildRequires: m4, ncurses-devel
|
2007-08-30 07:57:01 +00:00
|
|
|
BuildRequires: gawk
|
2011-06-03 16:26:33 +00:00
|
|
|
Requires: ocaml
|
2007-07-12 17:11:27 +00:00
|
|
|
|
2009-12-16 17:05:57 +00:00
|
|
|
%global __ocaml_requires_opts -i Asttypes -i Parsetree
|
2007-07-12 17:11:27 +00:00
|
|
|
|
2012-04-28 16:15:04 +00:00
|
|
|
|
2007-07-12 17:11:27 +00:00
|
|
|
%description
|
|
|
|
Objective CAML package manager and build helper.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n findlib-%{version}
|
2013-09-13 20:51:47 +00:00
|
|
|
%patch1 -p2
|
2007-07-12 17:11:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
ocamlc -version
|
|
|
|
ocamlc -where
|
|
|
|
(cd tools/extract_args && make)
|
|
|
|
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
|
|
|
cat src/findlib/ocaml_args.ml
|
|
|
|
./configure -config %{_sysconfdir}/ocamlfind.conf \
|
|
|
|
-bindir %{_bindir} \
|
|
|
|
-sitelib `ocamlc -where` \
|
|
|
|
-mandir %{_mandir} \
|
|
|
|
-with-toolbox
|
|
|
|
make all
|
|
|
|
%if %opt
|
|
|
|
make opt
|
|
|
|
%endif
|
2008-08-31 09:57:40 +00:00
|
|
|
rm doc/guide-html/TIMESTAMP
|
2007-07-12 17:11:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Grrr destdir grrrr
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
make install prefix=$RPM_BUILD_ROOT OCAMLFIND_BIN=$RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mv $RPM_BUILD_ROOT/$RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE doc/README
|
|
|
|
%config(noreplace) %{_sysconfdir}/ocamlfind.conf
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_libdir}/ocaml/*/META
|
|
|
|
%{_libdir}/ocaml/topfind
|
|
|
|
%{_libdir}/ocaml/findlib
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.cmxa
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.mli
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/Makefile.config
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/make_wizard
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/make_wizard.pattern
|
|
|
|
%{_libdir}/ocaml/num-top
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc LICENSE doc/README doc/guide-html
|
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/findlib/*.a
|
|
|
|
%{_libdir}/ocaml/findlib/*.cmxa
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/findlib/*.mli
|
|
|
|
%{_libdir}/ocaml/findlib/Makefile.config
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-06-17 09:42:57 +00:00
|
|
|
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.5.5-3
|
|
|
|
- Bump release and rebuild for OCaml 4.02.2
|
|
|
|
|
2015-02-16 14:23:24 +00:00
|
|
|
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 1.5.5-2
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2015-02-16 13:42:49 +00:00
|
|
|
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 1.5.5-1
|
|
|
|
- New upstream version 1.5.5 for ocaml-4.02.1 rebuild.
|
|
|
|
|
2014-08-30 14:19:09 +00:00
|
|
|
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-3
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2014-08-30 14:04:32 +00:00
|
|
|
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-2
|
|
|
|
- ocaml-4.02.0 final rebuild.
|
|
|
|
|
2014-08-22 20:49:22 +00:00
|
|
|
* Fri Aug 22 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-1
|
|
|
|
- New upstream release 1.5.2.
|
2014-08-22 20:33:36 +00:00
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
2014-08-17 12:53:27 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-01 16:53:43 +00:00
|
|
|
* Fri Aug 01 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-3
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
2014-07-19 11:10:40 +00:00
|
|
|
* Thu Jul 17 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-2
|
|
|
|
- Rebuild for new camlp4 package for OCaml 4.02.0 beta rebuild.
|
|
|
|
|
2014-07-12 18:10:06 +00:00
|
|
|
* Sat Jul 12 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-1
|
|
|
|
- New upstream version 1.5.1.
|
|
|
|
- Disable labltk and camlp4. We will reenable when they are added back
|
|
|
|
into Fedora.
|
|
|
|
- Remove findlib/make_wizard and findlib/make_wizard.pattern.
|
|
|
|
|
2014-06-07 15:38:24 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-28 09:21:11 +00:00
|
|
|
* Wed May 28 2014 Dan Horák <dan[at]danny.cz> - 1.4-2
|
|
|
|
- drop ExcludeArch
|
|
|
|
|
2013-09-13 20:51:47 +00:00
|
|
|
* Fri Sep 13 2013 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
|
|
|
- New upstream version 1.4.
|
|
|
|
- Build debuginfo.
|
|
|
|
- Add -g option when running ocamlopt to generate debuginfo.
|
|
|
|
- Don't need anti-prelink / stripping hacks for modern OCaml.
|
|
|
|
- Modernize spec file.
|
|
|
|
|
2013-08-03 14:53:16 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 08:58:11 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-27 19:25:54 +00:00
|
|
|
* Tue Nov 27 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-3
|
|
|
|
- BR >= OCaml 4.00.1 so we can't build against the wrong OCaml version.
|
|
|
|
|
2012-10-16 18:30:28 +00:00
|
|
|
* Tue Oct 16 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-2
|
|
|
|
- Rebuild for OCaml 4.00.1.
|
|
|
|
|
2012-07-28 10:30:02 +00:00
|
|
|
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-1
|
|
|
|
- New upstream version 1.3.3.
|
|
|
|
- Remove patch for OCaml 4 which has been obsoleted by upstream changes.
|
|
|
|
|
2012-07-20 05:58:16 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-10 21:27:56 +00:00
|
|
|
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-2
|
|
|
|
- Rebuild for OCaml 4.00.0.
|
|
|
|
|
2012-06-07 18:36:52 +00:00
|
|
|
* Thu Jun 7 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-1
|
|
|
|
- New upstream version 1.3.1.
|
|
|
|
- This is required for programs using findlib and OCaml 4.00.0.
|
|
|
|
- Add small patch to fix build of topfind.
|
|
|
|
|
2012-04-28 16:15:04 +00:00
|
|
|
* Sat Apr 28 2012 Richard W.M. Jones <rjones@redhat.com> - 1.2.8-1
|
|
|
|
- New upstream version 1.2.8.
|
|
|
|
|
2012-01-06 13:04:15 +00:00
|
|
|
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 1.2.7-1
|
|
|
|
- New upstream version 1.2.7.
|
|
|
|
|
2011-12-08 17:26:42 +00:00
|
|
|
* Thu Dec 8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.6-5
|
|
|
|
- Don't strip bytecode binary (see RHBZ#435559).
|
|
|
|
|
2011-06-03 16:26:33 +00:00
|
|
|
* Fri Jun 3 2011 Orion Poplawski - 1.2.6-3
|
|
|
|
- Add Requires: ocaml (Bug #710290)
|
|
|
|
|
2011-02-09 01:51:25 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-05 13:17:41 +00:00
|
|
|
* Wed Jan 5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.6-1
|
|
|
|
- New upstream version 1.2.6.
|
|
|
|
|
2009-12-29 17:11:27 +00:00
|
|
|
* Tue Dec 29 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-4
|
|
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
|
2009-12-16 17:05:57 +00:00
|
|
|
* Wed Dec 16 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-3
|
|
|
|
- Use __ocaml_requires_opts / __ocaml_provides_opts.
|
|
|
|
|
2009-12-16 15:37:05 +00:00
|
|
|
* Wed Dec 16 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-2
|
|
|
|
- Update to use RPM dependency generator.
|
|
|
|
|
2009-10-04 20:39:27 +00:00
|
|
|
* Sun Oct 4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-1
|
|
|
|
- New upstream version 1.2.5.
|
|
|
|
|
2009-07-25 19:56:58 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-22 21:38:33 +00:00
|
|
|
* Fri May 22 2009 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-3
|
2009-05-22 21:31:10 +00:00
|
|
|
- Rebuild for OCaml 3.11.1.
|
|
|
|
- New upstream version 1.2.4.
|
2009-05-22 21:38:33 +00:00
|
|
|
- camlp4/META patch is now upstream.
|
2009-05-22 21:31:10 +00:00
|
|
|
|
2009-04-16 09:06:07 +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:05:45 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-04 14:07:26 +00:00
|
|
|
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-5
|
|
|
|
- Change to camlp4/META means that this package really depends on
|
|
|
|
the latest OCaml compiler.
|
|
|
|
|
2008-12-04 14:05:05 +00:00
|
|
|
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-4
|
|
|
|
- camlp4/META: camlp4.lib should depend on dynlink.
|
|
|
|
|
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-3
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
2013-07-31 11:40:06 +00:00
|
|
|
* Fri Nov 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-2
|
2008-11-24 11:25:03 +00:00
|
|
|
- Force rebuild.
|
|
|
|
|
2008-11-20 16:24:09 +00:00
|
|
|
* Thu Nov 20 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
|
|
|
|
- New upstream version 1.2.3.
|
|
|
|
|
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-2
|
|
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
|
2008-08-31 09:57:40 +00:00
|
|
|
* Sun Aug 31 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-1
|
|
|
|
- New upstream version 1.2.2.
|
|
|
|
- Strip ocamlfind binary.
|
|
|
|
- Remove zero-length file.
|
|
|
|
|
2008-04-23 08:48:03 +00:00
|
|
|
* Mon Apr 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.1-3
|
|
|
|
- New upstream URLs.
|
|
|
|
|
2008-03-01 07:28:37 +00:00
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.1-2
|
|
|
|
- Experimental rebuild for ppc64.
|
|
|
|
|
2008-02-12 22:10:02 +00:00
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.1-1
|
|
|
|
- New upstream version 1.2.1.
|
|
|
|
|
2007-09-06 14:15:23 +00:00
|
|
|
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-14
|
|
|
|
- Ignore Parsetree module, it's a part of the toplevel.
|
|
|
|
|
2007-09-03 17:14:46 +00:00
|
|
|
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-13
|
|
|
|
- Bump version to force rebuild against ocaml -6 release.
|
|
|
|
|
2007-08-30 08:25:47 +00:00
|
|
|
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-12
|
|
|
|
- Added BR: gawk.
|
|
|
|
|
2007-08-30 07:36:23 +00:00
|
|
|
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-11
|
|
|
|
- Force rebuild because of changed BRs in base OCaml.
|
|
|
|
|
2007-08-02 12:32:55 +00:00
|
|
|
* Thu Aug 2 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-10
|
|
|
|
- BR added ocaml-ocamldoc so that ocamlfind ocamldoc works.
|
|
|
|
- Fix path of camlp4 parsers in Makefile.
|
|
|
|
|
2007-07-12 17:43:21 +00:00
|
|
|
* Thu Jul 12 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-9
|
|
|
|
- Added ExcludeArch: ppc64
|
|
|
|
|
2007-07-12 17:11:27 +00:00
|
|
|
* Thu Jul 12 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-8
|
|
|
|
- Expanded tabs to spaces.
|
|
|
|
- Readded conditional opt section for files.
|
|
|
|
|
|
|
|
* Wed Jul 04 2007 Xavier Lamien <lxtnow[at]gmail.com> - 1.1.2pl1-7
|
|
|
|
- Fixed BR.
|
|
|
|
|
|
|
|
* Wed Jun 27 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-6
|
|
|
|
- Fix configure line.
|
|
|
|
- Install doc/guide-html.
|
|
|
|
- Added dependency on ncurses-devel.
|
|
|
|
|
|
|
|
* Mon Jun 11 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-5
|
|
|
|
- Build against 3.10.
|
|
|
|
- Update to latest package guidelines.
|
|
|
|
|
|
|
|
* Sat Jun 2 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-4
|
|
|
|
- Handle bytecode-only architectures.
|
|
|
|
|
|
|
|
* Sat May 26 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-3
|
|
|
|
- Missing builddep m4.
|
|
|
|
|
|
|
|
* Fri May 25 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-2
|
|
|
|
- Use OCaml find-requires and find-provides.
|
|
|
|
|
|
|
|
* Fri May 18 2007 Richard W.M. Jones <rjones@redhat.com> - 1.1.2pl1-1
|
|
|
|
- Initial RPM release.
|
|
|
|
|