ocaml-pcre-warnings.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=26
This commit is contained in:
parent
11b8098245
commit
f4075fcd81
27
ocaml-pcre-warnings.patch
Normal file
27
ocaml-pcre-warnings.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
_oasis | 2 +-
|
||||||
|
setup.ml | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/_oasis
|
||||||
|
+++ b/_oasis
|
||||||
|
@@ -32,7 +32,7 @@ Library pcre
|
||||||
|
BuildDepends: bytes
|
||||||
|
CCOpt: -g -O2 -fPIC -DPIC
|
||||||
|
if flag(strict) && ccomp_type(cc)
|
||||||
|
- CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro
|
||||||
|
+ CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long
|
||||||
|
|
||||||
|
|
||||||
|
# Examples
|
||||||
|
--- a/setup.ml
|
||||||
|
+++ b/setup.ml
|
||||||
|
@@ -6786,7 +6786,7 @@ let setup_t =
|
||||||
|
"-Wextra";
|
||||||
|
"-Wunused";
|
||||||
|
"-Wno-long-long";
|
||||||
|
- "-Wno-keyword-macro"
|
||||||
|
+ "-Wno-keyword-macro";
|
||||||
|
])
|
||||||
|
];
|
||||||
|
bs_cclib = [(OASISExpr.EBool true, [])];
|
@ -28,6 +28,7 @@ Group: Development/Libraries/Other
|
|||||||
Url: http://mmottl.github.io/pcre-ocaml/
|
Url: http://mmottl.github.io/pcre-ocaml/
|
||||||
# https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz
|
# https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz
|
||||||
Source0: pcre-ocaml-%{version}.tar.xz
|
Source0: pcre-ocaml-%{version}.tar.xz
|
||||||
|
Patch0: ocaml-pcre-warnings.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# ocaml autodep start for pkg: ocaml-pcre
|
# ocaml autodep start for pkg: ocaml-pcre
|
||||||
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
||||||
@ -61,6 +62,7 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pcre-ocaml-%{version}
|
%setup -q -n pcre-ocaml-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
oasis -debug setup-clean
|
oasis -debug setup-clean
|
||||||
|
Loading…
Reference in New Issue
Block a user