commit effe2bc71e8c9ace4a410f6dba8dc8b1b6187a4d0d206690a4d29ac748a1786e Author: Stefan Dirsch Date: Wed Dec 2 15:15:58 2015 +0000 Accepting request 347130 from home:boombatower:branches:X11:XOrg Library requirements of the OpenCL C programming language. OBS-URL: https://build.opensuse.org/request/show/347130 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..146bf22 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/llvm-mirror/libclc.git + enable + 0.2.0+git%cd.%h + 6d784075bc56815b0fc493690572c893979abbdd + + + xz + *.tar + + + diff --git a/libclc-0.2.0+git20151006.6d78407.tar.xz b/libclc-0.2.0+git20151006.6d78407.tar.xz new file mode 100644 index 0000000..3b1a63d --- /dev/null +++ b/libclc-0.2.0+git20151006.6d78407.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6935b56b984067d48c710b5b30a329b9303661d787b059ab5d09fcb5a95ea49a +size 74764 diff --git a/libclc.changes b/libclc.changes new file mode 100644 index 0000000..a325ef5 --- /dev/null +++ b/libclc.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Wed Dec 2 07:39:37 UTC 2015 - jimmy@boombatower.com + +- Remove devel package in favor of main package since libclc is + unusable without the header files used to compile OpenCL + applications against. + +------------------------------------------------------------------- +Mon Nov 30 07:29:46 UTC 2015 - jimmy@boombatower.com + +- Merge home:X0F:HSF spec changes. +- Set _service file to static revisions in lieu of tags. +- Major cleanup of spec file. +- Apply spec-cleaner. + +------------------------------------------------------------------- +Sun Feb 3 00:00:00 UTC 2012 - pontostroy@gmail.com + +- initial package diff --git a/libclc.spec b/libclc.spec new file mode 100644 index 0000000..0d95767 --- /dev/null +++ b/libclc.spec @@ -0,0 +1,71 @@ +# +# spec file for package libclc +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: libclc +Version: 0.2.0+git20151006.6d78407 +Release: 0 +Summary: OpenCL C programming language library +License: BSD-2-Clause +Group: Development/Libraries/C and C++ +Url: http://libclc.llvm.org/ +Source0: %{name}-%{version}.tar.xz +BuildRequires: gcc +BuildRequires: libstdc++-devel +BuildRequires: libtool +BuildRequires: llvm-clang-devel +BuildRequires: llvm-devel >= 3.7 +BuildRequires: ncurses-devel +BuildRequires: pkg-config +BuildRequires: python +BuildRequires: zlib-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Library requirements of the OpenCL C programming language. + +%prep +%setup -q + +%build +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags}" +export CC=clang +export CXX=clang++ +./configure.py --prefix=%{_prefix} \ + --with-llvm-config=%{_bindir}/llvm-config \ + --with-cxx-compiler=${CXX} \ + --enable-runtime-subnormal \ + --pkgconfigdir=%{_libdir}/pkgconfig/ \ + --libexecdir=%{_libdir}/clc/ + +make %{?_smp_mflags} VERBOSE=1 + +%install +make DESTDIR=%{buildroot} install %{?_smp_mflags} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_includedir}/clc +%{_libdir}/clc +%{_libdir}/pkgconfig/libclc.pc + +%changelog diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..28627bb --- /dev/null +++ b/rpmlintrc @@ -0,0 +1,6 @@ +# This line is mandatory to access the configuration functions +from Config import * + +# Files required at runtime by applications using OpenCL. +addFilter("devel-file-in-non-devel-package.*/usr/include/clc/.*") +addFilter("devel-file-in-non-devel-package.*/usr/lib64/pkgconfig/libclc.pc")