From 02bc532d73cf553cb7314e0c236ad72bbfe04aa9b04473b0ec8c6e4ab5091586 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 14 Apr 2021 14:52:25 +0000 Subject: [PATCH] ocaml-stdcompat-rpmlintrc OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-stdcompat?expand=0&rev=13 --- ocaml-stdcompat-rpmlintrc | 1 + ocaml-stdcompat.spec | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 ocaml-stdcompat-rpmlintrc diff --git a/ocaml-stdcompat-rpmlintrc b/ocaml-stdcompat-rpmlintrc new file mode 100644 index 0000000..013c85e --- /dev/null +++ b/ocaml-stdcompat-rpmlintrc @@ -0,0 +1 @@ +addFilter("* lto-no-text-in-archive") diff --git a/ocaml-stdcompat.spec b/ocaml-stdcompat.spec index 3357eb1..da8e68a 100644 --- a/ocaml-stdcompat.spec +++ b/ocaml-stdcompat.spec @@ -16,7 +16,6 @@ # -%global _buildshell /bin/bash %define _lto_cflags %{nil} Name: ocaml-stdcompat Version: 15 @@ -27,6 +26,7 @@ License: BSD-2-Clause Group: Development/Languages/OCaml URL: https://opam.ocaml.org/packages/stdcompat Source0: %{name}-%{version}.tar.xz +Source1: %{name}-rpmlintrc BuildRequires: autoconf BuildRequires: automake BuildRequires: bash @@ -50,10 +50,6 @@ developing applications that use %{name}. %autosetup -p1 %build -values=( `ocamlc.opt -config-var native_c_compiler` ) -export CC="${values[0]}" -unset values[0] -export CFLAGS="${values[@]}" %make_build -f Makefile.bootstrap %configure \ --libdir=%{ocaml_standard_library} @@ -61,7 +57,7 @@ export CFLAGS="${values[@]}" %install %make_install -find %{buildroot} -type f -exec chmod -v 644 {} \; +find %{buildroot} -type f -exec chmod -v 644 '{}' + %ocaml_create_file_list %files -f %{name}.files