1
0
forked from pool/ocaml-findlib

- BuildRequire ocaml-rpm-macros

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-findlib?expand=0&rev=31
This commit is contained in:
Olaf Hering 2014-10-23 12:42:06 +00:00 committed by Git OBS Bridge
parent 4dbbb6b12e
commit a9efd5fa83
2 changed files with 10 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 23 12:40:36 UTC 2014 - ohering@suse.de
- BuildRequire ocaml-rpm-macros
-------------------------------------------------------------------
Fri Oct 10 17:07:25 UTC 2014 - ohering@suse.de

View File

@ -17,14 +17,7 @@
#
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%if !%opt
# get rid of /usr/lib/rpm/find-debuginfo.sh
# strip kills the bytecode part of ELF binaries
# see also NO_BRP_STRIP_DEBUG in install section
%undefine _build_create_debug
%endif
%{ocaml_preserve_bytecode}
Name: ocaml-findlib
Version: 1.5.3
Release: 0
@ -45,6 +38,7 @@ BuildRequires: ncurses-devel
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-camlp4-devel >= 4.02.0
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.02.1
%description
Findlib is a library manager for Objective Caml. It provides a
@ -78,17 +72,12 @@ tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocam
-mandir %{_mandir} \
-with-toolbox
make all
%if %opt
%if %{ocaml_native_compiler}
make opt
%endif
rm doc/guide-html/TIMESTAMP
%install
%if !%opt
# get rid of /usr/lib/rpm/brp-strip-debug
# strip kills the bytecode part of ELF binaries
export NO_BRP_STRIP_DEBUG=true
%endif
make install DESTDIR=$RPM_BUILD_ROOT
%files
@ -110,7 +99,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_libdir}/ocaml/threads
%{_libdir}/ocaml/topfind
%{_libdir}/ocaml/unix
%if %opt
%if %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/findlib/*.a
%exclude %{_libdir}/ocaml/findlib/*.cmxa
%endif
@ -121,7 +110,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc LICENSE doc/README doc/guide-html
%if %opt
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/findlib/*.a
%{_libdir}/ocaml/findlib/*.cmxa
%endif