public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bliss] rawhide: Use the cmake declarative buildsystem
@ 2026-07-13 15:11 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-13 15:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/bliss
Branch : rawhide
Commit : 4d75f486e34c0db9116f69bc373028847932ee66
Author : Jerry James <loganjerry@gmail.com>
Date   : 2026-07-13T09:11:23-06:00
Stats  : +8/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/bliss/c/4d75f486e34c0db9116f69bc373028847932ee66?branch=rawhide

Log:
Use the cmake declarative buildsystem

---
diff --git a/bliss.spec b/bliss.spec
index 2db8004..698771f 100644
--- a/bliss.spec
+++ b/bliss.spec
@@ -18,8 +18,9 @@ Patch:          bliss-rehn.patch
 
 # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
+BuildSystem:    cmake
+BuildOption(conf): -DUSE_GMP:BOOL=ON
 
-BuildRequires:  cmake
 BuildRequires:  doxygen
 BuildRequires:  gcc-c++
 BuildRequires:  gmp-devel
@@ -77,7 +78,6 @@ A command-line bliss tool to access the functionality of the bliss library.
 %prep
 %autosetup -n Bliss-%{version} -p0
 
-%conf
 # Do not override Fedora build flags.  The last sagemath version added an
 # soname.  Duplicate it for compatibility.  Link the library with libgmp.
 # Hidden symbols hide ALL symbols, meaning we can't use the library.
@@ -88,20 +88,13 @@ sed -e 's/ -O3//' \
     -i CMakeLists.txt
 
 # Fix installation directories
-if [ "%{_lib}" != "lib" ]; then
-  sed -i 's,\(DESTINATION \)lib,\1%{_lib},' CMakeLists.txt
-fi
-
-%build
-%cmake -DUSE_GMP:BOOL=ON
-%cmake_build
+sed -i 's,\(DESTINATION \)lib,\1${LIB_INSTALL_DIR},' CMakeLists.txt
 
+%build -a
 # Build the documentation
 doxygen
 
-%install
-%cmake_install
-
+%install -a
 # Install the man page
 mkdir -p %{buildroot}%{_mandir}/man1
 sed 's/@VERSION@/%{version}/' %{SOURCE1} > %{buildroot}%{_mandir}/man1/bliss.1
@@ -123,6 +116,9 @@ touch -r %{SOURCE1} %{buildroot}%{_mandir}/man1/bliss.1
 %{_libdir}/libbliss.so.2{,.*}
 
 %changelog
+* Mon Jul 13 2026 Jerry James <loganjerry@gmail.com> - 0.77-13
+- Use the cmake declarative buildsystem
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.77-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-13 15:11 [rpms/bliss] rawhide: Use the cmake declarative buildsystem Jerry James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox