diff --git a/face_alignment-1.4.1.tar.gz b/face_alignment-1.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5db565d21ec23a4d89eeb368a3b22e48c3631ec0 Binary files /dev/null and b/face_alignment-1.4.1.tar.gz differ diff --git a/python-face_alignment.spec b/python-face_alignment.spec new file mode 100644 index 0000000000000000000000000000000000000000..b46f6bdf1167c72e92818502dc38c92e4acfd510 --- /dev/null +++ b/python-face_alignment.spec @@ -0,0 +1,71 @@ +%define anolis_release 1 +%global pypi_name face_alignment +%global pypi_version 1.4.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: Detector 2D or 3D face landmarks from Python + +License: BSD +URL: https://github.com/1adrianb/face-alignment +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel python3-pip +BuildRequires: python3dist(numba) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(opencv) +BuildRequires: python3dist(scikit-image) +BuildRequires: python3dist(scipy) >= 0.17 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(torch) +BuildRequires: python3dist(tqdm) +BuildRequires: python3dist(wheel) +BuildRequires: python3dist(opencv) + +%description +Detect facial landmarks from Python using the world's most accurate face alignment network, +capable of detecting points in both 2D and 3D coordinates. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(numba) +Requires: python3dist(numpy) +Requires: python3dist(opencv) +Requires: python3dist(scikit-image) +Requires: python3dist(scipy) >= 0.17 +Requires: python3dist(torch) +Requires: python3dist(tqdm) +Requires: python3dist(opencv) +%description -n python3-%{pypi_name} +Detect facial landmarks from Python using the world's most accurate face alignment network, +capable of detecting points in both 2D and 3D coordinates. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Mon Feb 19 2024 zhongling.h - 1.4.1-1 +- Initial package.