#14 use %license macro
Closed 3 years ago by sergesanspaille. Opened 3 years ago by sergesanspaille.
rpms/ sergesanspaille/pocl master  into  master

file modified
+9 -6
@@ -1,11 +1,12 @@ 

  %global sover 2

  %global with_tests 1

+ %define _lto_cflags %{nil}

  

  Summary:        Portable Computing Language - an OpenCL implementation

  Name:           pocl

  %global ver 1.5

  Version:        %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(string.lower(ver))}

- Release:        4%{?dist}

+ Release:        5%{?dist}

  

  # The whole code is under MIT

  # except include/utlist.h which is under BSD (and unbundled) and
@@ -76,8 +77,6 @@ 

  

  

  %build

- mkdir %{_target_platform}

- pushd %{_target_platform}

  # CPU detection fails on ARM, so we need to manually specify the CPU as generic.

  %cmake .. \

      -DENABLE_ICD=1 \
@@ -92,11 +91,10 @@ 

      -DPOCL_ICD_ABSOLUTE_PATH=OFF \

      %{nil}

      # -DENABLE_TESTSUITES=all Requires clBLAS

- popd

- %make_build -C %{_target_platform}

+ %cmake_build

  

  %install

- %make_install -C %{_target_platform}

+ %cmake_install

  

  # Unbundle vecmath

  #rm -vf %%{buildroot}/%%{_libdir}/pocl/vecmath/
@@ -120,6 +118,7 @@ 

  %ldconfig_scriptlets

  

  %files

+ %license COPYING

  %doc README doc/sphinx/source/*.rst

  %{_sysconfdir}/OpenCL/vendors/%{name}.icd

  %{_libdir}/lib%{name}.so.%{sover}*
@@ -132,6 +131,10 @@ 

  %{_libdir}/pkgconfig/%{name}.pc

  

  %changelog

+ * Wed Jul 29 2020 sguelton@redhat.com - 1.5-5

+ - use modern cmake macro

+ - use %%license macro

+ 

  * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

  

no initial comment

rebased onto cb9cfa2

3 years ago

1 new commit added

  • Disable LTO build
3 years ago

@besser82 / @tstellar pocl seems tobe incompatible with the recent lto flags. Removing it restores the build correctness.

Pull-Request has been closed by sergesanspaille

3 years ago