%global debug_package %{nil} %define import_path github.com/coreos/go-systemd %define gopath %{_libdir}/golang %define gosrc %{gopath}/src/pkg/%{import_path} Name: golang-go-systemd Version: 2 Release: %mkrel 2 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%{version}.tar.gz BuildArch: noarch Requires: golang 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 %{summary} This package contains library source intended for building other packages which use coreos/go-systemd. %prep %setup -n go-systemd-%{version} %build %install install -d -p %{buildroot}/%{gosrc}/{activation,dbus,journal} cp -av {activation,dbus,journal} %{buildroot}/%{gosrc} %files %doc LICENSE README.md %dir %attr(755,root,root) %{gosrc} %dir %attr(755,root,root) %{gosrc}/activation %dir %attr(755,root,root) %{gosrc}/dbus %dir %attr(755,root,root) %{gosrc}/journal %{gosrc}/activation/*.go %{gosrc}/dbus/*.go %{gosrc}/journal/*.go