Blame SPECS/libomp.spec

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