public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Chaloupka <jchaloup@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tmux-top] epel10: update spec
Date: Tue, 29 Sep 2026 12:28:38 GMT	[thread overview]
Message-ID: <179068491829.1.12285473366183299192.rpms-tmux-top-3a71ea5a7dcb@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/tmux-top
Branch : epel10
Commit : 3a71ea5a7dcbbd7ec16798a69bdfec206a7ec586
Author : Jan Chaloupka <jchaloup@redhat.com>
Date   : 2015-04-04T19:27:55+02:00
Stats  : +41/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/tmux-top/c/3a71ea5a7dcbbd7ec16798a69bdfec206a7ec586?branch=epel10

Log:
update spec

---
diff --git a/tmux-top.spec b/tmux-top.spec
index b2b1e13..ac86b45 100644
--- a/tmux-top.spec
+++ b/tmux-top.spec
@@ -31,23 +31,64 @@ tmux-top allows you to see your:
  * network information
  * I/O
 
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(github.com/codegangsta/cli)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(github.com/codegangsta/cli)
+Summary:        %{summary}
+Provides:       golang(%{import_path}/cli) = %{version}-%{release}
+Provides:       golang(%{import_path}/conf) = %{version}-%{release}
+Provides:       golang(%{import_path}/display) = %{version}-%{release}
+Provides:       golang(%{import_path}/humanize) = %{version}-%{release}
+Provides:       golang(%{import_path}/io) = %{version}-%{release}
+Provides:       golang(%{import_path}/load) = %{version}-%{release}
+Provides:       golang(%{import_path}/mem) = %{version}-%{release}
+Provides:       golang(%{import_path}/net) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for
+building other packages which use %{project}/%{repo}.
 
 %prep
 %setup -q -n %{repo}-%{commit}
 
 %build
+# Make link for tmux-top itself
+mkdir -p src/github.com/%{project}
+ln -s ../../../ src/github.com/%{project}/%{repo}
+export GOPATH=$(pwd):%{gopath}:$GOPATH
 make
 
 %install
 make install DESTDIR=%{buildroot}
 
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav cli %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav conf %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav display %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav docs %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav humanize %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav io %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav load %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav mem %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav net %{buildroot}/%{gopath}/src/%{import_path}/
+
 %check
+export GOPATH=$(pwd):%{gopath}:$GOPATH
 make test
 
 %files
 %doc README.md LICENSE
 %{_bindir}/%{name}
 
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
 %changelog
 * Fri Mar 13 2015 Tomas Tomecek <ttomecek@redhat.com> - 0.0.1-1
 - initial release

                 reply	other threads:[~2026-09-29 12:28 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=179068491829.1.12285473366183299192.rpms-tmux-top-3a71ea5a7dcb@fedoraproject.org \
    --to=jchaloup@redhat.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