From 063ece5ae67f271e06ee9c6e3fc42a651da1424e6c6639e4caf7f29af94ffb5d Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 25 Feb 2010 08:36:53 +0000 Subject: [PATCH] cleanup OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=2 --- coccinelle.spec | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/coccinelle.spec b/coccinelle.spec index 8d2a416..d7a8d60 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -1,16 +1,14 @@ - -Name: coccinelle -Version: 0.2.1 -Release: 0 -Summary: Semantic patch utility -License: GPL2 -Group: Productivity/Text/Utilities -URL: http://www.emn.fr/x-info/coccinelle/ - -#Source: 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 +Name: coccinelle +Version: 0.2.1 +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 @@ -28,26 +26,20 @@ used (by us and others) for finding and fixing bugs in systems code. %setup -q %build -./configure --prefix=%_prefix --opt +# not autotools configure, don't use macro +./configure --prefix=%{_prefix} --opt make %{?_smp_mflags} %install -b="%buildroot" -rm -Rf "$b" -mkdir "$b" -#make install DESTDIR="%buildroot" -# -# We primarily want spatch. -# -mkdir -p "$b/%_bindir" "$b/%_mandir/man1" -install -pm0755 spatch "$b/%_bindir/" -install -pm0644 docs/spatch.1 "$b/%_mandir/man1/" +# We primarily want spatch +install -D -m 0755 spatch %{buildroot}%{_bindir}/spatch +install -D -m 0644 docs/spatch.1 %{buildroot}%{_mandir}/man1/spatch.1 %files %defattr(-,root,root) -%_bindir/* -%doc %_mandir/*/* %doc authors.txt bugs.txt changes.txt copyright.txt credits.txt %doc license.txt readme.txt +%doc %{_mandir}/man1/* +%{_bindir}/* %changelog