From df32aaf428c3329fdcce0488f5b35a8076dbade0 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 8 Oct 2025 19:38:41 +0800 Subject: [PATCH] build with system build flags and generate debug packages --- memtester.spec | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/memtester.spec b/memtester.spec index d3e5a24..20d599f 100644 --- a/memtester.spec +++ b/memtester.spec @@ -1,20 +1,25 @@ -%global debug_package %{nil} - Name: memtester Version: 4.6.0 -Release: 1 +Release: 2 Summary: A userspace utility for testing the memory subsystem for faults License: GPL-2.0-only -URL: http://pyropus.ca/software/memtester/ -Source0: http://pyropus.ca/software/memtester/old-versions/%{name}-%{version}.tar.gz +URL: https://pyropus.ca/software/memtester/ +Source0: https://pyropus.ca/software/memtester/old-versions/%{name}-%{version}.tar.gz -BuildRequires: gcc +BuildRequires: gcc make %description -A userspace utility for testing the memory subsystem for faults. It's portable and should compile and work on any 32- or 64-bit Unix-like system. (Yes, even weird, proprietary Unices, and even Mac OS X.) For hardware developers, memtester can be told to test memory starting at a particular physical address as of memtester version 4.1.0. +A userspace utility for testing the memory subsystem for faults. It's +portable and should compile and work on any 32- or 64-bit Unix-like +system. (Yes, even weird, proprietary Unices, and even Mac OS X.) + +For hardware developers, memtester can be told to test memory starting +at a particular physical address as of memtester version 4.1.0. %prep %autosetup -n %{name}-%{version} -p1 +echo "%{__cc} %{build_cflags} -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c" > conf-cc +echo "%{__cc} %{build_ldflags}" > conf-ld %build %make_build @@ -23,13 +28,6 @@ A userspace utility for testing the memory subsystem for faults. It's portable a install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name} install -D -m 0644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8 -%pre -%preun -%post -%postun - -%check - %files %license COPYING %doc README README.tests @@ -37,6 +35,9 @@ install -D -m 0644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8 %{_mandir}/* %changelog +* Wed Oct 08 2025 Funda Wang - 4.6.0-2 +- build with system build flags and generate debug packages + * Fri Sep 15 2023 xu_ping <707078654@qq.com> - 4.6.0-1 - Upgrade version to 4.6.0 -- Gitee