SHA256
1
0
forked from pool/coccinelle

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
This commit is contained in:
Olaf Hering 2020-01-07 08:08:51 +00:00 committed by Git OBS Bridge
parent cab3263781
commit 87f2a892e9
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 7 07:45:29 UTC 2020 - nick wang <nwang@suse.com>
- bsc#1160194, change the python library to site-packages hierarchy.
-------------------------------------------------------------------
Thu Oct 24 13:10:02 UTC 2019 - olaf@aepfle.de

View File

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