diff --git a/llvm-mlir.spec b/llvm-mlir.spec index 998c571c9f142e68142f4259cc8bde474e8e2e07..44a660b07531b820203e389effba6638c08f9eda 100644 --- a/llvm-mlir.spec +++ b/llvm-mlir.spec @@ -33,9 +33,9 @@ Name: %{pkg_name} Version: %{mlir_version} -Release: 3 +Release: 4 Summary: The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. -License: Apache 2.0 +License: Apache-2.0 URL: https://mlir.llvm.org/ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{mlir_version}/%{mlir_srcdir}.tar.xz @@ -138,10 +138,10 @@ Requires: python3-numpy -DLLVM_TARGETS_TO_BUILD="AArch64" %endif -%ninja_build +%cmake_build %install -%ninja_install +%cmake_install mkdir -p %{buildroot}/%{python3_sitearch} mv %{buildroot}/usr/python_packages/mlir_core/mlir %{buildroot}/%{python3_sitearch} @@ -150,8 +150,8 @@ rmdir %{buildroot}/usr/python_packages/mlir_core %{buildroot}/usr/python_package # Unneeded files. rm -rf %{buildroot}/usr/src/python -%check %if %{with check} +%check # TODO: Investigate the following issues. rm -rf test/mlir-pdll-lsp-server/compilation_database.test rm -rf test/mlir-pdll-lsp-server/completion.test @@ -179,7 +179,7 @@ rm -rf test/tblgen-lsp-server/hover.test # build process .exe tools normally use rpath or static linkage export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:%{buildroot}/%{python3_sitearch}/mlir/_mlir_libs export PYTHONPATH=%{buildroot}/%{python3_sitearch} -%ninja_build check-mlir +%cmake_build --target check-mlir %endif %files @@ -209,6 +209,9 @@ export PYTHONPATH=%{buildroot}/%{python3_sitearch} %{python3_sitearch}/mlir/ %changelog +* Mon Nov 11 2024 Funda Wang - 17.0.6-4 +- adopt to new cmake macro + * Tue Aug 20 2024 liyunfei - 17.0.6-3 - Add BiSheng Autotuner support. diff --git a/llvm-mlir.yaml b/llvm-mlir.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7c50f6ac87dd806f0574c6b3a4fd97b11d3e479 --- /dev/null +++ b/llvm-mlir.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: llvm/llvm-project +tag_prefix: ^llvmorg- +separator: .