forked from pool/python-imageio
- Fix BuildRequires ("freeimage-devel" instead of "libfreeimage3"), and
remove superfluous Requires for libfreeimage3. - Remove shebangs from non-scripts in shipped plugins. - Add python-imageio-rpmlintrc ... we install zero-length files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imageio?expand=0&rev=7
This commit is contained in:
1
python-imageio-rpmlintrc
Normal file
1
python-imageio-rpmlintrc
Normal file
@@ -0,0 +1 @@
|
||||
addFilter("W: zero-length /usr/lib/python.*/site-packages/imageio/resources/shipped_resources_go_here")
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 5 12:19:11 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||
|
||||
- Fix BuildRequires ("freeimage-devel" instead of "libfreeimage3"), and
|
||||
remove superfluous Requires for libfreeimage3.
|
||||
- Remove shebangs from non-scripts in shipped plugins.
|
||||
- Add python-imageio-rpmlintrc ... we install zero-length files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 21 16:43:24 UTC 2018 - arun@gmx.de
|
||||
|
||||
|
||||
@@ -26,16 +26,16 @@ Summary: Python library for reading and writing image, video, and related
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://imageio.github.io/
|
||||
Source: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/imageio/imageio-%{version}.tar.gz
|
||||
Source1: python-imageio-rpmlintrc
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: ffmpeg
|
||||
BuildRequires: libfreeimage3
|
||||
BuildRequires: freeimage-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: ffmpeg
|
||||
Requires: libfreeimage3
|
||||
Requires: python-numpy
|
||||
Recommends: libfreeimageplus3
|
||||
BuildArch: noarch
|
||||
@@ -53,6 +53,12 @@ data, and scientific formats.
|
||||
%prep
|
||||
%setup -q -n imageio-%{version}
|
||||
|
||||
# Plugins are not executable scripts
|
||||
for plgpy in imageio/plugins/_*.py ; do
|
||||
echo "Fixing $plgpy..."
|
||||
sed -i -e '1{/\/usr\/bin.*python/d}' $plgpy
|
||||
done
|
||||
|
||||
%build
|
||||
export IMAGEIO_NO_INTERNET=1
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user