Latest upstream release that matches llvm 11.0.0

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2021-02-12 14:47:36 -05:00
parent e829c6da22
commit 3f6acc5b70
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11
2 changed files with 17 additions and 19 deletions

View File

@ -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 # this stop us generating an empty debuginfo
%global debug_package %{nil} %global debug_package %{nil}
%global shortname clc
Name: libclc Name: libclc
Version: 0.2.0 Version: 11.0.0
Release: 19.git%{shortcommit}%{?dist} Release: 1%{?dist}
Summary: An open source implementation of the OpenCL 1.1 library requirements Summary: An open source implementation of the OpenCL 1.1 library requirements
License: BSD License: BSD
URL: https://libclc.llvm.org 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 ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 %{power64} s390x
BuildRequires: clang-devel BuildRequires: clang-devel >= %{version}
BuildRequires: libedit-devel BuildRequires: libedit-devel
BuildRequires: llvm-devel >= 3.9 BuildRequires: llvm-devel >= %{version}
BuildRequires: python BuildRequires: python-unversioned-command
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: make BuildRequires: cmake
%description %description
libclc is an open source, BSD licensed implementation of the library 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}. developing applications that use %{name}.
%prep %prep
%autosetup -n %{name}-%{commit} %autosetup -n %{name}-%{version}.src
%build %build
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%set_build_flags %set_build_flags
./configure.py --prefix=%{_prefix} --libexecdir=%{_libdir}/%{shortname}/ --pkgconfigdir=%{_libdir}/pkgconfig/ %cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir}
%make_build %cmake_build
%install %install
%make_install %cmake_install
%files %files
%license LICENSE.TXT %license LICENSE.TXT
@ -84,6 +79,9 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%changelog %changelog
* Fri Feb 12 2021 Stephen Gallagher <sgallagh@redhat.com> - 11.0.0-1
- Latest upstream release that matches llvm 11.0.0
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-19.git9f6204e * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-19.git9f6204e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (libclc-git9f6204e.tar.gz) = 066a12c8a431ab1071fa9e0b4a06bf4852f67fb72ee204d1acf699ff64de1b4038ce06f5571e30f7f537b301367915e5758e82b58bf39799301c957541fbed39 SHA512 (libclc-11.0.0.src.tar.xz) = d5ab018ebcc3e7cc9d5713f5672dbcf0be11902df2e85a9799a9275b966998cc300e8380a800f5da60fe33b8569add10c024d9e45f4b1c26c1e21f791120cfbd