runc/runc.spec

60 lines
1.6 KiB
RPMSpec

%define gitver %(echo %version | tr _ -)
Name: runc
Version: 1.0.0_rc5
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%{gitver}/runc-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libseccomp-devel
## AUTOBUILDREQ-END
BuildRequires: go-pie
BuildRequires: libgo-devel >= 7.3.0-1mamba
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
* Thu Apr 19 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0_rc5-1mamba
- update to 1.0.0_rc5
* Fri Jul 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-1mamba
- package created using the webbuild interface