Added ocaml-findlib to devel.
This commit is contained in:
parent
5ab281416f
commit
e3823b16ea
@ -0,0 +1 @@
|
||||
findlib-1.1.2pl1.tar.gz
|
135
ocaml-findlib.spec
Normal file
135
ocaml-findlib.spec
Normal file
@ -0,0 +1,135 @@
|
||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: ocaml-findlib
|
||||
Version: 1.1.2pl1
|
||||
Release: 8%{?dist}
|
||||
Summary: Objective CAML package manager and build helper
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
URL: http://www.ocaml-programming.de/packages/
|
||||
Source0: http://www.ocaml-programming.de/packages/findlib-1.1.2pl1.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: ocaml >= 3.10.0
|
||||
BuildRequires: ocaml-camlp4-devel
|
||||
BuildRequires: ocaml-labltk-devel
|
||||
BuildRequires: m4, ncurses-devel
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes
|
||||
%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}
|
||||
|
||||
|
||||
%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
|
||||
|
||||
|
||||
%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}
|
||||
|
||||
|
||||
%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
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user