Trivial fixes in packaging
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
parent
423cb02dd3
commit
8ae082ada5
@ -1,17 +1,14 @@
|
|||||||
%global commit0 f64a1917d13d9df8930fa5a767859b4e5328367f
|
|
||||||
%global gittag0 v0.1.1
|
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
||||||
|
|
||||||
Summary: Core execution tool for unprivileged containers
|
|
||||||
Name: bubblewrap
|
Name: bubblewrap
|
||||||
Version: 0.1.1
|
Version: 0.1.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
#VCS: git:https://github.com/projectatomic/bubblewrap
|
Summary: Core execution tool for unprivileged containers
|
||||||
Source0: https://github.com/projectatomic/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%{gittag0}.tar.gz
|
|
||||||
License: LGPLv2+
|
|
||||||
URL: https://github.com/projectatomic/bubblewrap
|
|
||||||
|
|
||||||
BuildRequires: git
|
License: LGPLv2+
|
||||||
|
#VCS: git:https://github.com/projectatomic/bubblewrap
|
||||||
|
URL: https://github.com/projectatomic/bubblewrap
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
# We always run autogen.sh
|
# We always run autogen.sh
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
@ -25,29 +22,33 @@ containers that works as a setuid binary on kernels without
|
|||||||
user namespaces.
|
user namespaces.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{name}-%{version}
|
%autosetup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
env NOCONFIGURE=1 ./autogen.sh
|
env NOCONFIGURE=1 ./autogen.sh
|
||||||
%configure --disable-silent-rules --with-priv-mode=none
|
%configure --disable-silent-rules --with-priv-mode=none
|
||||||
|
%make_build
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"
|
%make_install INSTALL="install -p -c"
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
find %{buildroot} -name '*.la' -delete -print
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
%dir %{_datadir}/bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion/completions
|
||||||
%{_datadir}/bash-completion/completions/bwrap
|
%{_datadir}/bash-completion/completions/bwrap
|
||||||
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
|
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
|
||||||
%attr(0755,root,root) %caps(cap_sys_admin,cap_net_admin,cap_sys_chroot=ep) %{_bindir}/bwrap
|
%attr(0755,root,root) %caps(cap_sys_admin,cap_net_admin,cap_sys_chroot=ep) %{_bindir}/bwrap
|
||||||
%else
|
%else
|
||||||
%{_bindir}/bwrap
|
%{_bindir}/bwrap
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.1-2
|
||||||
|
- Trivial fixes in packaging
|
||||||
|
|
||||||
* Fri Jul 08 2016 Colin Walters <walters@verbum.org> - 0.1.1
|
* Fri Jul 08 2016 Colin Walters <walters@verbum.org> - 0.1.1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
Loading…
Reference in New Issue
Block a user