public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/memtailor] rawhide: Version 1.4
Date: Tue, 09 Jun 2026 21:21:55 GMT [thread overview]
Message-ID: <178104011556.1.18181726035029352181.rpms-memtailor-90c826e21f07@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/memtailor
Branch : rawhide
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=rawhide
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
reply other threads:[~2026-06-09 21:21 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=178104011556.1.18181726035029352181.rpms-memtailor-90c826e21f07@fedoraproject.org \
--to=loganjerry@gmail.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