Group :: Development/Python3
RPM: python3-module-glymur
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname glymur
%def_with check
Name: python3-module-%oname
Version: 0.12.8
Release: alt1
Summary: Python interface to OpenJPEG library for reading and writing JPEG 2000 images.
License: MIT
Group: Development/Python3
URL: https://github.com/quintusdias/glymur
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-numpy
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-lxml
BuildRequires: python3-module-scikit-image
%endif
BuildArch: noarch
Source: %name-%version.tar
%description
%summary
%prep
%setup
sed -i 's/0.12.3/0.12.4/' glymur/version.py
sed -i 's/0.12.3/0.12.4/' setup.cfg
%build
%pyproject_build
%install
%pyproject_install
# don't install tests in such directory please
rm -rf %buildroot%python3_sitelibdir/tests
%check
py.test3
%files
%doc README.md CHANGES.txt LICENSE.txt
%_bindir/jp2dump
%_bindir/tiff2jp2
%python3_sitelibdir/%oname
%python3_sitelibdir/Glymur-%version.dist-info
%changelog
…
Full changelog you can see here
%def_with check
Name: python3-module-%oname
Version: 0.12.8
Release: alt1
Summary: Python interface to OpenJPEG library for reading and writing JPEG 2000 images.
License: MIT
Group: Development/Python3
URL: https://github.com/quintusdias/glymur
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-numpy
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-lxml
BuildRequires: python3-module-scikit-image
%endif
BuildArch: noarch
Source: %name-%version.tar
%description
%summary
%prep
%setup
sed -i 's/0.12.3/0.12.4/' glymur/version.py
sed -i 's/0.12.3/0.12.4/' setup.cfg
%build
%pyproject_build
%install
%pyproject_install
# don't install tests in such directory please
rm -rf %buildroot%python3_sitelibdir/tests
%check
py.test3
%files
%doc README.md CHANGES.txt LICENSE.txt
%_bindir/jp2dump
%_bindir/tiff2jp2
%python3_sitelibdir/%oname
%python3_sitelibdir/Glymur-%version.dist-info
%changelog
…
Full changelog you can see here