forked from pool/python-pillow-heif
Accepting request 1176787 from home:rrahl0
had to adjust the flag for x265 OBS-URL: https://build.opensuse.org/request/show/1176787 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pillow-heif?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
python-pillow-heif-0.16.0.tar.gz
Normal file
3
python-pillow-heif-0.16.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d95004bb77aa640f80617716aa21bc092ec06307f6f2ad423deeeda07b4d29c
|
||||
size 14899409
|
4
python-pillow-heif.changes
Normal file
4
python-pillow-heif.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 22 10:26:09 UTC 2024 - Richard Rahl <rrahl0@disroot.org>
|
||||
|
||||
- initial packaging
|
79
python-pillow-heif.spec
Normal file
79
python-pillow-heif.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
#
|
||||
# spec file for package python-pillow-heif
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with x265
|
||||
%bcond_with libde265
|
||||
%define BUILD_ORIG 0
|
||||
Name: python-pillow-heif
|
||||
Version: 0.16.0
|
||||
Release: 0
|
||||
Summary: Python interface for libheif library
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/bigcat88/pillow_heif
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pillow-heif/pillow_heif-%{version}.tar.gz#/python-pillow-heif-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 67.8}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(aom) >= 3.3.0
|
||||
BuildRequires: pkgconfig(libavif)
|
||||
BuildRequires: pkgconfig(libheif) >= 1.17.0
|
||||
%if %{with x265}
|
||||
BuildRequires: pkgconfig(libde265} >= 1.0.8
|
||||
BuildRequires: pkgconfig(x265)
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Pillow >= 9.5.0}
|
||||
BuildRequires: %{python_module Pympler}
|
||||
BuildRequires: %{python_module defusedxml}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module opencv}
|
||||
BuildRequires: %{python_module pillow-heif = %{version}}
|
||||
BuildRequires: %{python_module pytest >= 6.0.0}
|
||||
# /SECTION
|
||||
Requires: python-Pillow >= 9.5.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python interface for libheif library
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pillow_heif-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%if 0%{BUILD_ORIG}
|
||||
# tests need nonfree codecs
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitearch}/pillow_heif
|
||||
%{python_sitearch}/pillow_heif-%{version}.dist-info
|
||||
%{python_sitearch}/_pillow_heif.cpython-*.so
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user