From 6ec33ef92f09c2ad2f9c66cb68058076ca04db08ab31ab7df94a9feda40e98f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 2 Jan 2020 07:35:35 +0000 Subject: [PATCH] - 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 --- python-filetype.changes | 5 +++++ python-filetype.spec | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/python-filetype.changes b/python-filetype.changes index 0e0851e..b6fc981 100644 --- a/python-filetype.changes +++ b/python-filetype.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 2 07:33:43 UTC 2020 - Tomáš Chvátal + +- Do not install generic examples directory in sitelib + ------------------------------------------------------------------- Fri Dec 6 20:53:47 UTC 2019 - Erico Mendonca diff --git a/python-filetype.spec b/python-filetype.spec index 8729ce0..aafed12 100644 --- a/python-filetype.spec +++ b/python-filetype.spec @@ -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