2022-01-12 10:01:26 +00:00
|
|
|
%global rc_ver 1
|
2021-08-09 23:47:07 +00:00
|
|
|
%global maj_ver 13
|
2021-02-19 21:10:47 +00:00
|
|
|
%global min_ver 0
|
2022-01-12 10:01:26 +00:00
|
|
|
%global patch_ver 1
|
2021-06-03 04:49:39 +00:00
|
|
|
%global mlir_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
|
|
|
%global mlir_srcdir llvm-project-%{mlir_version}%{?rc_ver:rc%{rc_ver}}.src
|
2020-09-02 07:05:41 +00:00
|
|
|
|
2021-05-20 15:46:41 +00:00
|
|
|
%if %{with snapshot_build}
|
|
|
|
%undefine rc_ver
|
|
|
|
%global llvm_snapshot_vers pre%{llvm_snapshot_yyyymmdd}.g%{llvm_snapshot_git_revision_short}
|
|
|
|
%global maj_ver %{llvm_snapshot_version_major}
|
|
|
|
%global min_ver %{llvm_snapshot_version_minor}
|
|
|
|
%global patch_ver %{llvm_snapshot_version_patch}
|
2021-09-27 16:06:53 +00:00
|
|
|
%global mlir_srcdir llvm-project-%{maj_ver}.%{min_ver}.%{patch_ver}.src
|
2021-05-20 15:46:41 +00:00
|
|
|
%endif
|
|
|
|
|
2020-09-02 07:05:41 +00:00
|
|
|
Name: mlir
|
2021-05-20 15:46:41 +00:00
|
|
|
Version: %{mlir_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_vers:~%{llvm_snapshot_vers}}
|
2022-01-12 10:01:26 +00:00
|
|
|
Release: 1%{?dist}
|
2020-09-02 07:05:41 +00:00
|
|
|
Summary: Multi-Level Intermediate Representation Overview
|
|
|
|
|
|
|
|
License: ASL 2.0 with exceptions
|
|
|
|
URL: http://mlir.llvm.org
|
2021-05-20 15:46:41 +00:00
|
|
|
%if %{with snapshot_build}
|
2021-09-27 13:16:30 +00:00
|
|
|
Source0: %{llvm_snapshot_source_prefix}llvm-project-%{llvm_snapshot_yyyymmdd}.src.tar.xz
|
2021-05-20 15:46:41 +00:00
|
|
|
%else
|
2022-01-12 10:01:26 +00:00
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:-rc%{rc_ver}}/%{mlir_srcdir}.tar.xz
|
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:-rc%{rc_ver}}/%{mlir_srcdir}.tar.xz.sig
|
2020-12-02 10:03:22 +00:00
|
|
|
Source2: tstellar-gpg-key.asc
|
2021-05-20 15:46:41 +00:00
|
|
|
%endif
|
2020-09-02 07:05:41 +00:00
|
|
|
|
2021-01-14 16:13:17 +00:00
|
|
|
# Unexpected linking error: neither -j1, disabling lto, LD_LIBRARY_PATH, rpath work
|
2020-09-02 07:05:41 +00:00
|
|
|
ExcludeArch: armv7hl
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: llvm-devel = %{version}
|
|
|
|
BuildRequires: llvm-test = %{version}
|
|
|
|
|
|
|
|
# For origin certification
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
|
|
|
%description
|
|
|
|
The MLIR project is a novel approach to building reusable and extensible
|
|
|
|
compiler infrastructure. MLIR aims to address software fragmentation,
|
|
|
|
improve compilation for heterogeneous hardware, significantly reduce
|
|
|
|
the cost of building domain specific compilers, and aid in connecting
|
|
|
|
existing compilers together.
|
|
|
|
|
2021-08-10 06:27:18 +00:00
|
|
|
%package static
|
|
|
|
Summary: MLIR static files
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description static
|
|
|
|
MLIR static files.
|
|
|
|
|
2020-09-02 07:05:41 +00:00
|
|
|
%package devel
|
|
|
|
Summary: MLIR development files
|
2021-08-10 07:45:59 +00:00
|
|
|
Requires: %{name}-static%{?_isa} = %{version}-%{release}
|
2020-09-02 07:05:41 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
MLIR development files.
|
|
|
|
|
|
|
|
%prep
|
2021-05-20 15:46:41 +00:00
|
|
|
%if %{without snapshot_build}
|
2020-09-02 07:05:41 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
2021-05-20 15:46:41 +00:00
|
|
|
%endif
|
2020-09-02 07:05:41 +00:00
|
|
|
%autosetup -n %{mlir_srcdir}/%{name} -p2
|
|
|
|
# remove all but keep mlir
|
|
|
|
find ../* -maxdepth 0 ! -name '%{name}' -exec rm -rf {} +
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
2021-08-10 02:56:54 +00:00
|
|
|
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
2020-09-02 07:05:41 +00:00
|
|
|
-DCMAKE_PREFIX_PATH=%{_libdir}/cmake/llvm/ \
|
2021-02-19 21:10:47 +00:00
|
|
|
-DLLVM_BUILD_UTILS:BOOL=ON \
|
2020-09-02 07:05:41 +00:00
|
|
|
-DMLIR_INCLUDE_DOCS:BOOL=ON \
|
|
|
|
-DMLIR_INCLUDE_TESTS:BOOL=OFF \
|
2021-09-27 13:16:30 +00:00
|
|
|
\
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
-DLLVM_VERSION_SUFFIX="%{llvm_snapshot_vers}" \
|
|
|
|
%endif
|
|
|
|
\
|
2020-09-02 07:05:41 +00:00
|
|
|
-DMLIR_INCLUDE_INTEGRATION_TESTS:BOOL=OFF \
|
2021-02-20 01:18:13 +00:00
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
2020-09-02 07:05:41 +00:00
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
-DLLVM_LIBDIR_SUFFIX=64
|
|
|
|
%else
|
|
|
|
-DLLVM_LIBDIR_SUFFIX=
|
|
|
|
%endif
|
|
|
|
# build process .exe tools normally use rpath or static linkage
|
2021-02-19 21:10:47 +00:00
|
|
|
export LD_LIBRARY_PATH=%{_builddir}/%{mlir_srcdir}/%{name}/%{_build}/%{_lib}
|
2020-09-02 07:05:41 +00:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2021-10-18 09:17:52 +00:00
|
|
|
%if %{with snapshot_build}
|
|
|
|
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCAPI*
|
|
|
|
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCEXE
|
|
|
|
%endif
|
|
|
|
|
2020-09-02 07:05:41 +00:00
|
|
|
%check
|
|
|
|
# build process .exe tools normally use rpath or static linkage
|
|
|
|
%cmake_build --target check-mlir || true
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.TXT
|
|
|
|
%{_libdir}/libmlir_runner_utils.so.%{maj_ver}*
|
|
|
|
%{_libdir}/libmlir_c_runner_utils.so.%{maj_ver}*
|
2021-02-20 01:18:13 +00:00
|
|
|
%{_libdir}/libmlir_async_runtime.so.%{maj_ver}*
|
2021-08-10 02:56:54 +00:00
|
|
|
%{_libdir}/libMLIR*.so.%{maj_ver}*
|
|
|
|
|
2021-08-10 06:27:18 +00:00
|
|
|
%files static
|
|
|
|
%{_libdir}/libMLIR*.a
|
2020-09-02 07:05:41 +00:00
|
|
|
|
2021-05-20 16:16:02 +00:00
|
|
|
%if %{without snapshot_build}
|
|
|
|
# This file is not longer there as a when building snapshots.
|
|
|
|
# Only these exist: libmlir_c_runner_utils.so libmlir_c_runner_utils.so.13
|
|
|
|
%{_libdir}/libmlir_c_runner_utils_static.a
|
|
|
|
%endif
|
|
|
|
|
2020-09-02 07:05:41 +00:00
|
|
|
%files devel
|
2020-09-03 15:51:07 +00:00
|
|
|
%{_bindir}/mlir-tblgen
|
2021-08-10 02:56:54 +00:00
|
|
|
%{_libdir}/libMLIR*.so
|
2020-09-02 07:05:41 +00:00
|
|
|
%{_libdir}/libmlir_runner_utils.so
|
|
|
|
%{_libdir}/libmlir_c_runner_utils.so
|
2021-02-20 01:18:13 +00:00
|
|
|
%{_libdir}//libmlir_async_runtime.so
|
2020-09-02 07:05:41 +00:00
|
|
|
%{_includedir}/mlir
|
|
|
|
%{_includedir}/mlir-c
|
|
|
|
%{_libdir}/cmake/mlir
|
|
|
|
|
|
|
|
%changelog
|
2021-05-20 15:46:41 +00:00
|
|
|
%if %{with snapshot_build}
|
|
|
|
* %{lua: print(os.date("%a %b %d %Y"))} LLVM snapshot build bot
|
|
|
|
- Snapshot build of %{version}
|
|
|
|
%endif
|
|
|
|
|
2022-01-12 10:01:26 +00:00
|
|
|
* Wed Jan 12 2022 Nikita Popov <npopov@redhat.com> - 13.0.1~rc1-1
|
|
|
|
- Update to LLVM 13.0.1rc1
|
|
|
|
|
2021-10-06 01:30:53 +00:00
|
|
|
* Wed Oct 06 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-2
|
|
|
|
- Rebuild for llvm soname bump
|
|
|
|
|
2021-10-01 21:18:18 +00:00
|
|
|
* Fri Oct 01 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
|
|
|
|
- 13.0.0 Release
|
|
|
|
|
2021-09-22 23:11:10 +00:00
|
|
|
* Wed Sep 22 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc3-1
|
|
|
|
- 13.0.0-rc3 Release
|
|
|
|
|
2021-08-10 07:45:59 +00:00
|
|
|
* Tue Aug 10 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-3
|
|
|
|
- Add -static requires back to -devel package
|
|
|
|
|
2021-08-10 06:27:18 +00:00
|
|
|
* Tue Aug 10 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-2
|
|
|
|
- Add back the -static sub-package
|
|
|
|
|
2021-08-09 23:47:07 +00:00
|
|
|
* Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
|
|
|
|
- 13.0.0-rc1 Release
|
|
|
|
|
2021-07-22 15:06:42 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-14 05:58:52 +00:00
|
|
|
* Tue Jul 13 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
|
|
|
|
- 12.0.1 Release
|
|
|
|
|
2021-07-01 17:56:57 +00:00
|
|
|
* Thu Jul 01 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-1
|
|
|
|
- 12.0.1-rc3 Release
|
|
|
|
|
2021-06-03 04:49:39 +00:00
|
|
|
* Wed Jun 02 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-1
|
|
|
|
- 12.0.1-rc1 Release
|
|
|
|
|
2021-04-17 05:29:05 +00:00
|
|
|
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
|
|
|
|
- 12.0.0 Release
|
|
|
|
|
2021-04-08 12:20:22 +00:00
|
|
|
* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.7.rc5
|
|
|
|
- New upstream release candidate
|
|
|
|
|
2021-04-02 10:32:20 +00:00
|
|
|
* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.6.rc4
|
|
|
|
- New upstream release candidate
|
|
|
|
|
2021-03-31 16:35:11 +00:00
|
|
|
* Wed Mar 31 2021 Jonathan Wakely <jwakely@redhat.com> - 12.0.0-0.5.rc3
|
|
|
|
- Rebuilt for removed libstdc++ symbols (#1937698)
|
|
|
|
|
2021-03-11 13:54:53 +00:00
|
|
|
* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3
|
|
|
|
- LLVM 12.0.0 rc3
|
|
|
|
|
2021-03-10 06:34:00 +00:00
|
|
|
* Wed Mar 10 2021 sguelton@redhat.com - 12.0.0-0.3.rc2
|
|
|
|
- rebuilt
|
|
|
|
|
2021-02-24 15:25:14 +00:00
|
|
|
* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2
|
|
|
|
- llvm 12.0.0-rc2 release
|
|
|
|
|
2021-02-19 21:10:47 +00:00
|
|
|
* Thu Feb 18 2021 sguelton@redhat.com - 12.0.0-0.1.rc1
|
|
|
|
- llvm 12.0.0-rc1 release
|
|
|
|
|
2021-01-26 20:33:54 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.1.0-0.3.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-23 15:43:30 +00:00
|
|
|
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2
|
|
|
|
- llvm 11.1.0-rc2 release
|
|
|
|
|
2021-01-14 16:13:17 +00:00
|
|
|
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
|
|
|
|
- 11.1.0-rc1 release
|
|
|
|
|
2021-01-06 09:43:25 +00:00
|
|
|
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
|
|
|
|
- LLVM 11.0.1 final
|
|
|
|
|
2020-12-22 20:45:46 +00:00
|
|
|
* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2
|
|
|
|
- llvm 11.0.1-rc2
|
|
|
|
|
2020-12-02 10:03:22 +00:00
|
|
|
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
|
|
|
|
- llvm 11.0.1-rc1
|
|
|
|
|
2020-10-15 05:26:53 +00:00
|
|
|
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
|
|
|
|
- Fix NVR
|
|
|
|
|
2020-10-12 11:30:17 +00:00
|
|
|
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.6
|
|
|
|
- llvm 11.0.0 - final release
|
|
|
|
|
2020-10-08 09:12:22 +00:00
|
|
|
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.5.rc6
|
|
|
|
- 11.0.0-rc6
|
|
|
|
|
2020-10-02 07:15:07 +00:00
|
|
|
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.4.rc5
|
|
|
|
- 11.0.0-rc5 Release
|
|
|
|
|
2020-09-27 13:20:27 +00:00
|
|
|
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.3.rc3
|
|
|
|
- Fix NVR
|
|
|
|
|
2020-09-24 14:30:18 +00:00
|
|
|
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
|
|
|
|
- 11.0.0-rc3 Release
|
|
|
|
|
2020-09-03 15:51:07 +00:00
|
|
|
* Wed Sep 02 2020 sguelton@redhat.com - 11.0.0-0.2.rc2
|
|
|
|
- Package mlir-tblgen
|
|
|
|
|
2020-09-02 07:05:41 +00:00
|
|
|
* Wed Aug 12 2020 Cristian Balint <cristian.balint@gmail.com> - 11.0.0-0.1.rc1
|
|
|
|
- Initial version.
|
|
|
|
|