public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tmux-top] epel10: update spec
@ 2026-09-29 12:28 Jan Chaloupka
0 siblings, 0 replies; only message in thread
From: Jan Chaloupka @ 2026-09-29 12:28 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 12:28 [rpms/tmux-top] epel10: update spec Jan Chaloupka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox