Blame golang-github-syndtr-gocapability.spec

Vincent Batts beebd08
%global debug_package   %{nil}
Vincent Batts beebd08
%global import_path     github.com/syndtr/gocapability
Vincent Batts beebd08
%global gopath          %{_datadir}/gocode
Vincent Batts beebd08
%global commit          3454319be2ebde8481aa0804a801f4d07de705b5
Vincent Batts beebd08
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
Vincent Batts beebd08
Vincent Batts beebd08
Name:           golang-github-syndtr-gocapability
Vincent Batts beebd08
Version:        0
ef8d439
Release:        0.6.git%{shortcommit}%{?dist}
Vincent Batts beebd08
Summary:        POSIX capability library for the Go programming language
Vincent Batts beebd08
License:        BSD
Vincent Batts beebd08
URL:            %{import_path}
Vincent Batts beebd08
Source0:        https://github.com/syndtr/gocapability/archive/%{commit}/gocapability-%{shortcommit}.tar.gz
Vincent Batts beebd08
Vincent Batts beebd08
%description
Vincent Batts beebd08
%{summary}
Vincent Batts beebd08
Vincent Batts beebd08
%package devel
99eeda8
BuildRequires:  golang
3fac2a9
Requires:       golang
Vincent Batts beebd08
Summary:        Source for POSIX capability for the Go programming language
0267971
%if 0%{?fedora} >= 19
Vincent Batts beebd08
BuildArch:      noarch
Vincent Batts beebd08
%else
Vincent Batts beebd08
ExclusiveArch:  %{ix86} x86_64 %{arm}
Vincent Batts beebd08
%endif
Vincent Batts beebd08
Provides:       golang(%{import_path}/capability) = %{version}-%{release}
Vincent Batts beebd08
Vincent Batts beebd08
%description devel
Vincent Batts beebd08
%{summary}
Vincent Batts beebd08
Vincent Batts beebd08
This package contains library source intended for building other packages.
Vincent Batts beebd08
Vincent Batts beebd08
Vincent Batts beebd08
%prep
Vincent Batts beebd08
%setup -q -n gocapability-%{commit}
Vincent Batts beebd08
Vincent Batts beebd08
%build
Vincent Batts beebd08
Vincent Batts beebd08
%install
Vincent Batts beebd08
install -d %{buildroot}/%{gopath}/src/%{import_path}
Vincent Batts beebd08
cp -av capability %{buildroot}/%{gopath}/src/%{import_path}/
Vincent Batts beebd08
Vincent Batts beebd08
%check
Vincent Batts beebd08
GOPATH=%{buildroot}/%{gopath} go test %{import_path}/capability
Vincent Batts beebd08
Vincent Batts beebd08
%files devel
Vincent Batts beebd08
%defattr(-,root,root,-)
Vincent Batts beebd08
%doc LICENSE
Vincent Batts beebd08
%dir %attr(755,root,root) %{gopath}/src/github.com
Vincent Batts beebd08
%dir %attr(755,root,root) %{gopath}/src/github.com/syndtr
Vincent Batts beebd08
%dir %attr(755,root,root) %{gopath}/src/%{import_path}
Vincent Batts beebd08
%dir %attr(755,root,root) %{gopath}/src/%{import_path}/capability
Vincent Batts beebd08
%{gopath}/src/%{import_path}/capability/*.go
Vincent Batts beebd08
Vincent Batts beebd08
%changelog
ef8d439
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.git3454319
ef8d439
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ef8d439
0267971
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.5.git3454319
0267971
- exclusivearch for el6+
0267971
3fac2a9
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5@redhat.com> 0-0.4.git3454319
99eeda8
- require golang as runtime dep
3fac2a9
Vincent Batts beebd08
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> 0-0.3.git3454319
Vincent Batts beebd08
- typo
Vincent Batts beebd08
Vincent Batts beebd08
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> 0-0.2.git3454319
Vincent Batts beebd08
- clean up per code review (bz1032750)
Vincent Batts beebd08
Vincent Batts beebd08
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> 0-0.1.git3454319
Vincent Batts beebd08
- initial build