coccinelle/coccinelle.spec

55 lines
1.7 KiB
RPMSpec
Raw Normal View History

Name: coccinelle
Version: 1.0.0
Release: 0
Summary: Semantic patch utility
License: GPL2
Group: Productivity/Text/Utilities
URL: http://coccinelle.lip6.fr/
%define rversion %version-rc3
Source: %name-%rversion.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ncurses-devel ocaml python-devel xz
%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
%setup -qn %name-%rversion
%build
# not autotools configure, don't use macro
./configure --prefix=%{_prefix} --opt
make %{?_smp_mflags}
%install
# "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
%define __debug_install_post %{nil}
>debugfiles.list
>debugsources.list
b="%buildroot"
make install DESTDIR="$b" MANDIR="%_mandir" LIBDIR="%_libdir"
%files
%defattr(-,root,root)
%doc authors.txt bugs.txt changes.txt copyright.txt credits.txt
%doc license.txt readme.txt
%doc %_mandir/*/*
%_bindir/*
%_libdir/*.so
%_datadir/%name
%changelog