From f323b4403cc2f6ae0b0c7837f84f7d19d8da9afcf54b3733fcdb69caf6c0e67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 1 Mar 2021 09:48:36 +0000 Subject: [PATCH] Accepting request 875849 from home:jayvdb:py-submit One of the engines supported by sorl-thumbnail 1.1k github stars sample of applications using it at https://www.wheelodex.org/projects/wand/rdepends/ OBS-URL: https://build.opensuse.org/request/show/875849 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Wand?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + Wand-0.6.6.tar.gz | 3 +++ python-Wand.changes | 19 +++++++++++++ python-Wand.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Wand-0.6.6.tar.gz create mode 100644 python-Wand.changes create mode 100644 python-Wand.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Wand-0.6.6.tar.gz b/Wand-0.6.6.tar.gz new file mode 100644 index 0000000..71e4e36 --- /dev/null +++ b/Wand-0.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:540a2da5fb3ada1f0abf6968e0fa01ca7de6cd517f3be5c52d03a4fc8d54d75e +size 11477246 diff --git a/python-Wand.changes b/python-Wand.changes new file mode 100644 index 0000000..3b23d58 --- /dev/null +++ b/python-Wand.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Mon Mar 1 01:50:31 UTC 2021 - John Vandenberg + +- Update to v0.6.6 + +------------------------------------------------------------------- +Mon Feb 8 11:49:19 UTC 2021 - John Vandenberg + +- Update to v0.6.5 + +------------------------------------------------------------------- +Sun Jun 7 16:30:40 UTC 2020 - John Vandenberg + +- Update to v0.6.1 + +------------------------------------------------------------------- +Tue Mar 31 11:55:15 PM UTC 2020 - John Vandenberg + +- Initial spec for v0.5.9 diff --git a/python-Wand.spec b/python-Wand.spec new file mode 100644 index 0000000..9e3385e --- /dev/null +++ b/python-Wand.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-Wand +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-Wand +Version: 0.6.6 +Release: 0 +Summary: Ctypes-based simple MagickWand API binding for Python +License: MIT +Group: Development/Languages/Python +URL: https://github.com/emcconville/wand +Source: https://files.pythonhosted.org/packages/source/W/Wand/Wand-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +Requires: ImageMagick +BuildRequires: ImageMagick-devel +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module psutil >= 1.0.1} +BuildRequires: %{python_module pytest >= 2.3.0} +BuildRequires: (python3-numpy if python3-base < 3.8) +BuildRequires: (python38-numpy if python38-base) +# /SECTION +%python_subpackages + +%description +Ctypes-based simple MagickWand API binding for Python. + +%prep +%setup -q -n Wand-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Three tests failing with +# wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy `PDF' +# due to https://build.opensuse.org/package/view_file/graphics/ImageMagick/ImageMagick-configuration-SUSE.patch +%pytest -rs -k 'not (test_resolution_set_03 or test_resolution_set_04 or test_read_with_colorspace)' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog