ocaml-stdcompat-rpmlintrc
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-stdcompat?expand=0&rev=13
This commit is contained in:
parent
8e3c27fb93
commit
02bc532d73
1
ocaml-stdcompat-rpmlintrc
Normal file
1
ocaml-stdcompat-rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
addFilter("* lto-no-text-in-archive")
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global _buildshell /bin/bash
|
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
Name: ocaml-stdcompat
|
Name: ocaml-stdcompat
|
||||||
Version: 15
|
Version: 15
|
||||||
@ -27,6 +26,7 @@ License: BSD-2-Clause
|
|||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
URL: https://opam.ocaml.org/packages/stdcompat
|
URL: https://opam.ocaml.org/packages/stdcompat
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Source1: %{name}-rpmlintrc
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bash
|
BuildRequires: bash
|
||||||
@ -50,10 +50,6 @@ developing applications that use %{name}.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
values=( `ocamlc.opt -config-var native_c_compiler` )
|
|
||||||
export CC="${values[0]}"
|
|
||||||
unset values[0]
|
|
||||||
export CFLAGS="${values[@]}"
|
|
||||||
%make_build -f Makefile.bootstrap
|
%make_build -f Makefile.bootstrap
|
||||||
%configure \
|
%configure \
|
||||||
--libdir=%{ocaml_standard_library}
|
--libdir=%{ocaml_standard_library}
|
||||||
@ -61,7 +57,7 @@ export CFLAGS="${values[@]}"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -exec chmod -v 644 {} \;
|
find %{buildroot} -type f -exec chmod -v 644 '{}' +
|
||||||
%ocaml_create_file_list
|
%ocaml_create_file_list
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user