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