|
|
f9f0118 |
# http://github.com/docker/libcontainer
|
|
|
f9f0118 |
%global provider_prefix github.com/docker/libcontainer
|
|
|
0be5985 |
%global goipath %{provider_prefix}
|
|
|
d44a86f |
%global commit c9643688cb73c2588a9c9b14357bda6c3a9df67f
|
|
|
f9f0118 |
%global commitdate 20150609
|
|
|
c3190f6 |
|
|
|
0be5985 |
%gometa
|
|
|
f9f0118 |
|
|
|
f9f0118 |
Name: %{goname}
|
|
|
d44a86f |
Version: 2.1.1
|
|
|
0be5985 |
Release: 0.17.%{commitdate}git%{shortcommit}%{?dist}
|
|
|
c3190f6 |
Summary: Configuration options for containers
|
|
|
c3190f6 |
License: ASL 2.0
|
|
|
f9f0118 |
URL: %{gourl}
|
|
|
f9f0118 |
Source0:%{gosource}
|
|
|
166e717 |
Patch0: update-to-newer-signature-of-systemd.Conn-methods.patch
|
|
|
c3df736 |
Patch1: libcontainer-fixDup3syscall.patch
|
|
|
f9adfc4 |
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/Sirupsen/logrus)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/codegangsta/cli) >= 1.1.0-1
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
|
|
|
6199992 |
BuildRequires: golang(github.com/docker/go-units)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/docker/docker/pkg/mount)
|
|
|
d44a86f |
BuildRequires: golang(github.com/docker/docker/pkg/symlink)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/docker/docker/pkg/term)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/godbus/dbus)
|
|
|
d44a86f |
BuildRequires: golang(github.com/golang/protobuf/proto)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/syndtr/gocapability/capability) >= 0-0.9
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%description
|
|
|
c3190f6 |
libcontainer specifies configuration options for what a container is. It
|
|
|
c3190f6 |
provides a native Go implementation for using Linux namespaces with no
|
|
|
c3190f6 |
external dependencies. libcontainer provides many convenience functions for
|
|
|
c3190f6 |
working with namespaces, networking, and management.
|
|
|
c3190f6 |
|
|
|
c3190f6 |
This package provides the nsinit binary as well, but it is currently for
|
|
|
c3190f6 |
debugging purposes only and not officially supported.
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%package devel
|
|
|
3de1d9b |
Summary: Configuration options for containers
|
|
|
166e717 |
BuildArch: noarch
|
|
|
166e717 |
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/Sirupsen/logrus)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/docker/docker/pkg/mount)
|
|
|
d44a86f |
BuildRequires: golang(github.com/docker/docker/pkg/symlink)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/godbus/dbus)
|
|
|
d44a86f |
BuildRequires: golang(github.com/golang/protobuf/proto)
|
|
|
f9adfc4 |
BuildRequires: golang(github.com/syndtr/gocapability/capability) >= 0-0.9
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%description devel
|
|
|
c3190f6 |
libcontainer specifies configuration options for what a container is. It
|
|
|
c3190f6 |
provides a native Go implementation for using Linux namespaces with no
|
|
|
c3190f6 |
external dependencies. libcontainer provides many convenience functions for
|
|
|
c3190f6 |
working with namespaces, networking, and management.
|
|
|
c3190f6 |
|
|
|
c3190f6 |
This package contains library source intended for building other packages
|
|
|
c3190f6 |
which use libcontainer.
|
|
|
166e717 |
|
|
|
c3190f6 |
%prep
|
|
|
0be5985 |
%forgesetup
|
|
|
166e717 |
%patch0 -p1
|
|
|
c3df736 |
%patch1 -p1 -b .dup3
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%build
|
|
|
f9f0118 |
%gobuildroot
|
|
|
f9f0118 |
%gobuild -o _bin/nsinit %{gobaseipath}/nsinit
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%install
|
|
|
c3190f6 |
# Install nsinit
|
|
|
c3190f6 |
install -d %{buildroot}%{_bindir}
|
|
|
f9f0118 |
install -p -m 755 _bin/nsinit %{buildroot}%{_bindir}/nsinit
|
|
|
c3190f6 |
|
|
|
f9f0118 |
%goinstall sample_configs
|
|
|
166e717 |
|
|
|
c3190f6 |
%check
|
|
|
f9f0118 |
%gochecks %{gobaseipath} %{gobaseipath}/{integration,devices,netlink,nsenter}
|
|
|
c3190f6 |
|
|
|
166e717 |
#define license tag if not already defined
|
|
|
166e717 |
%{!?_licensedir:%global license %doc}
|
|
|
166e717 |
|
|
|
c3190f6 |
%files
|
|
|
d44a86f |
%license LICENSE
|
|
|
d44a86f |
%doc MAINTAINERS MAINTAINERS_GUIDE.md NOTICE
|
|
|
94bfdfd |
%doc PRINCIPLES.md README.md ROADMAP.md
|
|
|
c3190f6 |
%{_bindir}/nsinit
|
|
|
c3190f6 |
|
|
|
166e717 |
%files devel -f devel.file-list
|
|
|
d44a86f |
%license LICENSE
|
|
|
166e717 |
%doc ROADMAP.md PRINCIPLES.md MAINTAINERS_GUIDE.md CONTRIBUTING.md README.md SPEC.md
|
|
|
c3190f6 |
|
|
|
c3190f6 |
%changelog
|
|
|
0be5985 |
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org>
|
|
|
0be5985 |
- 2.1.1-0.17.20150609git%{shortcommit}
|
|
|
0be5985 |
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
|
|
|
0be5985 |
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
|
|
|
0be5985 |
|
|
|
b2cee0b |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org>
|
|
|
b2cee0b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b2cee0b |
|
|
|
f9f0118 |
* Wed Feb 28 2018 Jan Chaloupka <jchaloup@redhat.com> - 2.1.1-0.15.20150609gitc964368
|
|
|
f9f0118 |
- Autogenerate some parts using the new macros
|
|
|
f9f0118 |
|
|
|
d7ce1ba |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-0.14.gitc964368
|
|
|
d7ce1ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d7ce1ba |
|
|
|
7c11610 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-0.13.gitc964368
|
|
|
7c11610 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
7c11610 |
|
|
|
c274e43 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-0.12.gitc964368
|
|
|
c274e43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c274e43 |
|
|
|
637cd1d |
* Mon Jul 03 2017 Jan Chaloupka <jchaloup@redhat.com> - 2.1.1-0.11.gitc964368
|
|
|
637cd1d |
- Exclude ppc64le (the package needs to be pdated to newer version)
|
|
|
637cd1d |
related: #1164989
|
|
|
637cd1d |
|
|
|
89d4675 |
* Tue Jun 27 2017 Jan Chaloupka <jchaloup@redhat.com> - 2.1.1-0.10.gitc964368
|
|
|
89d4675 |
- Exclude ppc64 arch (missing docker)
|
|
|
89d4675 |
related: #1164989
|
|
|
89d4675 |
|
|
|
d97b3b0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-0.9.gitc964368
|
|
|
d97b3b0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d97b3b0 |
|
|
|
9ecf6ac |
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-0.8.gitc964368
|
|
|
9ecf6ac |
- https://fedoraproject.org/wiki/Changes/golang1.7
|
|
|
9ecf6ac |
|
|
|
c3df736 |
* Sat Apr 9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.1-0.7.gitc964368
|
|
|
c3df736 |
- Fix builds on aarch64
|
|
|
c3df736 |
|
|
|
166e717 |
* Thu Mar 17 2016 jchaloup <jchaloup@redhat.com> - 2.1.1-0.6.gitc964368
|
|
|
166e717 |
- Polish spec file
|
|
|
166e717 |
- Patch systemd.Conn methods
|
|
|
166e717 |
resolves: #1230658
|
|
|
166e717 |
|
|
|
4292900 |
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-0.5.gitc964368
|
|
|
4292900 |
- https://fedoraproject.org/wiki/Changes/golang1.6
|
|
|
4292900 |
|
|
|
8ced730 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-0.4.gitc964368
|
|
|
8ced730 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8ced730 |
|
|
|
6b5674c |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-0.3.gitc964368
|
|
|
6b5674c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
6b5674c |
|
|
|
19fbc3f |
* Sun Jun 14 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-0.2.gitc964368
|
|
|
19fbc3f |
- Don't remove _build directory, it is used during debuginfo extracting
|
|
|
19fbc3f |
At the same time don't include _build directory in devel subpackage.
|
|
|
19fbc3f |
resolves: #1231486
|
|
|
19fbc3f |
|
|
|
d44a86f |
* Thu Jun 11 2015 jchaloup <jchaloup@redhat.com> - 2.1.1-0.1.gitc964368
|
|
|
d44a86f |
- Update to 2.1.1
|
|
|
d44a86f |
Ppolish spec file
|
|
|
d44a86f |
Use license macro for LICENSE
|
|
|
d44a86f |
Remove runtime dependency on golang
|
|
|
d44a86f |
resolves: #1230658
|
|
|
d44a86f |
|
|
|
f9adfc4 |
* Mon Apr 20 2015 jchaloup <jchaloup@redhat.com> - 1.4.0-3.gitbada39c
|
|
|
f9adfc4 |
- Bump to upstream bada39cf31c3305810c2575e036f594a7dc3c98f
|
|
|
f9adfc4 |
related: #1164989
|
|
|
f9adfc4 |
|
|
|
3de1d9b |
* Tue Mar 31 2015 jchaloup <jchaloup@redhat.com> - 1.4.0-2.gitd7dea0e
|
|
|
3de1d9b |
- Add [B]R to devel subpackage
|
|
|
3de1d9b |
related: #1164989
|
|
|
3de1d9b |
|
|
|
117e46f |
* Mon Mar 09 2015 jchaloup <jchaloup@redhat.com> - 1.4.0-1.git83663f8
|
|
|
117e46f |
- Bump to upstream 83663f82e3d76f57ea57faf80b8fd7eb96933b9b
|
|
|
117e46f |
related: #1164989
|
|
|
117e46f |
|
|
|
429d323 |
* Tue Nov 18 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-3.git28cb5f9
|
|
|
429d323 |
- Resolves: rhbz#1164989 - update to atleast b9c834b7
|
|
|
429d323 |
|
|
|
c6f9452 |
* Mon Oct 20 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-2.gitc907e40
|
|
|
c6f9452 |
- install namespaces/nsenter
|
|
|
c6f9452 |
|
|
|
d3570fb |
* Mon Oct 20 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-1.gitc907e40
|
|
|
d3570fb |
- bump to v1.2.0 commit c907e406fe81320d87b58edf74953ceb08facc13
|
|
|
d3570fb |
|
|
|
10deef8 |
* Sat Aug 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-10.git
|
|
|
10deef8 |
- Include syncpipe, system and user dirs missed in previous build
|
|
|
10deef8 |
|
|
|
6a7946e |
* Fri Aug 22 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-9.git
|
|
|
6a7946e |
- Update to db65c35051d05f3fb218a0e84a11267e0894fe0a for docker 1.2.0
|
|
|
6a7946e |
|
|
|
1b31f71 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-8.git29363e2
|
|
|
1b31f71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
1b31f71 |
|
|
|
09c9443 |
* Fri Aug 15 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-7.git
|
|
|
09c9443 |
- Resolves: rhbz#1130500
|
|
|
09c9443 |
- update to upstream commit 29363e2d2d7b8f62a5f353be333758f83df540a9
|
|
|
09c9443 |
|
|
|
c3190f6 |
* Thu Jul 31 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-6
|
|
|
c3190f6 |
- Resolves: rhbz#1111916 - package review request
|
|
|
c3190f6 |
- remove attr for fedora
|
|
|
bfc18bb |
- correct NVR for codegangsta/cli 1.1.0-1
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Wed Jul 30 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-5
|
|
|
c3190f6 |
- LICENSE file installed in main package
|
|
|
c3190f6 |
- defattr gotten rid of
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Wed Jul 30 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-4
|
|
|
c3190f6 |
- Update BRs for main package
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Mon Jul 28 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-3
|
|
|
c3190f6 |
- nsinit needs docker-io-pkg-devel to build
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Fri Jul 25 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.0-2
|
|
|
c3190f6 |
- nsinit description: debugging only and no official support
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Fri Jul 25 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> 1.1.0-1
|
|
|
c3190f6 |
- use v1.1.0
|
|
|
c3190f6 |
- do not own dirs owned by golang
|
|
|
c3190f6 |
- do not redefine macros defined in golang
|
|
|
c3190f6 |
- main package provides nsinit
|
|
|
c3190f6 |
|
|
|
c3190f6 |
* Sat Jun 21 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> 1.0.1-1
|
|
|
c3190f6 |
- Initial fedora package
|