From 3f6acc5b70607d6b0be689cd649f785b589aec1a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 12 Feb 2021 14:47:36 -0500 Subject: [PATCH] Latest upstream release that matches llvm 11.0.0 Signed-off-by: Stephen Gallagher --- libclc.spec | 34 ++++++++++++++++------------------ sources | 2 +- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/libclc.spec b/libclc.spec index 2934ef4..d82bb32 100644 --- a/libclc.spec +++ b/libclc.spec @@ -1,29 +1,24 @@ -%global commit 9f6204ec04a8cadb6bef57caa71e3161c4f398f2 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global checkout git%{shortcommit} - -%global shortname clc - # this stop us generating an empty debuginfo %global debug_package %{nil} +%global shortname clc + Name: libclc -Version: 0.2.0 -Release: 19.git%{shortcommit}%{?dist} +Version: 11.0.0 +Release: 1%{?dist} Summary: An open source implementation of the OpenCL 1.1 library requirements License: BSD URL: https://libclc.llvm.org -Source0: https://github.com/llvm-mirror/%{name}/archive/%{commit}/%{name}-%{checkout}.tar.gz - +Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 %{power64} s390x -BuildRequires: clang-devel +BuildRequires: clang-devel >= %{version} BuildRequires: libedit-devel -BuildRequires: llvm-devel >= 3.9 -BuildRequires: python +BuildRequires: llvm-devel >= %{version} +BuildRequires: python-unversioned-command BuildRequires: zlib-devel -BuildRequires: make +BuildRequires: cmake %description libclc is an open source, BSD licensed implementation of the library @@ -61,17 +56,17 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -n %{name}-%{commit} +%autosetup -n %{name}-%{version}.src %build export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" %set_build_flags -./configure.py --prefix=%{_prefix} --libexecdir=%{_libdir}/%{shortname}/ --pkgconfigdir=%{_libdir}/pkgconfig/ +%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir} -%make_build +%cmake_build %install -%make_install +%cmake_install %files %license LICENSE.TXT @@ -84,6 +79,9 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" %{_libdir}/pkgconfig/%{name}.pc %changelog +* Fri Feb 12 2021 Stephen Gallagher - 11.0.0-1 +- Latest upstream release that matches llvm 11.0.0 + * Tue Jan 26 2021 Fedora Release Engineering - 0.2.0-19.git9f6204e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 4046b29..ad43a88 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libclc-git9f6204e.tar.gz) = 066a12c8a431ab1071fa9e0b4a06bf4852f67fb72ee204d1acf699ff64de1b4038ce06f5571e30f7f537b301367915e5758e82b58bf39799301c957541fbed39 +SHA512 (libclc-11.0.0.src.tar.xz) = d5ab018ebcc3e7cc9d5713f5672dbcf0be11902df2e85a9799a9275b966998cc300e8380a800f5da60fe33b8569add10c024d9e45f4b1c26c1e21f791120cfbd