added option -no-camlp4 to fix META file conflict with camlp4 [release 1.8.0-2mamba;Sat Apr 27 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 07:53:25 +01:00
parent 9ddeb9918c
commit 4622dd30af

View File

@ -2,7 +2,7 @@
Name: ocaml-findlib Name: ocaml-findlib
Version: 1.8.0 Version: 1.8.0
Release: 1mamba Release: 2mamba
Summary: A library manager for OCaml Summary: A library manager for OCaml
Group: Development/Tools Group: Development/Tools
Vendor: openmamba Vendor: openmamba
@ -12,6 +12,7 @@ URL: http://projects.camlcity.org/projects/findlib.html
Source: http://download.camlcity.org/download/findlib-%{version}.tar.gz Source: http://download.camlcity.org/download/findlib-%{version}.tar.gz
License: MIT License: MIT
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml >= 4.00.1
BuildRequires: ocaml-labltk >= 4.00.1 BuildRequires: ocaml-labltk >= 4.00.1
@ -53,7 +54,8 @@ This package contains libraries and header files for developing applications tha
-mandir %{_mandir} \ -mandir %{_mandir} \
-sitelib `ocamlc -where` \ -sitelib `ocamlc -where` \
-with-toolbox \ -with-toolbox \
-config %{_sysconfdir}/ocaml/findlib.conf -config %{_sysconfdir}/ocaml/findlib.conf \
-no-camlp4
%make %make
%make opt %make opt
@ -69,26 +71,24 @@ mkdir -p %{buildroot}%{_sysconfdir}/prelink.conf.d
echo "-b %{_bindir}/ocamlfind" \ echo "-b %{_bindir}/ocamlfind" \
> %{buildroot}%{_sysconfdir}/prelink.conf.d/ocaml-ocamlfind.conf > %{buildroot}%{_sysconfdir}/prelink.conf.d/ocaml-ocamlfind.conf
rm -f %{buildroot}%{_libdir}/ocaml/ocamlbuild/META
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%attr(0555,root,root) %{_bindir}/ocamlfind %attr(0555,root,root) %{_bindir}/ocamlfind
%ifarch arm
%attr(0555,root,root) %{_bindir}/safe_camlp4
%endif
%{_bindir}/safe_camlp4
%{_libdir}/ocaml/*/META %{_libdir}/ocaml/*/META
%dir %{_libdir}/ocaml/findlib %dir %{_libdir}/ocaml/findlib
%dir %{_libdir}/ocaml/topfind %dir %{_libdir}/ocaml/topfind
%{_libdir}/ocaml/findlib/*.cma %{_libdir}/ocaml/findlib/*.cma
%{_libdir}/ocaml/findlib/*.cmi %{_libdir}/ocaml/findlib/*.cmi
%{_libdir}/ocaml/findlib/*.cmxs %{_libdir}/ocaml/findlib/*.cmxs
%{_libdir}/ocaml/bytes/*.cma #%{_libdir}/ocaml/bytes/*.cma
%{_libdir}/ocaml/bytes/*.cmi #%{_libdir}/ocaml/bytes/*.cmi
%{_libdir}/ocaml/bytes/*.cmx #%{_libdir}/ocaml/bytes/*.cmx
%{_libdir}/ocaml/bytes/*.cmxs #%{_libdir}/ocaml/bytes/*.cmxs
#%{_libdir}/ocaml/num-top/*.cma #%{_libdir}/ocaml/num-top/*.cma
#%{_libdir}/ocaml/num-top/*.cmi #%{_libdir}/ocaml/num-top/*.cmi
%{_mandir}/man1/ocamlfind.* %{_mandir}/man1/ocamlfind.*
@ -104,14 +104,19 @@ echo "-b %{_bindir}/ocamlfind" \
%{_libdir}/ocaml/findlib/*.a %{_libdir}/ocaml/findlib/*.a
%{_libdir}/ocaml/findlib/*.cmxa %{_libdir}/ocaml/findlib/*.cmxa
%{_libdir}/ocaml/findlib/*.mli %{_libdir}/ocaml/findlib/*.mli
%{_libdir}/ocaml/bytes/*.a #%{_libdir}/ocaml/bytes/*.a
%{_libdir}/ocaml/bytes/*.cmxa #%{_libdir}/ocaml/bytes/*.cmxa
%{_libdir}/ocaml/findlib/Makefile.config %{_libdir}/ocaml/findlib/Makefile.config
%ifnarch x8_64
%{_libdir}/ocaml/findlib/make_wizard %{_libdir}/ocaml/findlib/make_wizard
%{_libdir}/ocaml/findlib/make_wizard.pattern %{_libdir}/ocaml/findlib/make_wizard.pattern
%doc LICENSE doc/README doc/guide-html %endif
#%doc LICENSE doc/README doc/guide-html
%changelog %changelog
* Sat Apr 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-2mamba
- added option -no-camlp4 to fix META file conflict with camlp4
* Tue Jun 05 2018 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba * Tue Jun 05 2018 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist - automatic version update by autodist