Blame SPECS/libomp.spec

afb2a6
#%%global rc_ver 3
afb2a6
%global baserelease 1
0f4209
%global libomp_srcdir openmp-%{version}%{?rc_ver:rc%{rc_ver}}.src
0f4209
0f4209
d97994
%ifarch ppc64le
d97994
%global libomp_arch ppc64
d97994
%else
d97994
%global libomp_arch %{_arch}
d97994
%endif
d97994
d97994
Name: libomp
afb2a6
Version: 9.0.1
afb2a6
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
d97994
Summary: OpenMP runtime for clang
d97994
d97994
License: NCSA
d97994
URL: http://openmp.llvm.org	
afb2a6
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{libomp_srcdir}.tar.xz
0f4209
Source1: run-lit-tests
0f4209
Source2: lit.fedora.cfg.py
d97994
d97994
Patch0: 0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch
d97994
d97994
BuildRequires: cmake
d97994
BuildRequires: elfutils-libelf-devel
d97994
BuildRequires: perl
d97994
BuildRequires: perl-Data-Dumper
d97994
BuildRequires: perl-Encode
d97994
BuildRequires: libffi-devel
d97994
d97994
Requires: elfutils-libelf%{?isa}
d97994
d97994
# libomp does not support s390x.
d97994
ExcludeArch: s390x
d97994
d97994
%description
d97994
OpenMP runtime for clang.
d97994
d97994
%package devel
d97994
Summary: OpenMP header files
d97994
Requires: clang-devel%{?isa} = %{version}
d97994
d97994
%description devel
d97994
OpenMP header files.
d97994
d97994
%package test
d97994
Summary: OpenMP regression tests
0f4209
Requires: %{name}%{?isa} = %{version}
0f4209
Requires: %{name}-devel%{?isa} = %{version}
d97994
Requires: clang
d97994
Requires: llvm
d97994
Requires: gcc
d97994
Requires: gcc-c++
d97994
Requires: python3-lit
d97994
d97994
%description test
d97994
OpenMP regression tests
d97994
d97994
%prep
d97994
%autosetup -n openmp-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
d97994
d97994
%build
d97994
mkdir -p _build
d97994
cd _build
d97994
d97994
%cmake .. \
d97994
	-DLIBOMP_INSTALL_ALIASES=OFF \
d97994
	-DLIBOMP_HEADERS_INSTALL_PATH:PATH=%{_libdir}/clang/%{version}/include \
d97994
%if 0%{?__isa_bits} == 64
d97994
	-DOPENMP_LIBDIR_SUFFIX=64 \
d97994
%else
d97994
	-DOPENMP_LIBDIR_SUFFIX= \
d97994
%endif
d97994
d97994
%make_build
d97994
d97994
d97994
%install
d97994
%make_install -C _build
d97994
d97994
# Test package setup
d97994
%global libomp_srcdir %{_datadir}/libomp/src/
d97994
%global libomp_testdir %{libomp_srcdir}/runtime/test/
0f4209
%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py
0f4209
%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py
d97994
d97994
install -d %{buildroot}%{libomp_srcdir}/runtime
d97994
cp -R runtime/test  %{buildroot}%{libomp_srcdir}/runtime
d97994
cp -R runtime/src  %{buildroot}%{libomp_srcdir}/runtime
d97994
0f4209
# Generate lit config files.  Strip off the last line that initiates the
0f4209
# test run, so we can customize the configuration.
0f4209
head -n -1 _build/runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg}
d97994
0f4209
# Install custom fedora config file
0f4209
cp %{SOURCE2} %{buildroot}%{lit_fedora_cfg}
0f4209
0f4209
# Patch lit config files to load custom fedora config
0f4209
echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_cfg}
0f4209
0f4209
# Install test script
0f4209
install -d %{buildroot}%{_libexecdir}/tests/libomp
0f4209
install -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/tests/libomp
d97994
afb2a6
d97994
%files
d97994
%{_libdir}/libomp.so
d97994
%{_libdir}/libomptarget.so
d97994
%ifnarch %{arm} %{ix86}
d97994
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
d97994
%endif
d97994
d97994
%files devel
d97994
%{_libdir}/clang/%{version}/include/omp.h
d97994
%ifnarch %{arm}
0f4209
%{_libdir}/clang/%{version}/include/omp-tools.h
d97994
%{_libdir}/clang/%{version}/include/ompt.h
d97994
%endif
d97994
d97994
%files test
d97994
%{_datadir}/libomp
0f4209
%{_libexecdir}/tests/libomp/
d97994
d97994
%changelog
afb2a6
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
afb2a6
- 9.0.1 Release
afb2a6
afb2a6
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
afb2a6
- 9.0.0 Release
afb2a6
0f4209
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
0f4209
- 8.0.1 release
0f4209
0f4209
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
0f4209
- 8.0.1rc2 Release
0f4209
0f4209
* Mon Apr 29 2019 sguelton@redhat.com - 8.0.0-1
0f4209
- 8.0.0 Release
0f4209
d97994
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
d97994
- 7.0.1 Release
d97994
d97994
* Wed Dec 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.2.rc3
d97994
- Fix test failures on single-core systems
d97994
d97994
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
d97994
- 7.0.1-rc3 Release
d97994
d97994
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
d97994
- 7.0.0 Release
d97994
d97994
* Sat Nov 10 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
d97994
- Don't build libomp-test on i686
d97994
d97994
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
d97994
- Drop scl macros
d97994
d97994
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
d97994
- 6.0.1 Release
d97994
d97994
* Mon Jan 15 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
d97994
- Drop ExcludeArch: ppc64
d97994
d97994
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
d97994
- 5.0.1 Release.
d97994
d97994
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
d97994
- 4.0.1 Release.
d97994
d97994
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
d97994
- Rename libopenmp->libomp
d97994
d97994
* Fri May 26 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
d97994
- Disable build on s390x
d97994
d97994
* Mon May 15 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
d97994
- Initial version.