diff --git a/albumentations-1.3.1.tar.gz b/albumentations-1.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b5516c0befa8b0dd752ed5aa01f46fd3ed9efbd8 Binary files /dev/null and b/albumentations-1.3.1.tar.gz differ diff --git a/python-albumentations.spec b/python-albumentations.spec new file mode 100644 index 0000000000000000000000000000000000000000..d63dd6fdcc454b11e1d3a1bfff3e212e94773969 --- /dev/null +++ b/python-albumentations.spec @@ -0,0 +1,76 @@ +%define anolis_release 1 +%global pypi_name albumentations +%global pypi_version 1.3.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: Fast image augmentation library and easy to use wrapper around other libraries + +License: MIT +URL: https://github.com/albumentations-team/albumentations +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel python3-pip +BuildRequires: python3dist(imgaug) >= 0.4 +BuildRequires: python3dist(numpy) >= 1.11.1 +BuildRequires: python3dist(opencv) >= 4.1.1 +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pyyaml) +BuildRequires: python3dist(qudida) >= 0.0.4 +BuildRequires: python3dist(scikit-image) >= 0.16.1 +BuildRequires: python3dist(scipy) >= 1.1 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(imgaug) +BuildRequires: python3dist(torchvision) +BuildRequires: python3dist(wheel) +BuildRequires: pytorch + +%description +Albumentations is a Python library for image augmentation. Image augmentation is used in deep +learning and computer vision tasks to increase the quality of trained models. The purpose of +image augmentation is to create new training samples from the existing data. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(imgaug) >= 0.4 +Requires: python3dist(numpy) >= 1.11.1 +Requires: python3dist(opencv) >= 4.1.1 +Requires: python3dist(pytest) +Requires: python3dist(pyyaml) +Requires: python3dist(qudida) >= 0.0.4 +Requires: python3dist(scikit-image) >= 0.16.1 +Requires: python3dist(scipy) >= 1.1 +Requires: python3dist(imgaug) +%description -n python3-%{pypi_name} +Albumentations is a Python library for image augmentation. Image augmentation is used in deep +learning and computer vision tasks to increase the quality of trained models. The purpose of +image augmentation is to create new training samples from the existing data. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + + +%check +%pyproject_check_import + + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +* Tue Jan 23 2024 zhongling.h - 1.3.1-1 +- Initial package.