[golang-github-prometheus-client_model/f20] First package for Fedora - resolves: #1190437

Jan Chaloupka jchaloup at fedoraproject.org
Mon Feb 16 11:40:25 UTC 2015


commit 580737b3ada6eda03446aa10cd69a54da0050bfb
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Mon Feb 16 12:35:21 2015 +0100

    First package for Fedora
    - resolves: #1190437

 .gitignore                                 |    1 +
 golang-github-prometheus-client_model.spec |   59 ++++++++++++++++++++++++++++
 sources                                    |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6dd549a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/client_model-bc9454c.tar.gz
diff --git a/golang-github-prometheus-client_model.spec b/golang-github-prometheus-client_model.spec
new file mode 100644
index 0000000..b95e005
--- /dev/null
+++ b/golang-github-prometheus-client_model.spec
@@ -0,0 +1,59 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         prometheus
+%global repo            client_model
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          bc9454ca562dc050e060ea61a1c0e562a189850f
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Data model artifacts for Prometheus
+License:        ASL 2.0
+URL:            https://%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(code.google.com/p/goprotobuf/proto)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(code.google.com/p/goprotobuf/proto)
+Summary:        %{summary}
+Provides:       golang(%{import_path}/go) = %{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
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav go %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+
+%files devel
+%doc AUTHORS.md CONTRIBUTING.md README.md LICENSE metrics.proto
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Sat Feb 07 2015 jchaloup <jchaloup at redhat.com> - 0-0.1.gitbc9454c
+- First package for Fedora
+  resolves: #1190437
diff --git a/sources b/sources
index e69de29..10398d9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+74a556df5ac94c65538fee5f208767a0  client_model-bc9454c.tar.gz


More information about the scm-commits mailing list