2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
b2bb0264 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Name: python-imagesize
Version: 0.7.1 |
2d879f6b |
Release: 2%{?dist} |
b2bb0264 |
Summary: python module to analyze jpeg/jpeg2000/png/gif image header and return image size.
License: MIT
Group: Development/Languages/Python
Url: https://github.com/shibukawa/imagesize_py
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://pypi.python.org/packages/53/72/6c6f1e787d9cab2cc733cf042f125abec07209a58308831c9f292504e826/imagesize_py-%{version}.tar.gz
%define sha1 imagesize_py=b0ae3151495d8bbb207170bff7ed253d929e0dce
BuildRequires: python2
BuildRequires: python2-devel
BuildRequires: python2-libs
BuildRequires: python-setuptools
BuildRequires: python-pytest
Requires: python2
Requires: python2-libs
BuildArch: noarch
%description
python module to analyze jpeg/jpeg2000/png/gif image header and return image size.
%package -n python3-imagesize
Summary: python module to analyze jpeg/jpeg2000/png/gif image header and return image size.
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-pytest
Requires: python3
Requires: python3-libs
%description -n python3-imagesize
Python 3 version.
%prep
%setup -n imagesize_py-%{version}
rm -rf ../p3dir
cp -a . ../p3dir
%build
python2 setup.py build
pushd ../p3dir
python3 setup.py build
popd
%install
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
pushd ../p3dir
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
popd
%check |
2d879f6b |
py.test2
py.test3 |
b2bb0264 |
%files
%defattr(-,root,root,-) |
2d879f6b |
%{python2_sitelib}/* |
b2bb0264 |
%files -n python3-imagesize
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.7.1-2
- Change python to python2 |
b2bb0264 |
* Tue Apr 25 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.7.1-1
- Initial |