/[packages]/cauldron/golang-go-systemd/current/SPECS/golang-go-systemd.spec
ViewVC logotype

Diff of /cauldron/golang-go-systemd/current/SPECS/golang-go-systemd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 641528 by bcornec, Sun Jun 29 23:35:46 2014 UTC revision 641530 by bcornec, Sun Jun 29 23:51:15 2014 UTC
# Line 1  Line 1 
1  %global debug_package   %{nil}  %global debug_package   %{nil}
2  %global import_path     github.com/coreos/go-systemd  %define import_path     github.com/coreos/go-systemd
3  %global gopath          %{_datadir}/gocode  %define gopath          %{_libdir}/golang
4  %global vers            2  %define gosrc                   %{gopath}/src/%{import_path}
5    
6  Name:           golang-go-systemd  Name:           golang-go-systemd
7  Version:        %mkrel %{vers}  Version:        2
8  Release:        1  Release:        %mkrel 1
9  Summary:        Go bindings to systemd socket activation, journal and D-BUS APIs  Summary:        Go bindings to systemd socket activation, journal and D-BUS APIs
10  License:        ASL 2.0  License:        ASL 2.0
11  URL:            http://%{import_path}  URL:            http://%{import_path}
12  Source0:        https://%{import_path}/archive/v%{vers}.tar.gz  Source0:        https://%{import_path}/archive/v%{version}.tar.gz
13  BuildArch:      noarch  BuildArch:      noarch
   
 %description  
 %{summary}  
   
 %package devel  
14  Requires:       golang  Requires:       golang
 Summary:        Go bindings to systemd socket activation, journal and D-BUS APIs  
15  Provides:       golang(%{import_path}) = %{version}-%{release}  Provides:       golang(%{import_path}) = %{version}-%{release}
16  Provides:       golang(%{import_path}/activation) = %{version}-%{release}  Provides:       golang(%{import_path}/activation) = %{version}-%{release}
17  Provides:       golang(%{import_path}/dbus) = %{version}-%{release}  Provides:       golang(%{import_path}/dbus) = %{version}-%{release}
18  Provides:       golang(%{import_path}/journal) = %{version}-%{release}  Provides:       golang(%{import_path}/journal) = %{version}-%{release}
19    
20  %description devel  
21    %description
22  %{summary}  %{summary}
23    
24  This package contains library source intended for building other packages  This package contains library source intended for building other packages
25  which use coreos/go-systemd.  which use coreos/go-systemd.
26    
27  %prep  %prep
28  %setup -n go-systemd-%{vers}  %setup -n go-systemd-%{version}
29    
30  %build  %build
31    
32  %install  %install
33  install -d -p %{buildroot}/%{gopath}/src/%{import_path}/{activation,dbus,journal}  install -d -p %{buildroot}/%{gosrc}/{activation,dbus,journal}
34  cp -av {activation,dbus,journal} %{buildroot}/%{gopath}/src/%{import_path}  cp -av {activation,dbus,journal} %{buildroot}/%{gosrc}
35    
36  %files devel  %files
37  %doc LICENSE README.md  %doc LICENSE README.md
38  %dir %attr(755,root,root) %{gopath}  %dir %attr(755,root,root) %{gosrc}
39  %dir %attr(755,root,root) %{gopath}/src  %dir %attr(755,root,root) %{gosrc}/activation
40  %dir %attr(755,root,root) %{gopath}/src/github.com  %dir %attr(755,root,root) %{gosrc}/dbus
41  %dir %attr(755,root,root) %{gopath}/src/github.com/coreos  %dir %attr(755,root,root) %{gosrc}/journal
42  %dir %attr(755,root,root) %{gopath}/src/%{import_path}  %{gosrc}/activation/*.go
43  %dir %attr(755,root,root) %{gopath}/src/%{import_path}/activation  %{gosrc}/dbus/*.go
44  %dir %attr(755,root,root) %{gopath}/src/%{import_path}/dbus  %{gosrc}/journal/*.go
 %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  

Legend:
Removed from v.641528  
changed lines
  Added in v.641530

  ViewVC Help
Powered by ViewVC 1.1.30