SHA256
1
0
forked from pool/coccinelle

Accepting request 415235 from devel:tools

make the check script happy

OBS-URL: https://build.opensuse.org/request/show/415235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coccinelle?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2016-08-05 16:16:06 +00:00 committed by Git OBS Bridge
commit b5d529ad46
3 changed files with 40 additions and 5 deletions

15
coccinelle-1.0.4.patch Normal file
View File

@ -0,0 +1,15 @@
---
setup/cocci.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/setup/cocci.m4
+++ b/setup/cocci.m4
@@ -285,7 +285,7 @@ AC_DEFUN([AC_COCCI_TOOL],
AC_SUBST([$1], [no])
],
[dnl find the tool
- AC_COCCI_FINDTOOL([$1],[[$]$1])
+ AC_COCCI_FINDTOOL([$1],[$2])
])
AS_IF([test -z "[$]$1" -o "x[$]$1" = xno],

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 30 08:22:09 UTC 2016 - olaf@aepfle.de
- Use ocamlfind(camlp4) to refer to camlp4
- Add coccinelle-1.0.4.patch
-------------------------------------------------------------------
Tue May 24 14:20:12 UTC 2016 - olaf@aepfle.de
- Fix build with ocaml-4.03
Use ocaml-parmap and ocaml-menhir instead of old built-in copies
Use ocaml-pcre
-------------------------------------------------------------------
Tue Dec 15 00:00:00 CET 2015 - dsterba@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package coccinelle
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,16 +26,21 @@ Url: http://coccinelle.lip6.fr/
#Git-Clone: git://github.com/coccinelle/coccinelle
Source: http://coccinelle.lip6.fr/distrib/%name-%version.tgz
Patch0: coccinelle-1.0.4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: ncurses-devel
BuildRequires: ocaml >= 3.11
BuildRequires: ocaml-camlp4-devel >= 3.11
BuildRequires: ocaml-findlib
BuildRequires: ocaml-menhir-devel
BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-ocamldoc >= 3.11
BuildRequires: ocaml-parmap-devel
BuildRequires: ocaml-pcre-devel
BuildRequires: pkg-config
# Fails to link with PCRE
#BuildRequires: pkgconfig(libpcre)
BuildRequires: ocamlfind(camlp4)
BuildRequires: pkgconfig(python)
Requires: python-base
@ -53,10 +58,12 @@ used (by us and others) for finding and fixing bugs in systems code.
%prep
%setup -qn %name-%version
%patch0 -p1
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
make
%install
# "because it is simply not possible to strip ocaml binaries that are built