diff --git a/coccinelle.changes b/coccinelle.changes index 7da69ff..18ea7d4 100644 --- a/coccinelle.changes +++ b/coccinelle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 7 07:45:29 UTC 2020 - nick wang + +- bsc#1160194, change the python library to site-packages hierarchy. + ------------------------------------------------------------------- Thu Oct 24 13:10:02 UTC 2019 - olaf@aepfle.de diff --git a/coccinelle.spec b/coccinelle.spec index 24fcb4f..fad6219 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -1,7 +1,7 @@ # # spec file for package coccinelle # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -80,10 +80,16 @@ rm -Rf "%buildroot/%_libdir/%name"/{commons,globals,ocaml,parsing_c} \ "%buildroot/%_mandir/man3"/Coccilib* %fdupes %buildroot/%_prefix +# Python library have been named after directories in the site-packages hierarchy +mkdir -p %{buildroot}%{python_sitelib} +mv %{buildroot}%{_libdir}/%{name}/python/coccilib %{buildroot}%{python_sitelib} +%fdupes %{buildroot}%{python_sitelib}/coccilib + %files %doc authors.txt bugs.txt changes.txt copyright.txt credits.txt %license license.txt %doc readme.txt +%{python_sitelib}/coccilib %_mandir/man?/* %_bindir/sp* %_libdir/%name