15
0
Files
python-pgmagick/python-pgmagick.spec
Dirk Mueller cb5af77b41 - update to 0.7.6:
* #70, #67 : Support M1 Mac
- update to 0.7.5:
  * #50 : Enable passing Py3 bytes as pixels for constructor with
    StorageType
  * #51 : Fix screwed parameters
- update to 0.7.4:
  * fix libboost_python filename for macOSX environment with
    Homebrew. ( 8ad8f917e93ba66c49d01952ba5488cd473a4fc4 )
  * `setup.py` now looks for `libboost_python2x`,
    `libboost_python2x-mt`, `libboost_python3x` and
    `libboost_python3x-mt` as well.
- drop reproducible.patch (upstream)
  * fix libboost_python filename for macOSX environment with

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pgmagick?expand=0&rev=10
2023-12-27 14:30:18 +00:00

75 lines
2.1 KiB
RPMSpec

#
# spec file for package python-pgmagick
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-pgmagick
Version: 0.7.6
Release: 0
Summary: Yet Another Python wrapper for GraphicsMagick
License: MIT
Group: Development/Languages/Python
URL: https://github.com/hhatto/pgmagick/
Source: https://files.pythonhosted.org/packages/source/p/pgmagick/pgmagick-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: ghostscript-fonts-std
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(GraphicsMagick++)
%if 0%{?suse_version} >= 1500
BuildRequires: libboost_python3-devel
%if %{with python2}
BuildRequires: libboost_python-devel
%endif
%else
BuildRequires: boost-devel
%endif
%python_subpackages
%description
The pgmagick package is a yet another boost.python based
wrapper for GraphicsMagick.
%prep
%autosetup -p1 -n pgmagick-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
mkdir tester
pushd tester
cp -r ../test .
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v
popd
rm -r tester
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitearch}/pgmagick/
%{python_sitearch}/pgmagick-%{version}-py*.egg-info/
%changelog