Blame polly.spec

7222536
%global rc_ver 5
7222536
%global baserelease 0.1
7222536
%global polly_srcdir polly-%{version}%{?rc_ver:rc%{rc_ver}}.src
7222536
7222536
Name: polly
7222536
Version: 10.0.0
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
7222536
URL: http://polly.llvm.org	
7222536
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{polly_srcdir}.tar.xz
7222536
Source1: https://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{polly_srcdir}.tar.xz.sig
7222536
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
7222536
7222536
Patch0: polly-subproject-extension.patch
7222536
7222536
BuildRequires: cmake
7222536
BuildRequires: llvm-devel = %{version}
7222536
BuildRequires: llvm-test = %{version}
7222536
BuildRequires: clang-devel = %{version}
7222536
BuildRequires: python3-lit
7222536
BuildRequires: python3-sphinx
7222536
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
7222536
%autosetup -n polly-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
7222536
7222536
%build
7222536
mkdir -p _build
7222536
cd _build
7222536
7222536
%cmake .. \
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
7222536
7222536
7222536
%make_build
7222536
%{__make} docs-polly-html
7222536
7222536
7222536
%install
7222536
%make_install -C _build
7222536
install -d %{buildroot}%{_pkgdocdir}/html
7222536
cp -r _build/docs/html/* %{buildroot}%{_pkgdocdir}/html/
7222536
7222536
%check
7222536
%{__make} check-polly -C _build
7222536
7222536
7222536
%files
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
7222536
* Sat Mar 21 2020 sguelton@redhat.com - 10.0.0-0.1.rc5
7222536
- Initial version.
7222536