install all files required by spatch

OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=6
This commit is contained in:
Jan Engelhardt 2010-03-25 00:52:03 +00:00 committed by Git OBS Bridge
parent 9121ea593d
commit 7316a76027
2 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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