ttomecek pushed to tmux-top (epel7). "update spec"
notifications at fedoraproject.org
notifications at fedoraproject.org
Sat Apr 4 18:24:29 UTC 2015
>From 3a71ea5a7dcbbd7ec16798a69bdfec206a7ec586 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup at redhat.com>
Date: Fri, 13 Mar 2015 09:58:33 +0100
Subject: 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 at redhat.com> - 0.0.1-1
- initial release
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/tmux-top.git/commit/?h=epel7&id=3a71ea5a7dcbbd7ec16798a69bdfec206a7ec586
More information about the scm-commits
mailing list