From 7fdb5dde8cf991aa73021cdc65de2344005a556d5b37b832a6c631a7f6ea5c55 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Tue, 5 Dec 2023 17:46:51 +0000 Subject: [PATCH] Accepting request 1129757 from home:badshah400:Staging A linear algebra library for GPU-based calculations. OBS-URL: https://build.opensuse.org/request/show/1129757 OBS-URL: https://build.opensuse.org/package/show/science/bandicoot?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ bandicoot-1.11.1.tar.xz | 3 ++ bandicoot.changes | 4 ++ bandicoot.spec | 88 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 bandicoot-1.11.1.tar.xz create mode 100644 bandicoot.changes create mode 100644 bandicoot.spec 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/bandicoot-1.11.1.tar.xz b/bandicoot-1.11.1.tar.xz new file mode 100644 index 0000000..1735477 --- /dev/null +++ b/bandicoot-1.11.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab3b178ab8d675b7c88f293a96c37d3ee59c43893a2a2004b349066247372757 +size 472824 diff --git a/bandicoot.changes b/bandicoot.changes new file mode 100644 index 0000000..d1c23e8 --- /dev/null +++ b/bandicoot.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 29 10:05:04 UTC 2023 - Atri Bhattacharya + +- Initial package. diff --git a/bandicoot.spec b/bandicoot.spec new file mode 100644 index 0000000..5ad4bfc --- /dev/null +++ b/bandicoot.spec @@ -0,0 +1,88 @@ +# +# spec file for package bandicoot +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define sover 1 +%define shlib lib%{name}%{sover} +Name: bandicoot +Version: 1.11.1 +Release: 0 +Summary: C++ library for GPU accelerated linear algebra +License: Apache-2.0 +URL: https://coot.sourceforge.io/ +Source: https://sourceforge.net/projects/coot/files/%{name}-%{version}.tar.xz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: libopenblas_openmp-devel +BuildRequires: ocl-icd-devel +BuildRequires: opencl-cpp-headers +BuildRequires: pkgconfig +BuildRequires: pkgconfig(clBLAS) + +%description +Bandicoot is a GPU linear algebra library (matrix maths) for the C++ language, +aiming towards a good balance between speed and ease of use. It provides +high-level syntax and functionality deliberately similar to Matlab. + +%package -n %{shlib} +Summary: Shared library for %{name} + +%description -n %{shlib} +Bandicoot is a GPU linear algebra library (matrix maths) for the C++ language, +aiming towards a good balance between speed and ease of use. It provides +high-level syntax and functionality deliberately similar to Matlab. + +This package provides the shared library for %{name}. + +%package devel +Summary: Headers and source for developing against %{name} +Requires: %{shlib} = %{version} + +%description devel +Bandicoot is a GPU linear algebra library (matrix maths) for the C++ language, +aiming towards a good balance between speed and ease of use. It provides +high-level syntax and functionality deliberately similar to Matlab. + +This package provides headers and sources for developing against %{name}. + +%prep +%autosetup + +%build +%cmake -DOPENBLAS_PROVIDES_LAPACK:BOOL=true +%cmake_build + +%install +%cmake_install + +%post -n %{shlib} -p /sbin/ldconfig +%postun -n %{shlib} -p /sbin/ldconfig + +%files -n %{shlib} +%license LICENSE.txt +%{_libdir}/*.so.* + +%files devel +%license LICENSE.txt +%doc README.md +%{_datadir}/Bandicoot/ +%{_includedir}/%{name} +%{_includedir}/%{name}_bits/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog