forked from pool/libclc
Accepting request 845078 from home:aaronpuchert:llvm-next
- 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. OBS-URL: https://build.opensuse.org/request/show/845078 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=32
This commit is contained in:
parent
3f3a36bb76
commit
84b88877da
14
_service
14
_service
@ -1,14 +0,0 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/llvm-mirror/libclc.git</param>
|
||||
<param name="submodules">enable</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionformat">0.2.0+git.%cd</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled" />
|
||||
</services>
|
@ -1,6 +0,0 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/llvm-mirror/libclc.git</param>
|
||||
<param name="changesrevision">0db3817c4e48f2fd56dc926e7c21cfc6a8ecff8f</param>
|
||||
</service>
|
||||
</servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:70c0f05bc613a21613342cb07be414696aa797a976dabb434f5a248b568edbc4
|
||||
size 128480
|
3
libclc-11.0.0.src.tar.xz
Normal file
3
libclc-11.0.0.src.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5a0a2f67b85ede09b2f08c071c5b0b6b5ad56bfb00b39a22c369afcc613c42ee
|
||||
size 124148
|
@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 30 15:33:35 UTC 2020 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 26 13:20:28 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
|
49
libclc.spec
49
libclc.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user