Jan Engelhardt
9121ea593d
OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=5
49 lines
1.6 KiB
RPMSpec
49 lines
1.6 KiB
RPMSpec
Name: coccinelle
|
|
Version: 0.2.2
|
|
Release: 0
|
|
Summary: Semantic patch utility
|
|
License: GPL2
|
|
Group: Productivity/Text/Utilities
|
|
URL: http://coccinelle.lip6.fr/
|
|
# repacked from http://coccinelle.lip6.fr/distrib/coccinelle-0.2.1.tgz
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: ncurses-devel ocaml python-devel
|
|
|
|
%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 -q
|
|
|
|
%build
|
|
# not autotools configure, don't use macro
|
|
./configure --prefix=%{_prefix} --opt
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
# We primarily want spatch
|
|
install -D -m 0755 spatch %{buildroot}%{_bindir}/spatch
|
|
install -D -m 0644 docs/spatch.1 %{buildroot}%{_mandir}/man1/spatch.1
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc authors.txt bugs.txt changes.txt copyright.txt credits.txt
|
|
%doc license.txt readme.txt
|
|
%doc %{_mandir}/man1/*
|
|
%{_bindir}/*
|
|
|
|
%changelog
|