commit 33f65d7bd5a723d003f16fa465c88e5ea22dd8c0
Author: Lokesh Mandvekar <l...@redhat.com>
Date:   Fri Apr 11 13:38:38 2014 -0400

    Bug 1085873 - initial upload

 .gitignore                              |    1 +
 golang-github-openshift-go-systemd.spec |   57 +++++++++++++++++++++++++++++++
 sources                                 |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fbe2912 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-systemd-b71042d.tar.gz
diff --git a/golang-github-openshift-go-systemd.spec 
b/golang-github-openshift-go-systemd.spec
new file mode 100644
index 0000000..692b768
--- /dev/null
+++ b/golang-github-openshift-go-systemd.spec
@@ -0,0 +1,57 @@
+%global debug_package   %{nil}
+%global import_path     github.com/openshift/go-systemd
+%global gopath          %{_datadir}/gocode
+%global commit          b71042dcb39d4f573694804a7378c3a8e6bdfbdb
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-github-openshift-go-systemd
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Go bindings to systemd D-BUS APIs
+License:        ASL 2.0
+URL:            http://%{import_path}
+Source0:        
https://%{import_path}/archive/%{commit}/go-systemd-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+Requires:       golang(github.com/godbus/go.dbus)
+Requires:       golang
+Summary:        Go bindings to systemd D-BUS APIs
+Provides:       golang(%{import_path}/dbus) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use openshift/go-systemd.
+
+%prep
+%setup -n go-systemd-%{commit}
+
+%build
+
+%install
+rm -rf account activation examples fixtures journal test
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/dbus
+cp -av dbus %{buildroot}/%{gopath}/src/%{import_path}
+
+%files devel
+%doc LICENSE README.md
+%dir %attr(755,root,root) %{gopath}
+%dir %attr(755,root,root) %{gopath}/src
+%dir %attr(755,root,root) %{gopath}/src/github.com
+%dir %attr(755,root,root) %{gopath}/src/github.com/openshift
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/dbus
+%{gopath}/src/%{import_path}/dbus/*.go
+
+%changelog
+* Thu Apr 03 2014 Lokesh Mandvekar <l...@redhat.com> 0-0.1.git
+- Initial package
diff --git a/sources b/sources
index e69de29..316f260 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0703df2482ed5fd4c73f85ab6d7217b5  go-systemd-b71042d.tar.gz
_______________________________________________
golang mailing list
golang@lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to