runc/runc.spec

56 lines
1.4 KiB
RPMSpec

Name: runc
Version: 0.1.1
Release: 1mamba
Summary: runc container cli tools
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.opencontainers.org/
## GITSOURCE https://github.com/opencontainers/runc.git v0.1.1
Source: https://github.com/opencontainers/runc.git/v%{version}/runc-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libgo-devel
BuildRequires: libseccomp-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
runc container cli tools.
%debug_package
%prep
%setup -q
%build
export GOPATH=`pwd`
mkdir -p src/github.com/opencontainers
ln -sf `pwd` src/github.com/opencontainers/runc
cd src/github.com/opencontainers/runc
export BUILDTAGS='seccomp'
%make
man/md2man-all.sh 2>/dev/null
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -Dm755 runc %{buildroot}%{_bindir}/runc
install -dm755 %{buildroot}%{_mandir}
mv man/man*/ %{buildroot}%{_mandir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/runc
%{_mandir}/man8/runc*.8*
%doc LICENSE
%changelog
* Fri Jul 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-1mamba
- package created using the webbuild interface