Hello community,

here is the log from the commit of package libclc for openSUSE:Factory checked 
in at 2020-11-02 09:41:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libclc (Old)
 and      /work/SRC/openSUSE:Factory/.libclc.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libclc"

Mon Nov  2 09:41:15 2020 rev:13 rq:845081 version:0.2.0+llvm11.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libclc/libclc.changes    2019-10-10 
11:48:45.568067423 +0200
+++ /work/SRC/openSUSE:Factory/.libclc.new.3463/libclc.changes  2020-11-02 
09:41:31.205674793 +0100
@@ -1,0 +2,15 @@
+Fri Oct 30 15:33:35 UTC 2020 - Aaron Puchert <[email protected]>
+
+- Update to version 0.2.0+llvm11.0.0.
+  The repository that we extracted the tarball from isn't updated
+  any longer. So we take the tarballs from LLVM releases instead.
+- The build now uses CMake instead of a custom Python script.
+- Remove dependencies on gcc, libstdc++-devel, ncurses and zlib.
+- The provided package consists of LLVM bitcode files, which are
+  not necessarily backwards-compatible across major versions.
+  (https://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility)
+  So we let the package provide a symbol libclc(llvmXX).
+- The library files have moved from %{_libdir} to %{_datadir}.
+- Make noarch: the bitcode files don't depend on the host CPU.
+
+-------------------------------------------------------------------

Old:
----
  _service
  _servicedata
  libclc-0.2.0+git.20190805.tar.xz

New:
----
  libclc-11.0.0.src.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libclc.spec ++++++
--- /var/tmp/diff_new_pack.6M45lX/_old  2020-11-02 09:41:31.761675326 +0100
+++ /var/tmp/diff_new_pack.6M45lX/_new  2020-11-02 09:41:31.765675330 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libclc
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,53 +16,48 @@
 #
 
 
+%define _libclc_llvm_ver 11.0.0
+
 Name:           libclc
-Version:        0.2.0+git.20190805
+Version:        0.2.0+llvm%{_libclc_llvm_ver}
 Release:        0
 Summary:        OpenCL C programming language library
 License:        (BSD-3-Clause OR MIT) AND Apache-2.0 WITH LLVM-exception
 Group:          Development/Libraries/C and C++
 URL:            https://libclc.llvm.org/
-Source0:        %{name}-%{version}.tar.xz
+Source0:        
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_libclc_llvm_ver}/%{name}-%{_libclc_llvm_ver}.src.tar.xz
 Source1:        %{name}-rpmlintrc
-BuildRequires:  gcc
-BuildRequires:  libstdc++-devel >= 3.9
+BuildRequires:  clang-devel >= 4.0
+BuildRequires:  cmake
 BuildRequires:  llvm >= 4.0
-BuildRequires:  llvm-clang-devel >= 4.0
-BuildRequires:  pkgconfig
 BuildRequires:  python3-base
-BuildRequires:  pkgconfig(ncurses)
-BuildRequires:  pkgconfig(zlib)
+Provides:       libclc(llvm%{_llvm_sonum})
+BuildArch:      noarch
 
 %description
 Library requirements of the OpenCL C programming language.
 
 %prep
-%autosetup
+%setup -q -n libclc-%{_libclc_llvm_ver}.src
 
 %build
-sed -i "s|python|python3|g" configure.py
-export \
-  CFLAGS="%{optflags}" \
-  CXXFLAGS="%{optflags}" \
-  CC=clang \
-  CXX=clang++
-python3 ./configure.py \
-  --prefix=%{_prefix} \
-  --with-llvm-config=%{_bindir}/llvm-config \
-  --with-cxx-compiler=${CXX} \
-  --enable-runtime-subnormal \
-  --pkgconfigdir=%{_libdir}/pkgconfig/ \
-  --libexecdir=%{_libdir}/clc/
-%make_build
+# The libraries are bitcode files, so LTO is neither supported nor does it 
help.
+%define _lto_cflags %{nil}
+
+sed -i "s|python|python3|g" CMakeLists.txt
+%cmake \
+  -DCMAKE_C_COMPILER=clang \
+  -DCMAKE_CXX_COMPILER=clang++ \
+  -DENABLE_RUNTIME_SUBNORMAL:BOOL=ON
+%cmake_build
 
 %install
-%make_install
+%cmake_install
 
 %files
 %license LICENSE.TXT
 %{_includedir}/clc
-%{_libdir}/clc
-%{_libdir}/pkgconfig/libclc.pc
+%{_datadir}/clc
+%{_datadir}/pkgconfig/libclc.pc
 
 %changelog


Reply via email to