2011-09-21 12:53:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package coccinelle
|
|
|
|
#
|
2020-01-07 09:08:51 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-08-05 14:16:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-21 12:53:31 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-02-25 09:36:53 +01:00
|
|
|
Name: coccinelle
|
2019-10-26 13:34:47 +02:00
|
|
|
Version: 1.0.8
|
2011-06-25 22:25:31 +02:00
|
|
|
Release: 0
|
2010-02-25 09:36:53 +01:00
|
|
|
Summary: Semantic patch utility
|
2019-08-05 14:16:36 +02:00
|
|
|
License: GPL-2.0-only
|
2010-02-25 09:36:53 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2019-08-05 14:16:36 +02:00
|
|
|
URL: http://coccinelle.lip6.fr/
|
2013-05-03 08:39:15 +02:00
|
|
|
#Git-Clone: git://github.com/coccinelle/coccinelle
|
2019-08-22 16:05:35 +02:00
|
|
|
|
2020-01-09 15:05:35 +01:00
|
|
|
Source0: %name-%version.tar.gz
|
2017-11-28 11:27:21 +01:00
|
|
|
Patch1: kill-env.diff
|
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: 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
|
2017-11-27 11:39:29 +01:00
|
|
|
desired matches and transformations in C code. [It does not recognize
|
|
|
|
C++.]
|
|
|
|
|
|
|
|
Coccinelle performs collateral evolutions in software. 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 used for finding and
|
|
|
|
fixing bugs in systems code.
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%prep
|
2019-08-22 16:05:35 +02:00
|
|
|
%autosetup -p1
|
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
|
2019-10-26 13:34:47 +02:00
|
|
|
make #{?_smp_mflags}
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-27 11:37:26 +01:00
|
|
|
# "because it is simply not possible to strip ocaml binaries that are built
|
2010-04-24 21:15:08 +02:00
|
|
|
# with the -custom option."
|
|
|
|
export NO_BRP_STRIP_DEBUG=true
|
|
|
|
export NO_DEBUGINFO_STRIP_DEBUG=true
|
2019-08-22 16:05:35 +02:00
|
|
|
%define __debug_install_post %nil
|
2012-10-03 18:37:56 +02:00
|
|
|
: >debugfiles.list
|
|
|
|
: >debugsources.list
|
2018-01-24 12:32:49 +01:00
|
|
|
: >debugsourcefiles.list
|
2010-04-24 21:15:08 +02:00
|
|
|
|
2017-11-28 11:23:09 +01:00
|
|
|
%make_install
|
2011-09-20 17:13:51 +02:00
|
|
|
# Remove coccilib, don't have the deps
|
2019-08-22 16:05:35 +02:00
|
|
|
rm -Rf "%buildroot/%_libdir/%name"/{commons,globals,ocaml,parsing_c} \
|
|
|
|
"%buildroot/%_mandir/man3"/Coccilib*
|
|
|
|
%fdupes %buildroot/%_prefix
|
2012-10-03 18:37:56 +02:00
|
|
|
|
2020-01-07 09:08:51 +01:00
|
|
|
# Python library have been named after directories in the site-packages hierarchy
|
|
|
|
mkdir -p %{buildroot}%{python_sitelib}
|
|
|
|
mv %{buildroot}%{_libdir}/%{name}/python/coccilib %{buildroot}%{python_sitelib}
|
|
|
|
%fdupes %{buildroot}%{python_sitelib}/coccilib
|
|
|
|
|
2010-02-25 09:29:56 +01:00
|
|
|
%files
|
|
|
|
%doc authors.txt bugs.txt changes.txt copyright.txt credits.txt
|
2019-08-05 14:16:36 +02:00
|
|
|
%license license.txt
|
|
|
|
%doc readme.txt
|
2020-01-07 09:08:51 +01:00
|
|
|
%{python_sitelib}/coccilib
|
2019-08-22 16:05:35 +02:00
|
|
|
%_mandir/man?/*
|
|
|
|
%_bindir/sp*
|
|
|
|
%_libdir/%name
|
|
|
|
%_datadir/bash-completion/
|
2010-02-25 09:29:56 +01:00
|
|
|
|
|
|
|
%changelog
|