public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hipfft] epel10: Generate suse package name
Date: Thu, 11 Jun 2026 16:24:41 GMT [thread overview]
Message-ID: <178119508139.1.2856077373633350861.rpms-hipfft-0d96a298682e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hipfft
Branch : epel10
Commit : 0d96a298682eaab756fd6ff83a3fd4ae66436895
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-21T11:44:14-07:00
Stats : +24/-15 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hipfft/c/0d96a298682eaab756fd6ff83a3fd4ae66436895?branch=epel10
Log:
Generate suse package name
---
diff --git a/hipfft.spec b/hipfft.spec
index ad93382..7db1fcc 100644
--- a/hipfft.spec
+++ b/hipfft.spec
@@ -21,6 +21,9 @@
#
%global upstreamname hipfft
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 0
+
%bcond_with preview
%if %{with preview}
%global rocm_release 7.12
@@ -46,10 +49,11 @@
%global pkg_suffix %{nil}
%global pkg_module default
%endif
+
%if 0%{?suse_version}
-%global hipfft_name libhipfft0%{pkg_suffix}
+%global pkg_name %{NAME}-libs
%else
-%global hipfft_name hipfft%{pkg_suffix}
+%global pkg_name %{NAME}
%endif
%global toolchain rocm
@@ -83,12 +87,12 @@
%global _source_payload w7T0.xzdio
%global _binary_payload w7T0.xzdio
-Name: %{hipfft_name}
+Name: hipfft%{pkg_suffix}
Version: %{rocm_version}
%if %{with preview}
Release: 1%{?dist}
%else
-Release: 2%{?dist}
+Release: 3%{?dist}
%endif
Summary: ROCm FFT marshaling library
License: MIT AND BSD-3-Clause
@@ -137,13 +141,18 @@ application and the backend FFT library, marshaling inputs into
the backend and results back to the application.
%if 0%{?suse_version}
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%package -n %{pkg_name}
+Summary: Shared libraries for %{name}
+
+%description -n %{pkg_name}
+%{summary}
+
+%ldconfig_scriptlets -n %{pkg_name}
%endif
%package devel
Summary: Libraries and headers for %{name}
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
Provides: hipfft%{pkg_suffix}-devel = %{version}-%{release}
%description devel
@@ -152,7 +161,7 @@ Provides: hipfft%{pkg_suffix}-devel = %{version}-%{release}
%if %{with test}
%package test
Summary: Tests for %{name}
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
%description test
%{summary}
@@ -193,7 +202,7 @@ sed -i -e 's@find_package( HIP MODULE REQUIRED )@find_package( HIP REQUIRED )@'
%install
%cmake_install
-
+# Extra license
rm -f %{buildroot}%{pkg_prefix}/share/doc/hipfft/LICENSE.md
%check
@@ -209,16 +218,15 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
%endif
%endif
-%files
+%files -n %{pkg_name}
%license LICENSE.md
%doc README.md
-
-%{pkg_prefix}/%{pkg_libdir}/libhipfft.so.0{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.0{,.*}
%{pkg_prefix}/%{pkg_libdir}/libhipfftw.so.0{,.*}
%files devel
%{pkg_prefix}/include/hipfft/
-%{pkg_prefix}/%{pkg_libdir}/libhipfft.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
%{pkg_prefix}/%{pkg_libdir}/libhipfftw.so
%{pkg_prefix}/%{pkg_libdir}/cmake/hipfft/
@@ -228,6 +236,9 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
%endif
%changelog
+* Tue Apr 21 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Generate suse package name
+
* Tue Feb 17 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
- Update license
- Cleanup specfile
@@ -305,5 +316,3 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
* Sun Nov 10 2024 Tom Rix <Tom.Rix@amd.com> - 6.2.1-1
- Stub for tumbleweed
-
-
reply other threads:[~2026-06-11 16:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178119508139.1.2856077373633350861.rpms-hipfft-0d96a298682e@fedoraproject.org \
--to=tom.rix@amd.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox