File mingw32-opencl.spec of Package mingw32-opencl
#
# spec file for package mingw32-opencl
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define realname opencl
Name: mingw32-%{realname}
Version: 0.0.0
Release: 0
Summary: OpenCL 1.2 Installable Client Driver (ICD) Loader
License: SUSE-Public-Domain
Group: System/Libraries
Url: http://www.opengl.org
Source: %{realname}.tar.gz
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-filesystem >= 35
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArch: noarch
#%%{_mingw32_package_header_debug}
#%%{_mingw32_debug_package}
%description
OpenCL 1.2 Installable Client Driver (ICD) Loader
%package devel
Summary: OpenCL 1.2 Installable Client Driver (ICD) Loader
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
OpenCL 1.2 Installable Client Driver (ICD) Loader
%prep
%setup -q -n %{realname}
%build
%install
mkdir -p %{buildroot}/%{_mingw32_bindir}
mkdir -p %{buildroot}/%{_mingw32_libdir}
install -Dpm 0644 OpenCL.dll %{buildroot}/%{_mingw32_bindir}/
install -Dpm 0644 libOpenCL.a %{buildroot}/%{_mingw32_libdir}/
%files
%defattr(-,root,root)
%{_mingw32_bindir}/OpenCL.dll
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libOpenCL.a
%changelog