libomp/libomp.spec

382 lines
11 KiB
RPMSpec
Raw Normal View History

2021-08-11 20:30:55 +00:00
%global libomp_version 13.0.0
2021-10-04 15:58:12 +00:00
#global rc_ver 3
2021-06-01 23:13:05 +00:00
%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
2018-11-27 10:55:16 +00:00
2018-03-28 06:00:35 +00:00
%ifarch ppc64le
%global libomp_arch ppc64
%else
%global libomp_arch %{_arch}
%endif
2017-11-20 18:07:34 +00:00
Name: libomp
2021-06-01 23:13:05 +00:00
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
2021-08-11 20:30:55 +00:00
Release: 1%{?dist}
2017-11-20 18:07:34 +00:00
Summary: OpenMP runtime for clang
License: NCSA
2021-01-06 09:43:19 +00:00
URL: http://openmp.llvm.org
2021-06-04 05:50:03 +00:00
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig
2020-12-02 07:23:06 +00:00
Source2: tstellar-gpg-key.asc
2020-09-01 10:13:51 +00:00
Source3: run-lit-tests
Source4: lit.fedora.cfg.py
2017-11-20 18:07:34 +00:00
Patch0: 0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch
2017-11-20 18:07:34 +00:00
BuildRequires: gcc
BuildRequires: gcc-c++
2017-11-20 18:07:34 +00:00
BuildRequires: cmake
BuildRequires: ninja-build
2017-11-20 18:07:34 +00:00
BuildRequires: elfutils-libelf-devel
BuildRequires: perl
BuildRequires: perl-Data-Dumper
BuildRequires: perl-Encode
2018-03-28 06:00:35 +00:00
BuildRequires: libffi-devel
2017-11-20 18:07:34 +00:00
# For gpg source verification
BuildRequires: gnupg2
2021-08-11 20:30:55 +00:00
# The AMDGCN device RTL requires clang and llvm-link to build
BuildRequires: clang
BuildRequires: llvm
# libomptarget needs the llvm cmake files
BuildRequires: llvm-devel
2017-11-20 18:07:34 +00:00
Requires: elfutils-libelf%{?isa}
# libomp does not support s390x.
ExcludeArch: s390x
%description
OpenMP runtime for clang.
%package devel
Summary: OpenMP header files
Requires: clang-resource-filesystem%{?isa} = %{version}
2017-11-20 18:07:34 +00:00
%description devel
OpenMP header files.
2018-03-28 06:01:07 +00:00
%package test
Summary: OpenMP regression tests
Requires: %{name}%{?isa} = %{version}-%{release}
Requires: %{name}-devel%{?isa} = %{version}-%{release}
2018-03-28 06:01:07 +00:00
Requires: clang
Requires: llvm
Requires: gcc
Requires: gcc-c++
Requires: python3-lit
%description test
OpenMP regression tests
2017-11-20 18:07:34 +00:00
%prep
2020-09-01 10:13:51 +00:00
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
2021-03-09 14:13:11 +00:00
%autosetup -n %{libomp_srcdir} -p2
2017-11-20 18:07:34 +00:00
%build
2020-08-08 19:19:53 +00:00
# LTO causes build failures in this package. Disable LTO for now
# https://bugzilla.redhat.com/show_bug.cgi?id=1988155
2020-08-08 19:19:53 +00:00
%define _lto_cflags %{nil}
2017-11-20 18:07:34 +00:00
%cmake -GNinja \
2017-11-20 18:07:34 +00:00
-DLIBOMP_INSTALL_ALIASES=OFF \
2021-08-11 20:30:55 +00:00
-DLLVM_DIR=%{_libdir}/cmake/llvm \
2021-06-04 05:50:03 +00:00
-DLIBOMP_HEADERS_INSTALL_PATH:PATH=%{_libdir}/clang/%{libomp_version}/include \
2017-11-20 18:07:34 +00:00
%if 0%{?__isa_bits} == 64
2018-01-26 00:17:01 +00:00
-DOPENMP_LIBDIR_SUFFIX=64 \
2017-11-20 18:07:34 +00:00
%else
2018-01-26 00:17:01 +00:00
-DOPENMP_LIBDIR_SUFFIX= \
2017-11-20 18:07:34 +00:00
%endif
%cmake_build
2017-11-20 18:07:34 +00:00
%install
%cmake_install
2017-11-20 18:07:34 +00:00
2018-03-28 06:01:07 +00:00
# Test package setup
%global libomp_srcdir %{_datadir}/libomp/src/
%global libomp_testdir %{libomp_srcdir}/runtime/test/
%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py
%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py
2018-03-28 06:01:07 +00:00
install -d %{buildroot}%{libomp_srcdir}/runtime
cp -R runtime/test %{buildroot}%{libomp_srcdir}/runtime
cp -R runtime/src %{buildroot}%{libomp_srcdir}/runtime
# Generate lit config files. Strip off the last line that initiates the
# test run, so we can customize the configuration.
head -n -1 %{_vpath_builddir}/runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg}
2018-03-28 06:01:07 +00:00
# Install custom fedora config file
2020-09-01 10:13:51 +00:00
cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg}
2018-03-28 06:01:07 +00:00
# Patch lit config files to load custom fedora config
echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_cfg}
2018-03-28 06:01:07 +00:00
# Install test script
install -d %{buildroot}%{_libexecdir}/tests/libomp
2020-09-01 10:13:51 +00:00
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp
2018-03-28 06:01:07 +00:00
2020-02-06 20:47:17 +00:00
# Remove static libraries with equivalent shared libraries
rm -rf %{buildroot}%{_libdir}/libarcher_static.a
2020-07-02 02:33:19 +00:00
%check
%cmake_build --target check-openmp
2017-11-20 18:07:34 +00:00
%files
2021-08-11 20:30:55 +00:00
%license LICENSE.TXT
2017-11-20 18:07:34 +00:00
%{_libdir}/libomp.so
2020-02-06 20:47:17 +00:00
%ifnarch %{arm}
%{_libdir}/libarcher.so
%endif
2021-08-11 20:30:55 +00:00
%ifnarch %{ix86} %{arm}
%{_libdir}/libomptarget-amdgcn*.bc
%{_libdir}/libomptarget.rtl.amdgpu.so
%{_libdir}/libomptarget.rtl.cuda.so
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
%endif
%{_libdir}/libomptarget.so
2017-11-20 18:07:34 +00:00
%files devel
2021-06-04 05:50:03 +00:00
%{_libdir}/clang/%{libomp_version}/include/omp.h
2021-08-11 20:30:55 +00:00
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
2018-01-26 00:17:01 +00:00
%ifnarch %{arm}
2021-06-04 05:50:03 +00:00
%{_libdir}/clang/%{libomp_version}/include/omp-tools.h
%{_libdir}/clang/%{libomp_version}/include/ompt.h
2020-07-02 02:33:19 +00:00
# FIXME: This is probably wrong. Seems like LIBOMP_HEADERS_INSTALL may
# not be respected.
%{_includedir}/ompt-multiplex.h
2018-01-26 00:17:01 +00:00
%endif
2017-11-20 18:07:34 +00:00
2018-03-28 06:01:07 +00:00
%files test
%{_datadir}/libomp
%{_libexecdir}/tests/libomp/
2018-03-28 06:01:07 +00:00
2017-11-20 18:07:34 +00:00
%changelog
2021-10-04 15:58:12 +00:00
* Mon Oct 04 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
- 13.0.0 Release
2021-09-21 16:44:10 +00:00
* Tue Sep 21 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc3-1
- 13.0.0-rc3 Release
2021-08-11 20:30:55 +00:00
* Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
- 13.0.0-rc1 Release
* 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 04:53:16 +00:00
* Tue Jul 13 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
- 12.0.1 Release
2021-07-01 19:16:20 +00:00
* Thu Jul 01 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-1
- Fix install path
2021-06-04 05:50:03 +00:00
* Fri Jun 04 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-2
- Fix install path
2021-06-01 23:13:05 +00:00
* Tue Jun 01 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-1
- 12.0.1-rc1 Release
2021-04-17 03:33:17 +00:00
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
- 12.0.0 Release
2021-04-08 12:20:07 +00:00
* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.7.rc5
- New upstream release candidate
2021-04-02 10:32:17 +00:00
* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.6.rc4
- New upstream release candidate
* 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:39 +00:00
* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3
- LLVM 12.0.0 rc3
2021-03-09 14:00:52 +00:00
* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.3.rc2
- rebuilt
2021-02-24 08:55:22 +00:00
* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2
- 12.0.0-rc2 release
2021-02-22 16:55:18 +00:00
* Mon Feb 22 2021 sguelton@redhat.com - 12.0.0-0.1.rc1
- 12.0.0-rc1 release
* 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 07:33:51 +00:00
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2
- llvm 11.1.0-rc2 release
2021-01-14 16:19:52 +00:00
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
- 11.1.0-rc1 release
2021-01-06 09:43:19 +00:00
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
- LLVM 11.0.1 final
2020-12-22 20:46:41 +00:00
* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2
- llvm 11.0.1-rc2
2020-12-02 07:23:06 +00:00
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
- llvm 11.0.1-rc1
* Wed Oct 28 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-2
- Replace clang-devel dependency with clang-resource-filesystem
2020-10-15 05:23:10 +00:00
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
- Fix NVR
2020-10-12 11:30:10 +00:00
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5
- llvm 11.0.0 - final release
2020-10-08 09:12:15 +00:00
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6
- 11.0.0-rc6
2020-10-02 07:14:58 +00:00
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5
- 11.0.0-rc5 Release
2020-09-27 13:18:32 +00:00
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3
- Fix NVR
2020-09-24 14:16:55 +00:00
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
- 11.0.0-rc3 Release
2020-09-01 10:13:51 +00:00
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
- 11.0.0-rc2 Release
2020-07-02 02:33:19 +00:00
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
- 11.0.0-rc1 Release
* Mon Aug 10 2020 sguelton@redhat.com - 10.0.0-8
- Make gcc dependency explicit, see https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
- use %%license macro
2020-08-08 19:19:53 +00:00
* Sat Aug 08 2020 Jeff Law <releng@fedoraproject.org> - 10.0.0-7
- Disable LTO for now
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-6
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-4
- Use modern cmake macro
- Use gnupg verify
* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-3
- Add Requires: libomp = %{version}-%{release} to libomp-test to avoid
the need to test interoperability between the various combinations of old
and new subpackages.
* Mon Jun 01 2020 sguelton@redhat.com - 10.0.0-2
- Add Requires: libomp-devel = %{version}-%{release} to libomp-test to avoid
the need to test interoperability between the various combinations of old
and new subpackages.
2020-03-30 20:50:46 +00:00
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
- 10.0.0 final
2020-03-25 11:01:31 +00:00
* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6
- 10.0.0 rc6
2020-03-20 22:03:13 +00:00
* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5
- 10.0.0 rc5
2020-03-15 18:57:12 +00:00
* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4
- 10.0.0 rc4
2020-03-05 11:25:46 +00:00
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3
- 10.0.0 rc3
2020-02-14 09:43:22 +00:00
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2
- 10.0.0 rc2
2020-02-06 20:47:17 +00:00
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
- 10.0.0 rc1
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-12-20 02:42:09 +00:00
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
- 9.0.1 Release
2019-09-20 01:44:27 +00:00
* Thu Sep 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
- 9.0.0 Release
2019-08-22 22:25:16 +00:00
* Thu Aug 22 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc3
- 9.0.0-rc3 Release
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Apr 25 2019 Tom Stellard <tstellar@redhat.com> - 8.0.0-2
- Simplify libomp-test package
2019-03-21 05:55:27 +00:00
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
- 8.0.0 final
2019-03-12 14:15:43 +00:00
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.3.rc4
- 8.0.0 Release candidate 4
2019-02-22 08:22:05 +00:00
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
- 8.0.0 Release candidate 2
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
2019-02-13 15:56:02 +00:00
- 8.0.0 Release candidate 1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-11-27 10:55:16 +00:00
* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1
- 7.0.1 Release
2018-09-24 19:46:35 +00:00
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
- 7.0.1 Release
2018-09-12 00:13:54 +00:00
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.2.rc3
- 7.0.0-rc3 Release
2018-08-15 02:38:07 +00:00
* Tue Aug 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc1
- 7.0.1-rc1 Release
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jul 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
- Add -threads option to runtest.sh
2018-06-29 00:48:15 +00:00
* Thu Jun 28 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
- 6.0.1 Release
2018-05-11 23:27:15 +00:00
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
- 6.0.1-rc1 Release
2018-03-28 06:01:07 +00:00
* Wed Mar 28 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-3
- Add test package
2018-03-28 06:00:35 +00:00
* Wed Mar 28 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
- Enable libomptarget plugins
2018-03-09 23:24:39 +00:00
* Fri Mar 09 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
- 6.0.0 Release
2018-02-13 19:05:30 +00:00
* Tue Feb 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc2
- 6.0.0-rc2 Release
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-26 00:17:01 +00:00
* Thu Jan 25 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
- 6.0.0-rc1 Release
2017-12-21 15:46:12 +00:00
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
- 5.0.1 Release.
2017-11-20 18:07:34 +00:00
* Mon May 15 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
- Initial version.