public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/memtailor] f44: Version 1.4
@ 2026-06-09 22:07 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-06-09 22:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/memtailor
Branch : f44
Commit : 90c826e21f071270e7088d057cab8b0e45ca3425
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-06-09T15:21:33-06:00
Stats : +29/-28 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/memtailor/c/90c826e21f071270e7088d057cab8b0e45ca3425?branch=f44
Log:
Version 1.4
- Use the cmake declarative buildsystem
---
diff --git a/memtailor.spec b/memtailor.spec
index e292a77..6ca28b0 100644
--- a/memtailor.spec
+++ b/memtailor.spec
@@ -1,5 +1,5 @@
Name: memtailor
-Version: 1.3
+Version: 1.4
Release: %autorelease
Summary: C++ library of special-purpose memory allocators
@@ -10,13 +10,12 @@ Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
+BuildSystem: cmake
+BuildOption(conf): -DBUILD_SHARED_LIBS:BOOL=ON
+BuildOption(conf): -DBUILD_TESTING:BOOL=ON
+BuildRequires: cmake(GTest)
BuildRequires: gcc-c++
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
-BuildRequires: make
-BuildRequires: pkgconfig(gtest)
%description
Memtailor is a C++ library of special purpose memory allocators. It currently
@@ -48,32 +47,34 @@ Files for developing applications that use memtailor.
%prep
%autosetup
-%conf
-# Fix the URL in the pkgconfig file
-sed -i 's/broune/Macaulay2/' build/autotools/memtailor.pc.in
-
-# Upstream doesn't generate the configure script
-autoreconf -fi
+# Fix the installation directory
+sed -i 's,lib,${LIB_INSTALL_DIR},' CMakeLists.txt
-%build
-export GTEST_PATH=%{_prefix}
-export GTEST_VERSION=$(gtest-config --version)
-%configure --disable-static --enable-shared --with-gtest=yes
+# Add an soname
+sed -e '/Threads/iset_target_properties(memtailor PROPERTIES VERSION 0.0.4 SOVERSION 0)' \
+ -i src/CMakeLists.txt
-# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
-# -Wl,--as-needed after all the libraries.
-sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
- -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
- -e 's|CC=.g..|& -Wl,--as-needed|' \
- -i libtool
+%install -a
+# This file is not installed by cmake
+cp -p src/memtailor.h %{buildroot}%{_includedir}
-%make_build
-
-%install
-%make_install
+# Install the pkgconfig file for backwards compatibility
+# Fix the URL in the pkgconfig file
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+sed -e 's,@prefix@,%{_prefix},' \
+ -e 's,@exec_prefix@,%{_prefix},' \
+ -e 's,@libdir@,%{_libdir},' \
+ -e 's,@includedir@,%{_includedir},' \
+ -e 's,@PACKAGE_VERSION@,%{version},' \
+ -e 's,broune,Macaulay2,' \
+ build/autotools/memtailor.pc.in \
+ > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+
+# We install these files in a different place
+rm -fr %{buildroot}%{_prefix}/licenses
%check
-LD_LIBRARY_PATH=$PWD/.libs make check
+%{_vpath_builddir}/src/memtailor-unit-tests
%files
%doc README.md
diff --git a/sources b/sources
index 4230184..d2198af 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (memtailor-1.3.tar.gz) = 7ced2c4e7ecf7500c6ad26c53b8495fa51e2b7fe320ed4aa09708797f2984ad9c0a87db9ddf585f3b6465ae1326c034def81922d3b266977eab512419f4a3a35
+SHA512 (memtailor-1.4.tar.gz) = 945ab8b9313b6765638cbdacc95aae00083501ae9041486f2dc361f80e59dc4a3ab3e9035370e85ba6b4e8caed4e401468d6244921d7184a92bf8f791a02d4dd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 22:07 [rpms/memtailor] f44: Version 1.4 Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox