[golang-github-guelfey-godbus] BZ 1072478 - initial package upload

Lokesh Mandvekar lsm5 at fedoraproject.org
Thu Mar 6 14:01:04 UTC 2014


commit 0929c4fe9c984be149004ff86e2b53afa6b22b00
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date:   Thu Mar 6 09:00:47 2014 -0500

    BZ 1072478 - initial package upload

 .gitignore                        |    1 +
 golang-github-guelfey-godbus.spec |   76 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d2199d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go.dbus-f6a3a23.tar.gz
diff --git a/golang-github-guelfey-godbus.spec b/golang-github-guelfey-godbus.spec
new file mode 100644
index 0000000..7d18dc0
--- /dev/null
+++ b/golang-github-guelfey-godbus.spec
@@ -0,0 +1,76 @@
+%global debug_package   %{nil}
+%global import_path     github.com/guelfey/go.dbus
+%global gopath          %{_datadir}/gocode
+%global commit          f6a3a2366cc39b8479cadc499d3c735fb10fbdda
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-github-guelfey-godbus
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Go client bindings for D-Bus
+License:        BSD
+URL:            https://%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/go.dbus-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+Simple library that implements native Go client bindings for the
+D-Bus message bus system.
+
+Features include:
+Complete native implementation of the D-Bus message protocol
+Go-like API (channels for signals / asynchronous method calls, Goroutine-safe
+connections)
+Subpackages that help with the introspection / property interfaces.
+
+%package devel
+BuildRequires:  golang
+Requires:       golang
+Summary:        Go client bindings for D-Bus
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/_examples) = %{version}-%{release}
+Provides:       golang(%{import_path}/introspect) = %{version}-%{release}
+Provides:       golang(%{import_path}/prop) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use %{import_path}.
+
+%prep
+%setup -n go.dbus-%{commit}
+
+%build
+
+%install
+for d in . _examples introspect prop; do
+    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$d
+    cp -av $d/*.go %{buildroot}/%{gopath}/src/%{import_path}/$d
+done
+
+%check
+
+%files devel
+%defattr(-,root,root,-)
+%doc LICENSE README.markdown
+%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/guelfey
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/_examples
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/introspect
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/prop
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/_examples/*.go
+%{gopath}/src/%{import_path}/introspect/*.go
+%{gopath}/src/%{import_path}/prop/*.go
+
+%changelog
+* Tue Mar 04 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.1.gitf6a3a23
+- Initial fedora package
diff --git a/sources b/sources
index e69de29..85a5883 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+610b184e6662aef195d0ee5c811913f6  go.dbus-f6a3a23.tar.gz


More information about the scm-commits mailing list