- 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
This commit is contained in:
Matej Cepl 2020-11-03 15:59:55 +00:00 committed by Git OBS Bridge
parent 52977e93ef
commit 38ef6639e1
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 3 15:58:16 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Remove ridiculously wide find commands in %prep, which break a lot
(binary) files.
-------------------------------------------------------------------
Wed Jul 8 07:31:29 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -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/