Accepting request 511187 from hardware:sdr

OBS-URL: https://build.opensuse.org/request/show/511187
OBS-URL: https://build.opensuse.org/package/show/science/clFFT?expand=0&rev=2
This commit is contained in:
Martin Hauke 2017-07-18 12:37:32 +00:00 committed by Git OBS Bridge
parent b74a2a5f6b
commit 1cf3a54bdb
2 changed files with 53 additions and 19 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 18 11:25:15 UTC 2017 - mpluskal@suse.com
- Split shared libraries
- Do not build on unsupported (32-bit) architectures
-------------------------------------------------------------------
Thu Jul 13 21:09:37 UTC 2017 - mardnh@gmx.de

View File

@ -1,6 +1,7 @@
#
# spec file for package clFFT
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@ -17,7 +18,8 @@
%define sover 2
%define libname lib%{name}%{sover}
%define libclfft lib%{name}%{sover}
%define libtimer libStatTimer%{sover}
Name: clFFT
Version: 2.12.2
Release: 0
@ -31,12 +33,12 @@ Source1: clFFT-client.1
Patch0: fix-client-no-symlink.patch
BuildRequires: boost-devel
BuildRequires: cmake
#BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: opencl-headers
BuildRequires: pkgconfig
BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(fftw3)
ExcludeArch: %{ix86} %{arm}
%description
The clFFT library is an open source OpenCL library implementation of discrete
@ -55,17 +57,18 @@ Fast Fourier Transforms, which:
%package devel
Summary: Development files for libclfft
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: %{libclfft} = %{version}
Requires: %{libtimer} = %{version}
%description devel
Libraries and header files for developing applications that want to
make use of libclFFT.
%package -n %{libname}
%package -n %{libclfft}
Summary: Library for libclfft
Group: System/Libraries
%description -n %{libname}
%description -n %{libclfft}
The clFFT library is an open source OpenCL library implementation of discrete
Fast Fourier Transforms, which:
* Provides a fast and accurate platform for calculating discrete FFTs.
@ -79,7 +82,27 @@ Fast Fourier Transforms, which:
* Supports dimension lengths that can be any mix of powers of 2, 3, and 5.
* Supports single and double precision floating point formats.
This subpackage provides the shared library.
This subpackage provides shared library clFFT library
%package -n %{libtimer}
Summary: Library for libclfft
Group: System/Libraries
%description -n %{libtimer}
The clFFT library is an open source OpenCL library implementation of discrete
Fast Fourier Transforms, which:
* Provides a fast and accurate platform for calculating discrete FFTs.
* Works on CPU or GPU backends.
* Supports in-place or out-of-place transforms.
* Supports 1D, 2D, and 3D transforms with a batch size that can be greater
than 1.
* Supports planar (real and complex components in separate arrays) and
interleaved (real and complex components as a pair contiguous in memory)
formats.
* Supports dimension lengths that can be any mix of powers of 2, 3, and 5.
* Supports single and double precision floating point formats.
This subpackage provides shared libStatTimer library
%prep
%setup -q
@ -88,32 +111,37 @@ This subpackage provides the shared library.
%build
cd src
%cmake \
-DBoost_USE_STATIC_LIBS=OFF \
-DBUILD_CLIENT=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_LOADLIBRARIES=ON \
-DBUILD_RUNTIME=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TEST=OFF
-DBoost_USE_STATIC_LIBS=OFF \
-DBUILD_CLIENT=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_LOADLIBRARIES=ON \
-DBUILD_RUNTIME=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TEST=OFF
%make_jobs
%install
cd src
%cmake_install
install -d -m0755 %{buildroot}%{_mandir}/man1/
install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
install -Dpm0644 %{SOURCE1} \
%{buildroot}%{_mandir}/man1/clFFT-client.1
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post -n %{libclfft} -p /sbin/ldconfig
%post -n %{libtimer} -p /sbin/ldconfig
%postun -n %{libclfft} -p /sbin/ldconfig
%postun -n %{libtimer} -p /sbin/ldconfig
%files
%{_bindir}/clFFT-client
%{_mandir}/man1/clFFT-client.1%{ext_man}
%files -n %{libname}
%files -n %{libclfft}
%doc CHANGELOG LICENSE NOTICE ReleaseNotes.txt
%{_libdir}/libclFFT.so.%{sover}*
%{_libdir}/libStatTimer.so.*
%files -n %{libtimer}
%doc CHANGELOG LICENSE NOTICE ReleaseNotes.txt
%{_libdir}/libStatTimer.so.%{sover}*
%files devel
%{_libdir}/libclFFT.so