diff --git a/coccinelle.changes b/coccinelle.changes index b507fa2..3d9e295 100644 --- a/coccinelle.changes +++ b/coccinelle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 28 01:14:03 UTC 2017 - aavindraa@gmail.com + +- use %make_install macro +- remove useless directory creation + ------------------------------------------------------------------- Sun Nov 26 22:45:58 UTC 2017 - jengelh@inai.de diff --git a/coccinelle.spec b/coccinelle.spec index c6b2c8d..3be8e31 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -74,13 +74,10 @@ export NO_DEBUGINFO_STRIP_DEBUG=true : >debugfiles.list : >debugsources.list -b="%buildroot" -make install DESTDIR="$b" +%make_install # Remove coccilib, don't have the deps -rm -Rf "$b/%_libdir/%name"/{commons,globals,ocaml,parsing_c} \ - "$b/%_mandir/man3"/Coccilib* - -mkdir -p "$b/%_libdir" +rm -Rf "%buildroot/%_libdir/%name"/{commons,globals,ocaml,parsing_c} \ + "%buildroot/%_mandir/man3"/Coccilib* %fdupes %buildroot/%_prefix %files