public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Raits <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/smem] epel10: Build smemcap
Date: Tue, 28 Jul 2026 12:34:10 GMT	[thread overview]
Message-ID: <178524205031.1.1725075823882893227.rpms-smem-11182dd34e33@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/smem
            Branch : epel10
            Commit : 11182dd34e33b4402fb0f8331ec158e6664d69f7
            Author : Igor Raits <ignatenkobrain@fedoraproject.org>
            Date   : 2021-08-09T10:00:32+02:00
            Stats  : +14/-16 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/smem/c/11182dd34e33b4402fb0f8331ec158e6664d69f7?branch=epel10

            Log:
            Build smemcap

It is very useful utility…

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index 4a52389..c5ecf34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ smem-0.9.tar.gz
 /smem-1.3.tar.gz
 /smem-1.4.tar.gz
 /smem-1.5.tar.xz
+/smem-1.5.tar.gz

diff --git a/smem.spec b/smem.spec
index e3c6f3e..9d2fb98 100644
--- a/smem.spec
+++ b/smem.spec
@@ -1,16 +1,13 @@
 Name:           smem
 Version:        1.5
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Report application memory usage in a meaningful way
 
 License:        GPLv2+
 URL:            http://www.selenic.com/smem/
-# version 1.5 created from tag 1.5 at
-# https://selenic.com/repo/smem/rev/1.5
-Source0:        http://www.selenic.com/smem/download/smem-%{version}.tar.xz
-BuildArch:      noarch
-
+Source0:        https://selenic.com/repo/smem/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch0: 	smem-1.5-python3path.patch
+BuildRequires:  gcc
 
 %description
 smem is a tool that can give numerous reports on memory usage on Linux
@@ -25,25 +22,25 @@ instead measures each application's "fair share" of each shared area to give
 a realistic measure.
 
 %prep
-
-%setup -q
-
-%patch0 -p1 -b py3
+%autosetup -p1
 
 %build
-
+gcc %{build_cflags} %{build_ldflags} -o smemcap smemcap.c
 
 %install
-install -D -p -m 755 smem $RPM_BUILD_ROOT/%{_bindir}/smem
-install -D -p -m 644 smem.8 $RPM_BUILD_ROOT/%{_mandir}/man8/smem.8
- 
+install -Dpm0755 -t %{buildroot}%{_bindir} smem smemcap
+install -Dpm0644 -t %{buildroot}%{_mandir}/man8 smem.8
 
 %files
-%doc COPYING
+%license COPYING
 %{_bindir}/smem
+%{_bindir}/smemcap
 %{_mandir}/man8/smem.8*
 
 %changelog
+* Mon Aug 09 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.5-8
+- Ship smemcap
+
 * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
 

diff --git a/sources b/sources
index 9fa52be..2afb906 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (smem-1.5.tar.xz) = 09822afd089d64effe06b9736c18a2e99b186dda63401e2eae7c0d237aa1d2f4667db345ba60f92562f210a04c63abf3df50ff7e0fa9a64dd2b7718e3dda1bba
+SHA512 (smem-1.5.tar.gz) = 62f2bd56f89ddef727a2c6ca4bec22c7c83bbec6e8482ad658d5ef12f16bc05eaeead137f595c2fd0f028a45dc858b72fe183597a6f7d6da68ade444938d4db7

                 reply	other threads:[~2026-07-28 12:34 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=178524205031.1.1725075823882893227.rpms-smem-11182dd34e33@fedoraproject.org \
    --to=ignatenkobrain@fedoraproject.org \
    --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