15
0

- Do not install generic examples directory in sitelib

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filetype?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2020-01-02 07:35:35 +00:00
committed by Git OBS Bridge
parent 7666b95c35
commit 6ec33ef92f
2 changed files with 8 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 2 07:33:43 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not install generic examples directory in sitelib
-------------------------------------------------------------------
Fri Dec 6 20:53:47 UTC 2019 - Erico Mendonca <erico.mendonca@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-filetype
#
# 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
@@ -41,16 +41,12 @@ This is a Python port from `filetype`_ Go package.
%setup -q -n filetype-%{version}
%build
# fix the interpreter header warnings
sed -i 's@%{_bindir}/env python@%{_bindir}/python@g' examples/{buffer,bytes,file}.py
%python_build
%install
%python_install
# fix file permission warnings for the included examples
%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/examples/{buffer,bytes,file}.py
# do not install examples in generic folder
%python_expand rm -r %{buildroot}%{$python_sitelib}/examples/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check