From 87f2a892e9b25b4bd7e6c068f1d001c3887cc8b0d099094d46b413d1046cd764 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 7 Jan 2020 08:08:51 +0000 Subject: [PATCH] Accepting request 761345 from home:wanghaisu:branches:devel:tools bsc#1160194, fix the wrong python path. OBS-URL: https://build.opensuse.org/request/show/761345 OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=69 --- coccinelle.changes | 5 +++++ coccinelle.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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