%global _empty_manifest_terminate_build 0 Name: transformers Version: 4.38.1 Release: 1%{?dist} Summary: State-of-the-art Natural Language Processing for Pytorch, TensorFlow, and JAX. License: Apache-2.0 URL: https://huggingface.co/transformers/ Source0: https://gitee.com/liujunjun2023/openatom-transformers/transformers-4.38.1.tar.gz BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: cmake Requires: python3-future Requires: python3-numpy Requires: python3-requests %description PyTorch is a Python package that provides two high-level features: - Tensor computation (like NumPy) with strong GPU acceleration - Deep neural networks built on a tape-based autograd system You can reuse your favorite Python packages such as NumPy, SciPy, and Cython to extend PyTorch when needed. %prep %autosetup -p1 -n %{name}-%{version} %build echo "Starting build process in $(pwd)" python3 setup.py build echo "Build process completed" %install echo "Starting install process" python3 setup.py install --skip-build --root %{buildroot} install -d -m755 %{buildroot}/%{_pkgdocdir} echo "Install process completed" cp -arf docs %{buildroot}/%{_pkgdocdir} cp -arf examples %{buildroot}/%{_pkgdocdir} cp -arf LICENSE %{buildroot}/%{_pkgdocdir} cp -arf README*.md %{buildroot}/%{_pkgdocdir} cp -arf SECURITY.md %{buildroot}/%{_pkgdocdir} cp -arf CODE_OF_CONDUCT.md %{buildroot}/%{_pkgdocdir} cp -arf CONTRIBUTING.md %{buildroot}/%{_pkgdocdir} cp -arf ISSUES.md %{buildroot}/%{_pkgdocdir} cp -arf awesome-transformers.md %{buildroot}/%{_pkgdocdir} %files %doc README*.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUES.md awesome-transformers.md %license LICENSE %{python3_sitearch}/transformers* %dir %{_pkgdocdir} %{_pkgdocdir}/docs %{_pkgdocdir}/examples %changelog * Mon Feb 28 2022 Junjunliu <172074482@qq.com> - 4.38.1-1 - First build of transformers RPM