Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python-scikit-image
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 28
[-]
[+]
Added
python-scikit-image.spec
@@ -0,0 +1,81 @@ +# +# spec file for package python-scikit-image for Mer, based on OpenSuse version +# + +Name: python-scikit-image +Version: 0.9.3 +Release: 0 +Summary: Collection of algorithms for image processing in Python +License: BSD-3-Clause +Group: Productivity/Scientific/Other +Packager: Roberto Colistete Jr. <numpy-discussion@scipy.org> +Url: http://scikit-image.org/ +#Source0: https://pypi.python.org/packages/source/s/scikit-image/scikit-image-%{version}.tar.gz +Source0: scikit-image-%{version}.tar.gz +BuildRequires: fdupes +#BuildRequires: freeimage-devel +BuildRequires: python-Cython >= 0.17 +BuildRequires: python-devel >= 2.5 +#BuildRequires: python-matplotlib >= 1.0 +#BuildRequires: python-nose +#BuildRequires: python-nose-cover3 +BuildRequires: python-numpy-devel >= 1.6 +#BuildRequires: python-pyamg +#BuildRequires: python-qt4-devel +#BuildRequires: python-scipy >= 0.10 +BuildRequires: python-setuptools +Requires: python >= 2.5 +Requires: python-Cython >= 0.17 +Requires: python-matplotlib >= 1.0 +Requires: python-numpy >= 1.6 +#Requires: python-scipy >= 0.10 +#Recommends: libfreeimage3 +#Recommends: python-pyamg +#Recommends: python-qt4 +Obsoletes: python-scikits-image < %{version} +Provides: python-scikits-image = %{version} +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +%{name} is a collection of algorithms for image processing in Python. +It is available free of charge and free of restriction. + +%prep +%setup -q -n scikit-image-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes -s %{buildroot} +mv %{buildroot}%{_bindir}/skivi %{buildroot}%{_bindir}/skivi-%{py_ver} +ln -s %{_bindir}/skivi-%{py_ver} %{buildroot}%{_bindir}/skivi + +%pre +# Since /usr/bin/skivi became ghosted to be used with update-alternatives, we have to get rid +# of the old binary resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/skivi ]] && rm -f %{_bindir}/skivi +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/skivi skivi %{_bindir}/skivi-%{py_ver} 30 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove skivi %{_bindir}/skivi-%{py_ver} +fi + +%files +%defattr(-,root,root) +%doc CONTRIBUTING.txt CONTRIBUTORS.txt LICENSE.txt TASKS.txt TODO.txt +%ghost %{_bindir}/skivi +%{_bindir}/skivi-%{py_ver} +%{python_sitearch}/skimage/ +%{python_sitearch}/scikit_image-%{version}-py*.egg-info + +%changelog +