SHA256
1
0
forked from pool/libclc

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
This commit is contained in:
Stefan Dirsch 2015-12-02 15:15:58 +00:00 committed by Git OBS Bridge
commit effe2bc71e
7 changed files with 137 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

14
_service Normal file
View File

@ -0,0 +1,14 @@
<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="versionformat">0.2.0+git%cd.%h</param>
<param name="revision">6d784075bc56815b0fc493690572c893979abbdd</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>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6935b56b984067d48c710b5b30a329b9303661d787b059ab5d09fcb5a95ea49a
size 74764

19
libclc.changes Normal file
View File

@ -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

71
libclc.spec Normal file
View File

@ -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

6
rpmlintrc Normal file
View File

@ -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")