- Use %pycache_only %python_sitelib instead of %python3_sitelib

fixes gh#openSUSE/python-rpm-macros#64#issuecomment-715373348

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmdln?expand=0&rev=18
This commit is contained in:
Matej Cepl 2020-10-23 14:44:20 +00:00 committed by Git OBS Bridge
parent 278cfac35c
commit d6f55f4413
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 23 14:44:10 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Use %pycache_only %python_sitelib instead of %python3_sitelib
fixes gh#openSUSE/python-rpm-macros#64#issuecomment-715373348
-------------------------------------------------------------------
Thu Sep 7 09:49:23 UTC 2017 - mimi.vx@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-cmdln
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -23,7 +23,7 @@ Release: 0
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells
License: MIT
Group: Development/Libraries/Python
Url: https://github.com/trentm/cmdln
URL: https://github.com/trentm/cmdln
Source: https://files.pythonhosted.org/packages/source/c/cmdln/cmdln-%{version}.zip
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
@ -60,6 +60,6 @@ chmod -x examples/*
%files %{python_files}
%doc LICENSE.txt docs/ examples/
%{python_sitelib}/cmdln*
%pycache_only %{python3_sitelib}/__pycache__/*
%pycache_only %{python_sitelib}/__pycache__/*
%changelog