|
|
|
|
@@ -1,3 +1,24 @@
|
|
|
|
|
#
|
|
|
|
|
# Copyright Fedora Project Authors.
|
|
|
|
|
#
|
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
# of this software and associated documentation files (the "Software"), to
|
|
|
|
|
# deal in the Software without restriction, including without limitation the
|
|
|
|
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
|
# sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
|
#
|
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
|
#
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
|
# THE SOFTWARE.
|
|
|
|
|
#
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
%global rocsparse_name librocsparse1
|
|
|
|
|
%else
|
|
|
|
|
@@ -79,7 +100,7 @@
|
|
|
|
|
|
|
|
|
|
Name: %{rocsparse_name}
|
|
|
|
|
Version: %{rocm_version}
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Summary: SPARSE implementation for ROCm
|
|
|
|
|
Url: https://github.com/ROCm/%{upstreamname}
|
|
|
|
|
License: MIT
|
|
|
|
|
@@ -183,9 +204,7 @@ sed -i -e 's@set(CMAKE_CXX_STANDARD 14)@set(CMAKE_CXX_STANDARD 17)@' {,clients/}
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
if [ -f %{buildroot}%{_prefix}/share/doc/rocsparse/LICENSE.md ]; then
|
|
|
|
|
rm %{buildroot}%{_prefix}/share/doc/rocsparse/LICENSE.md
|
|
|
|
|
fi
|
|
|
|
|
rm -f %{buildroot}%{_prefix}/share/doc/rocsparse/LICENSE.md
|
|
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/rocsparse/matrices
|
|
|
|
|
@@ -229,8 +248,14 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Aug 27 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-8
|
|
|
|
|
- Add Fedora copyright
|
|
|
|
|
|
|
|
|
|
* Mon Aug 25 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-7
|
|
|
|
|
- Simplify file removal
|
|
|
|
|
|
|
|
|
|
* Sat Aug 16 2025 Egbert Eich <eich@suse.com> - 6.4.2-6
|
|
|
|
|
- Fix dependency on SUSE when test is enabled.
|
|
|
|
|
- Fix dependency on SUSE when test is enabled.
|
|
|
|
|
|
|
|
|
|
* Fri Aug 15 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-5
|
|
|
|
|
- Build --with test on SUSE
|
|
|
|
|
|