1 |
%define debug_package %{nil} |
2 |
|
3 |
%define prerelease 3454319be2ebde8481aa0804a801f4d07de705b5 |
4 |
%define import_path github.com/syndtr/gocapability |
5 |
%define gopath %{_libdir}/golang |
6 |
%define gosrc %{gopath}/src/pkg/%{import_path} |
7 |
%define shortcommit %(c=%{prerelease}; echo ${c:0:7}) |
8 |
|
9 |
Summary: Utilities for manipulating POSIX capabilities in Go |
10 |
Name: golang-syndtr-gocapability |
11 |
Version: 0.1.git%{shortcommit} |
12 |
Release: %mkrel 6 |
13 |
License: MIT |
14 |
Group: Development/Other |
15 |
Url: https://%{import_path} |
16 |
Source0: https://%{import_path}/archive/%{prerelease}.tar.gz |
17 |
Provides: golang(%{import_path}) = %{version}-%{release} |
18 |
Provides: golang(%{import_path}/capability) = %{version}-%{release} |
19 |
|
20 |
%description |
21 |
Utilities for manipulating POSIX capabilities in Go |
22 |
|
23 |
%prep |
24 |
%setup -q -n gocapability-%{prerelease} |
25 |
|
26 |
%build |
27 |
|
28 |
%install |
29 |
mkdir -p %{buildroot}%{gosrc} |
30 |
cp -av * %{buildroot}%{gosrc}/ |
31 |
rm -f %{buildroot}%{gosrc}/LICENSE |
32 |
|
33 |
%files |
34 |
%doc LICENSE |
35 |
%{gosrc}/* |