Blame polly.spec

d9b0150
#%%global rc_ver 2
d9b0150
%global baserelease 3
7222536
%global polly_srcdir polly-%{version}%{?rc_ver:rc%{rc_ver}}.src
7222536
7222536
Name: polly
b816ad9
Version: 11.0.1
7222536
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
7222536
Summary: LLVM Framework for High-Level Loop and Data-Locality Optimizations
7222536
7222536
License: NCSA
bf7eff4
URL: http://polly.llvm.org
73cff06
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{polly_srcdir}.tar.xz
73cff06
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{polly_srcdir}.tar.xz.sig
b816ad9
Source2: tstellar-gpg-key.asc
7222536
7222536
Patch0: polly-subproject-extension.patch
7222536
5827cef
BuildRequires: gcc
5827cef
BuildRequires: gcc-c++
7222536
BuildRequires: cmake
7222536
BuildRequires: llvm-devel = %{version}
7222536
BuildRequires: llvm-test = %{version}
7222536
BuildRequires: clang-devel = %{version}
004f075
BuildRequires: ninja-build
7222536
BuildRequires: python3-lit
7222536
BuildRequires: python3-sphinx
7222536
004f075
# For origin certification
004f075
BuildRequires:	gnupg2
004f075
7222536
%description
7222536
Polly is a high-level loop and data-locality optimizer and optimization
7222536
infrastructure for LLVM. It uses an abstract mathematical representation based
7222536
on integer polyhedron to analyze and optimize the memory access pattern of a
7222536
program.
7222536
7222536
%package devel
7222536
Summary: Polly header files
7222536
Requires: %{name} = %{version}-%{release}
7222536
7222536
%description devel
7222536
Polly header files.
7222536
7222536
%package doc
7222536
Summary: Documentation for Polly
7222536
BuildArch: noarch
7222536
Requires: %{name} = %{version}-%{release}
7222536
7222536
%description doc
7222536
Documentation for the Polly optimizer.
7222536
7222536
%prep
004f075
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
3d64da5
%autosetup -n %{polly_srcdir} -p1
7222536
7222536
%build
7222536
311c1b5
# LTO builds fail:
311c1b5
# ../lib/External/pet/include/pet.h:20:1: error: function 'pet_options_args' redeclared as variable
311c1b5
#   20 | ISL_ARG_DECL(pet_options, struct pet_options, pet_options_args)
311c1b5
#      | ^
311c1b5
#../lib/External/ppcg/external.c:107:6: note: previously declared here
311c1b5
#  107 | void pet_options_args() {
311c1b5
#     |      ^
311c1b5
%global _lto_cflags %{nil}
311c1b5
004f075
%cmake 	-GNinja \
7222536
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
7222536
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
7222536
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
7222536
	-DCMAKE_PREFIX_PATH=%{_libdir}/cmake/llvm/ \
7222536
\
7222536
	-DLLVM_ENABLE_SPHINX:BOOL=ON \
7222536
	-DSPHINX_WARNINGS_AS_ERRORS=OFF \
7222536
	-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \
7222536
\
7222536
%if 0%{?__isa_bits} == 64
7222536
	-DLLVM_LIBDIR_SUFFIX=64
7222536
%else
7222536
	-DLLVM_LIBDIR_SUFFIX=
7222536
%endif
7222536
004f075
%cmake_build
004f075
%cmake_build --target docs-polly-html
7222536
7222536
7222536
%install
004f075
%cmake_install
004f075
7222536
install -d %{buildroot}%{_pkgdocdir}/html
004f075
cp -r %{_vpath_builddir}/docs/html/* %{buildroot}%{_pkgdocdir}/html/
7222536
7222536
%check
004f075
%cmake_build --target check-polly
7222536
7222536
%files
5827cef
%license LICENSE.txt
7222536
%{_libdir}/LLVMPolly.so
7222536
%{_libdir}/libPolly.so.*
7222536
%{_libdir}/libPollyISL.so
7222536
%{_libdir}/libPollyPPCG.so
7222536
7222536
%files devel
7222536
%{_libdir}/libPolly.so
7222536
%{_includedir}/polly
7222536
%{_libdir}/cmake/polly
7222536
7222536
%files doc
7222536
%doc %{_pkgdocdir}/html
7222536
7222536
%changelog
d9b0150
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
d9b0150
- LLVM 11.0.1 final
d9b0150
bf7eff4
* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2
bf7eff4
- llvm 11.0.1-rc2
bf7eff4
b816ad9
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
b816ad9
- llvm 11.0.1-rc1
b816ad9
765675d
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
765675d
- Fix NVR
765675d
16c0fbf
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5
16c0fbf
- llvm 11.0.0 - final release
16c0fbf
3554f8c
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6
3554f8c
- 11.0.0-rc6
3554f8c
b65a23f
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5
b65a23f
- 11.0.0-rc5 Release
b65a23f
a1d2d9b
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3
a1d2d9b
- Fix NVR
a1d2d9b
01858d9
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
01858d9
- 11.0.0-rc3 Release
01858d9
73cff06
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
73cff06
- 11.0.0-rc2 Release
73cff06
91f251a
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
91f251a
- 11.0.0-rc1 Release
91f251a
311c1b5
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-6
311c1b5
- Disable LTO builds
311c1b5
5827cef
* Mon Aug 10 2020 sguelton@redhat.com - 10.0.0-5
5827cef
- Make gcc dependency explicit, see https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
5827cef
- use %%license macro
5827cef
a6e84af
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-4
a6e84af
- Second attempt - Rebuilt for
a6e84af
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a6e84af
5101d54
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-3
5101d54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5101d54
004f075
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-2
004f075
- Modernize cmake macro usage
004f075
3d64da5
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
3d64da5
- llvm-10.0.0 final
3d64da5
3ded86e
* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.2.rc6
3ded86e
- llvm-10.0.0 rc6
3ded86e
7222536
* Sat Mar 21 2020 sguelton@redhat.com - 10.0.0-0.1.rc5
7222536
- Initial version.
7222536