From 5b48a938962cc1f889e779d1db0460a9fd62e0e1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 11 Mar 2017 21:56:42 +0100 Subject: [PATCH] Update to latest snapshot which supports LLVM 3.9 Signed-off-by: Igor Gnatenko --- libclc.spec | 27 +++++++++++---------------- sources | 2 +- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/libclc.spec b/libclc.spec index 8f20b50..174e1c8 100644 --- a/libclc.spec +++ b/libclc.spec @@ -1,7 +1,6 @@ -%global commit dc330a37a302063f2f541f397b3b00a2d384d290 -%global commitdate 20160207 -%global checkout %{commitdate}git%{shortcommit} +%global commit 520743b0b72862a987ead6213dc1a5321a2010f9 %global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global checkout git%{shortcommit} %global shortname clc @@ -10,15 +9,11 @@ Name: libclc Version: 0.2.0 -Release: 5.%{checkout}%{?dist} +Release: 6.git%{shortcommit}%{?dist} Summary: An open source implementation of the OpenCL 1.1 library requirements License: BSD URL: http://libclc.llvm.org/ -# created using: -# $ export PKG=libclc-$(date +%Y%m%d)git$(git describe --always) -# $ git archive --prefix $PKG/ --format tar HEAD | xz > $PKG.tar.xz -#Source0: %{name}-%{checkout}.tar.xz Source0: https://github.com/llvm-mirror/%{name}/archive/%{commit}/%{name}-%{checkout}.tar.gz ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 %{power64} s390x @@ -64,9 +59,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. - %prep -%setup -q -n "%{name}-%{commit}" +%autosetup -n %{name}-%{commit} %build CFLAGS="%{optflags} -D__extern_always_inline=inline" @@ -87,24 +81,25 @@ sed -i "s/fstack-protector-strong/fno-stack-protector/" Makefile sed -i "s/fstack-protector-strong/fstack-protector/" Makefile %endif -make %{?_smp_mflags} - +%make_build %install %make_install - %files -%doc LICENSE.TXT README.TXT CREDITS.TXT +%license LICENSE.TXT +%doc README.TXT CREDITS.TXT +%dir %{_libdir}/%{shortname} %{_libdir}/%{shortname}/*.bc %{_includedir}/%{shortname} %files devel -%doc %{_libdir}/pkgconfig/%{name}.pc - %changelog +* Sat Mar 11 2017 Igor Gnatenko - 0.2.0-6.git520743b +- Update to latest snapshot which supports LLVM 3.9 + * Fri Feb 10 2017 Fedora Release Engineering - 0.2.0-5.20160207gitdc330a3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 54d9b13..5b734ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cc09f7fce4d3897ffccb1d502790ddb8 libclc-20160207gitdc330a3.tar.gz +SHA512 (libclc-git520743b.tar.gz) = 5aae6010f32935c0b8fa510fc27cfd0be2df3d58d73cb5fb280d6758aafe54bd63a0137e59053aa81dca01ad2c5a0591ee1d4a83e3ef9a590a009a1a19062373