Accepting request 845786 from devel:languages:python:numeric
- Remove ridiculously wide find commands in %prep, which break a lot (binary) files. OBS-URL: https://build.opensuse.org/request/show/845786 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-biopython?expand=0&rev=6
This commit is contained in:
commit
cea6696aa5
@ -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>
|
Wed Jul 8 07:31:29 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -53,12 +53,10 @@ available Python tools for computational molecular biology.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n biopython-%{version}
|
%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 ';'
|
find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
|
||||||
sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' Scripts/Structure/hsexpo
|
sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' Scripts/Structure/hsexpo
|
||||||
|
# Example scripts cannot be in a subdirectory
|
||||||
|
mv -v Doc/examples examples
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
@ -77,7 +75,7 @@ export LANG=en_US.UTF-8
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst
|
%doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst
|
||||||
%doc Doc/
|
%doc Doc/ examples/
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{python_sitearch}/Bio/
|
%{python_sitearch}/Bio/
|
||||||
%{python_sitearch}/BioSQL/
|
%{python_sitearch}/BioSQL/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user