2007-07-12 17:11:27 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: ocaml-findlib
|
2008-11-20 16:24:09 +00:00
|
|
|
Version: 1.2.3
|
2008-12-04 14:07:26 +00:00
|
|
|
Release: 5%{?dist}
|
2007-07-12 17:11:27 +00:00
|
|
|
Summary: Objective CAML package manager and build helper
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: BSD
|
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
|
2007-07-12 17:11:27 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-12-04 14:05:05 +00:00
|
|
|
Patch0: ocaml-findlib-1.2.3-camlp4-META.patch
|
|
|
|
|
2008-12-04 14:07:26 +00:00
|
|
|
BuildRequires: ocaml >= 3.11.0-0.5.rc1
|
2007-07-12 17:11:27 +00:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
|
|
|
BuildRequires: ocaml-labltk-devel
|
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
|
2007-07-12 17:11:27 +00:00
|
|
|
|
|
|
|
%define _use_internal_dependency_generator 0
|
2007-09-06 14:15:23 +00:00
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
|
2007-07-12 17:11:27 +00:00
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
|
|
|
|
|
|
|
%description
|
|
|
|
Objective CAML package manager and build helper.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
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}
|
2008-12-04 14:05:05 +00:00
|
|
|
%patch0 -p1
|
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
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
# 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}
|
|
|
|
|
2008-08-31 09:57:40 +00:00
|
|
|
strip $RPM_BUILD_ROOT%{_bindir}/ocamlfind
|
|
|
|
|
2007-07-12 17:11:27 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%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
|
|
|
|
%{_libdir}/ocaml/findlib/make_wizard
|
|
|
|
%{_libdir}/ocaml/findlib/make_wizard.pattern
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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.
|
|
|
|
|
2008-11-24 11:25:03 +00:00
|
|
|
* Fri Nov 20 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-2
|
|
|
|
- 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.
|
|
|
|
|