From 38ef6639e19e42b4a9d56d5a410fb716b9e110682bc91c81715e82c3a024c08b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 3 Nov 2020 15:59:55 +0000 Subject: [PATCH] - Remove ridiculously wide find commands in %prep, which break a lot (binary) files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-biopython?expand=0&rev=11 --- python-biopython.changes | 6 ++++++ python-biopython.spec | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/python-biopython.changes b/python-biopython.changes index 27acb5b..57d9f15 100644 --- a/python-biopython.changes +++ b/python-biopython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 3 15:58:16 UTC 2020 - Matej Cepl + +- Remove ridiculously wide find commands in %prep, which break a lot + (binary) files. + ------------------------------------------------------------------- Wed Jul 8 07:31:29 UTC 2020 - Marketa Calabkova diff --git a/python-biopython.spec b/python-biopython.spec index 377ef91..94e8eaf 100644 --- a/python-biopython.spec +++ b/python-biopython.spec @@ -53,12 +53,10 @@ available Python tools for computational molecular biology. %prep %setup -q -n biopython-%{version} -# remove all execute bits from documentation and fix line endings -find -type f -exec chmod -x {} 2>/dev/null ';' -find -type f -exec sed -i 's/\r//' {} 2>/dev/null ';' -# remove she-bang lines in .py files to keep rpmlint happy find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';' sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' Scripts/Structure/hsexpo +# Example scripts cannot be in a subdirectory +mv -v Doc/examples examples %build export LANG=en_US.UTF-8 @@ -77,7 +75,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst -%doc Doc/ +%doc Doc/ examples/ %license LICENSE.rst %{python_sitearch}/Bio/ %{python_sitearch}/BioSQL/