diff --git a/pip/files/pyg-lib-common.file b/pip/files/pyg-lib-common.file index 9f3645cb7c5..5c8f219eab8 100644 --- a/pip/files/pyg-lib-common.file +++ b/pip/files/pyg-lib-common.file @@ -1,8 +1,9 @@ ## INCLUDE cpp-standard ## INCLUDE compilation_flags +%define default_pkgname py3-pyg-lib Requires: zlib ninja Patch0: patches/pip/pyg-lib -%define source0 git+https://github.com/pyg-team/pyg-lib?obj=master/%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/source.tar.gz +%define source0 git+https://github.com/pyg-team/pyg-lib?obj=master/%{realversion}&export=pyg-lib-%{realversion}&submodules=1&output=/source.tar.gz %define patchsrc0 \ grep -q 'CMAKE_CXX_STANDARD 17' CMakeLists.txt && sed -i -e 's|CMAKE_CXX_STANDARD 17|CMAKE_CXX_STANDARD %{cms_cxx_standard}|' CMakeLists.txt &&\ grep -q 'march=native' third_party/METIS/GKlib/GKlibSystem.cmake && sed -i -e '/-march=native/d' third_party/METIS/GKlib/GKlibSystem.cmake diff --git a/pip/files/torch-cluster-common.file b/pip/files/torch-cluster-common.file index 11a21d243cb..62bc373e415 100644 --- a/pip/files/torch-cluster-common.file +++ b/pip/files/torch-cluster-common.file @@ -1,4 +1,5 @@ ## INCLUDE cpp-standard +%define default_pkgname py3-torch-cluster %define enable_cpp_api yes %define patchsrc \ grep -q 'CMAKE_CXX_STANDARD 14' CMakeLists.txt \ diff --git a/pip/files/torch-scatter-common.file b/pip/files/torch-scatter-common.file index 0e34c571a18..eec73dc518d 100644 --- a/pip/files/torch-scatter-common.file +++ b/pip/files/torch-scatter-common.file @@ -1,4 +1,5 @@ ## INCLUDE cpp-standard +%define default_pkgname py3-torch-scatter %define enable_cpp_api yes %define patchsrc \ grep -q 'CMAKE_CXX_STANDARD 14' CMakeLists.txt \ diff --git a/pip/files/torch-sparse-common.file b/pip/files/torch-sparse-common.file index a0ab81e08b7..00e5c53aadb 100644 --- a/pip/files/torch-sparse-common.file +++ b/pip/files/torch-sparse-common.file @@ -1,4 +1,5 @@ ## INCLUDE cpp-standard +%define default_pkgname py3-torch-sparse %define enable_cpp_api yes %define patchsrc \ grep -q 'CMAKE_CXX_STANDARD 14' CMakeLists.txt \ diff --git a/pip/torch.file b/pip/torch.file index 1879579460e..df9e9bec5c5 100644 --- a/pip/torch.file +++ b/pip/torch.file @@ -1,7 +1,7 @@ ## INCLUDE microarch_flags ## INCLUDE cpp-standard - -%define source0 git+https://github.com/pytorch/pytorch.git?obj=main/v%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz +%define default_pkgname py3-torch +%define source0 git+https://github.com/pytorch/pytorch.git?obj=main/v%{realversion}&export=torch-%{realversion}&submodules=1&output=/source.tar.gz Source97: pip/files/torch-build-env Source98: FindEigen3.cmake Source99: scram-tools.file/tools/eigen/env