2011-09-21 12:53:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package coccinelle
|
|
|
|
#
|
2017-11-26 23:48:19 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-21 12:53:31 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-02-25 09:36:53 +01:00
|
|
|
Name: coccinelle
|
2017-11-26 23:48:19 +01:00
|
|
|
Version: 1.0.6
|
2011-06-25 22:25:31 +02:00
|
|
|
Release: 0
|
2010-02-25 09:36:53 +01:00
|
|
|
Summary: Semantic patch utility
|
2012-02-13 12:15:06 +01:00
|
|
|
License: GPL-2.0
|
2010-02-25 09:36:53 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2011-09-21 13:49:01 +02:00
|
|
|
Url: http://coccinelle.lip6.fr/
|
2013-05-03 08:39:15 +02:00
|
|
|
|
|
|
|
#Git-Clone: git://github.com/coccinelle/coccinelle
|
2015-05-05 14:51:42 +02:00
|
|
|
Source: http://coccinelle.lip6.fr/distrib/%name-%version.tgz
|
2010-02-25 09:36:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-05-24 16:32:02 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2014-10-02 17:20:49 +02:00
|
|
|
BuildRequires: fdupes
|
2012-02-13 12:15:06 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2012-10-04 03:34:41 +02:00
|
|
|
BuildRequires: ocaml >= 3.11
|
2014-09-10 01:23:27 +02:00
|
|
|
BuildRequires: ocaml-findlib
|
2016-05-24 16:32:02 +02:00
|
|
|
BuildRequires: ocaml-menhir-devel
|
|
|
|
BuildRequires: ocaml-ocamlbuild
|
2012-10-04 03:34:41 +02:00
|
|
|
BuildRequires: ocaml-ocamldoc >= 3.11
|
2016-05-24 16:32:02 +02:00
|
|
|
BuildRequires: ocaml-parmap-devel
|
|
|
|
BuildRequires: ocaml-pcre-devel
|
2013-05-09 19:52:04 +02:00
|
|
|
BuildRequires: pkg-config
|
2016-05-30 10:53:38 +02:00
|
|
|
BuildRequires: ocamlfind(camlp4)
|
2013-05-09 19:52:04 +02:00
|
|
|
BuildRequires: pkgconfig(python)
|
2012-09-06 03:17:59 +02:00
|
|
|
Requires: python-base
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Coccinelle is a program matching and transformation engine which
|
|
|
|
provides the language SmPL (Semantic Patch Language) for specifying
|
|
|
|
desired matches and transformations in C code. Coccinelle was
|
|
|
|
initially targeted towards performing collateral evolutions in Linux.
|
|
|
|
Such evolutions comprise the changes that are needed in client code
|
|
|
|
in response to evolutions in library APIs, and may include
|
|
|
|
modifications such as renaming a function, adding a function argument
|
|
|
|
whose value is somehow context-dependent, and reorganizing a data
|
|
|
|
structure. Beyond collateral evolutions, Coccinelle is successfully
|
|
|
|
used (by us and others) for finding and fixing bugs in systems code.
|
|
|
|
|
|
|
|
%prep
|
2015-05-05 14:51:42 +02:00
|
|
|
%setup -qn %name-%version
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-24 16:32:02 +02:00
|
|
|
autoreconf -fi
|
2012-10-03 18:37:56 +02:00
|
|
|
%configure
|
2016-05-24 16:32:02 +02:00
|
|
|
make
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%install
|
2010-04-24 21:15:08 +02:00
|
|
|
# "because it is simply not possible to strip ocaml binaries that are built
|
|
|
|
# with the -custom option."
|
|
|
|
export NO_BRP_STRIP_DEBUG=true
|
|
|
|
export NO_DEBUGINFO_STRIP_DEBUG=true
|
2017-11-26 23:48:19 +01:00
|
|
|
%define __debug_install_post %nil
|
2012-10-03 18:37:56 +02:00
|
|
|
: >debugfiles.list
|
|
|
|
: >debugsources.list
|
2010-04-24 21:15:08 +02:00
|
|
|
|
2010-03-25 01:52:03 +01:00
|
|
|
b="%buildroot"
|
2015-08-23 10:16:35 +02:00
|
|
|
make install DESTDIR="$b"
|
2011-09-20 17:13:51 +02:00
|
|
|
# Remove coccilib, don't have the deps
|
2015-08-23 10:16:35 +02:00
|
|
|
rm -Rf "$b/%_libdir/%name"/{commons,globals,ocaml,parsing_c} \
|
2017-11-26 23:48:19 +01:00
|
|
|
"$b/%_mandir/man3"/Coccilib*
|
2010-02-25 09:29:56 +01:00
|
|
|
|
2017-11-26 23:48:19 +01:00
|
|
|
mkdir -p "$b/%_libdir"
|
2014-10-02 17:20:49 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
2012-10-03 18:37:56 +02:00
|
|
|
|
2010-02-25 09:29:56 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc authors.txt bugs.txt changes.txt copyright.txt credits.txt
|
|
|
|
%doc license.txt readme.txt
|
2015-08-23 10:16:35 +02:00
|
|
|
%_mandir/man?/*
|
2017-11-26 23:48:19 +01:00
|
|
|
%_bindir/sp*
|
2015-08-23 10:16:35 +02:00
|
|
|
%_bindir/pycocci
|
|
|
|
%_libdir/%name
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%changelog
|