%global debug_package %{nil} %global import_path github.com/coreos/go-etcd %global gopath %{_datadir}/gocode Name: golang-github-coreos-go-log Version: 0.2.0 Release: 0.1.rc2%{?dist} Summary: The official etcd v0.2 client library for Go License: ASL 2.0 URL: http://%{import_path} Source0: https://%{import_path}/archive/%{commit}/v%{version}-rc1.tar.gz %description %{summary} %package devel Requires: golang Summary: A golang library for logging to systemd Provides: golang(%{import_path}) = %{version}-%{release} Provides: golang(%{import_path}/etcd) = %{version}-%{release} %description devel %{summary} This package contains library source intended for building other packages which use coreos/go-etcd. %prep %setup -n go-etcd-%{version}-rc1 %build %install install -d -p %{buildroot}/%{gopath}/src/%{import_path}/etcd cp -av etcd/*.go %{buildroot}/%{gopath}/src/%{import_path}/etcd %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/coreos %dir %attr(755,root,root) %{gopath}/src/%{import_path} %dir %attr(755,root,root) %{gopath}/src/%{import_path}/etcd %{gopath}/src/%{import_path}/etcd/*.go %changelog * Wed Aug 20 2014 Adam Miller - 0.2.0-0.1-rc1 - Initial fedora package