Compare commits

2 Commits

Author SHA1 Message Date
7dc6fcf1e0 Add Fedora copyright
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-08-27 16:09:52 -07:00
441ac41b70 Simplify file removal
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-08-25 15:44:27 -07:00

View File

@@ -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 hipsolver_name libhipsolver0
%else
@@ -40,7 +61,7 @@
Name: %{hipsolver_name}
Version: %{rocm_version}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: ROCm SOLVER marshalling library
Url: https://github.com/ROCm/%{upstreamname}
License: MIT
@@ -68,15 +89,13 @@ BuildRequires: suitesparse-devel
%endif
%if %{with test}
BuildRequires: gtest-devel
BuildRequires: hipsparse-devel
BuildRequires: rocminfo
%if 0%{?suse_version}
BuildRequires: gtest
BuildRequires: blas-devel
BuildRequires: cblas-devel
BuildRequires: lapack-devel
%else
BuildRequires: gtest-devel
BuildRequires: blas-static
BuildRequires: lapack-static
%endif
@@ -142,9 +161,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%install
%cmake_install
if [ -f %{buildroot}%{_prefix}/share/doc/hipsolver/LICENSE.md ]; then
rm %{buildroot}%{_prefix}/share/doc/hipsolver/LICENSE.md
fi
rm -f %{buildroot}%{_prefix}/share/doc/hipsolver/LICENSE.md
%files
%license LICENSE.md
@@ -166,9 +183,11 @@ fi
%endif
%changelog
* Wed Aug 13 2025 Egbert Eich <eich@suse.com> - 6.4.2-3
- Fix dependency on SUSE when test is enabled.
- Add rocminfo package when test is enabled.
* Wed Aug 27 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-4
- Add Fedora copyright
* Mon Aug 25 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-3
- Simplify file removal
* Wed Jul 30 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-2
- Remove -mtls-dialect cflag