%global debug_package %{nil} %global import_path github.com/coreos/go-systemd %global gopath %{_datadir}/gocode %global vers 2 Name: golang-go-systemd Version: %mkrel %{vers} Release: 1 Summary: Go bindings to systemd socket activation, journal and D-BUS APIs License: ASL 2.0 URL: http://%{import_path} Source0: https://%{import_path}/archive/v%{vers}.tar.gz BuildArch: noarch %description %{summary} %package devel Requires: golang Summary: Go bindings to systemd socket activation, journal and D-BUS APIs Provides: golang(%{import_path}) = %{version}-%{release} Provides: golang(%{import_path}/activation) = %{version}-%{release} Provides: golang(%{import_path}/dbus) = %{version}-%{release} Provides: golang(%{import_path}/journal) = %{version}-%{release} %description devel %{summary} This package contains library source intended for building other packages which use coreos/go-systemd. %prep %setup -n go-systemd-%{vers} %build %install install -d -p %{buildroot}/%{gopath}/src/%{import_path}/{activation,dbus,journal} cp -av {activation,dbus,journal} %{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/coreos %dir %attr(755,root,root) %{gopath}/src/%{import_path} %dir %attr(755,root,root) %{gopath}/src/%{import_path}/activation %dir %attr(755,root,root) %{gopath}/src/%{import_path}/dbus %dir %attr(755,root,root) %{gopath}/src/%{import_path}/journal %{gopath}/src/%{import_path}/activation/*.go %{gopath}/src/%{import_path}/dbus/*.go %{gopath}/src/%{import_path}/journal/*.go