From 7316a7602705d7315ff2b0d9763fbc72e31b84465d5152c837fd822b6e253a38 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 25 Mar 2010 00:52:03 +0000 Subject: [PATCH] install all files required by spatch OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=6 --- coccinelle.changes | 6 ++++++ coccinelle.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/coccinelle.changes b/coccinelle.changes index 1798cbc..2c23df6 100644 --- a/coccinelle.changes +++ b/coccinelle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 25 00:51:20 UTC 2010 - jengelh@medozas.de + +- install all files required by spatch, not just the binary itself + (otherwise it does not even run) + ------------------------------------------------------------------- Mon Mar 15 12:25:23 UTC 2010 - jengelh@medozas.de diff --git a/coccinelle.spec b/coccinelle.spec index 0249e03..45f2a72 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -31,9 +31,10 @@ used (by us and others) for finding and fixing bugs in systems code. 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 +b="%buildroot" +rm -Rf "$b" +mkdir "$b" +make install DESTDIR="$b" MANDIR="%_mandir" LIBDIR="%_libdir" %clean rm -rf %{buildroot} @@ -42,7 +43,9 @@ rm -rf %{buildroot} %defattr(-,root,root) %doc authors.txt bugs.txt changes.txt copyright.txt credits.txt %doc license.txt readme.txt -%doc %{_mandir}/man1/* -%{_bindir}/* +%doc %_mandir/*/* +%_bindir/* +%_libdir/*.so +%_datadir/%name %changelog