1 |
%define prerelease aa3a31dadec0fcae98b2e40c85e87ac3f971c023 |
2 |
%define import_path github.com/rackspace/gophercloud |
3 |
%define gopath %{_libdir}/golang |
4 |
%define gosrc %{gopath}/src/%{import_path} |
5 |
%define shortcommit %(c=%{prerelease}; echo ${c:0:7}) |
6 |
Summary: A multi-cloud language binding for Go |
7 |
Name: golang-rackspace-gophercloud |
8 |
Version: 0.20131025 |
9 |
Release: %mkrel 3 |
10 |
License: ASL 2.0 |
11 |
Group: Development/Other |
12 |
Url: https://%{import_path} |
13 |
Source0: https://%{import_path}/archive/%{prerelease}.tar.gz |
14 |
Provides: golang(%{import_path}) = %{version}-%{release} |
15 |
|
16 |
%description |
17 |
Gophercloud provides a Go binding to OpenStack cloud APIs. |
18 |
|
19 |
%prep |
20 |
%setup -q -n gophercloud-%{prerelease} |
21 |
|
22 |
%build |
23 |
|
24 |
%install |
25 |
mkdir -p %{buildroot}%{gosrc} |
26 |
cp -av * %{buildroot}%{gosrc}/ |
27 |
rm -f %{buildroot}%{gosrc}/LICENSE |
28 |
rm -f %{buildroot}%{gosrc}/README.asciidoc |
29 |
rm -f %{buildroot}%{gosrc}/CONTRIBUTORS.md |
30 |
|
31 |
%files |
32 |
%doc LICENSE |
33 |
%doc README.asciidoc |
34 |
%doc CONTRIBUTORS.md |
35 |
%{gosrc}/* |