SHA256
1
0
forked from pool/libclc

Accepting request 348159 from home:pluskalm:branches:X11:XOrg

- Remove unnecessary ldconfig calls
- Rename rpmlintrc to libclc-rpmlintrc
- Minor spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/348159
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=4
This commit is contained in:
Jimmy Berry 2015-12-09 17:54:21 +00:00 committed by Git OBS Bridge
parent ab2b20d0dc
commit 362cfc9ebf
3 changed files with 20 additions and 15 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Dec 9 17:37:18 UTC 2015 - mpluskal@suse.com
- Remove unnecessary ldconfig calls
- Rename rpmlintrc to libclc-rpmlintrc
- Minor spec file cleanup
-------------------------------------------------------------------
Tue Dec 8 11:00:01 UTC 2015 - sndirsch@suse.com

View File

@ -24,7 +24,7 @@ License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://libclc.llvm.org/
Source0: %{name}-%{version}.tar.xz
Source1: rpmlintrc
Source1: %{name}-rpmlintrc
BuildRequires: gcc
BuildRequires: libstdc++-devel
BuildRequires: libtool
@ -43,26 +43,24 @@ Library requirements of the OpenCL C programming language.
%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/
export \
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
CC=clang \
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