|
|
6b8bb0b |
# -*- rpm-spec -*-
|
|
|
6b8bb0b |
|
|
|
076511b |
%define with_qemu 1
|
|
|
6b8bb0b |
|
|
|
c2d0cd2 |
# RHEL does not provide the 9p.ko kernel module
|
|
|
c2d0cd2 |
# nor the virtio-9p KVM backend driver.
|
|
|
c2d0cd2 |
%if 0%{?rhel}
|
|
|
076511b |
%define with_qemu 0
|
|
|
6b8bb0b |
%endif
|
|
|
6b8bb0b |
|
|
|
f339b33 |
%define libvirt_version 1.0.2
|
|
|
f339b33 |
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
Name: libvirt-sandbox
|
|
|
a75db29 |
Version: 0.6.0
|
|
|
5b06983 |
Release: 2%{?dist}%{?extra_release}
|
|
|
6b8bb0b |
Summary: libvirt application sandbox framework
|
|
|
6b8bb0b |
Group: Development/Tools
|
|
|
6b8bb0b |
License: LGPLv2+
|
|
|
6b8bb0b |
URL: http://libvirt.org/
|
|
|
6b8bb0b |
Source0: ftp://libvirt.org/libvirt/sandbox/%{name}-%{version}.tar.gz
|
|
|
6b8bb0b |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
a75db29 |
BuildRequires: libvirt-gobject-devel >= 0.2.1
|
|
|
6b8bb0b |
BuildRequires: gobject-introspection-devel
|
|
|
ce3b588 |
BuildRequires: glibc-static
|
|
|
639e0c0 |
BuildRequires: /usr/bin/pod2man
|
|
|
c2d0cd2 |
BuildRequires: intltool
|
|
|
076511b |
BuildRequires: libselinux-devel
|
|
|
9a41206 |
BuildRequires: glib2-devel >= 2.32.0
|
|
|
a75db29 |
BuildRequires: xz-devel >= 5.0.0, xz-static
|
|
|
a75db29 |
BuildRequires: zlib-devel >= 1.2.0, zlib-static
|
|
|
c2d0cd2 |
Requires: rpm-python
|
|
|
f339b33 |
# For virsh lxc-enter-namespace command
|
|
|
f339b33 |
Requires: libvirt-client >= %{libvirt_version}
|
|
|
c2d0cd2 |
Requires: systemd >= 198
|
|
|
9a41206 |
Requires: pygobject3-base
|
|
|
9a41206 |
Requires: libselinux-python
|
|
|
c99826c |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%package libs
|
|
|
6b8bb0b |
Group: Development/Libraries
|
|
|
6b8bb0b |
Summary: libvirt application sandbox framework libraries
|
|
|
ce3b588 |
# So we get the full libvirtd daemon, not just client libs
|
|
|
076511b |
%if %{with_qemu}
|
|
|
076511b |
%ifarch %{ix86} x86_64
|
|
|
f339b33 |
Requires: libvirt-daemon-kvm >= %{libvirt_version}
|
|
|
076511b |
%else
|
|
|
f339b33 |
Requires: libvirt-daemon-qemu >= %{libvirt_version}
|
|
|
076511b |
%endif
|
|
|
9d9bc6c |
%endif
|
|
|
f339b33 |
Requires: libvirt-daemon-lxc >= %{libvirt_version}
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%package devel
|
|
|
6b8bb0b |
Group: Development/Libraries
|
|
|
6b8bb0b |
Summary: libvirt application sandbox framework development files
|
|
|
6b8bb0b |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%description
|
|
|
6b8bb0b |
This package provides a command for running applications within
|
|
|
6b8bb0b |
a sandbox using libvirt.
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%description libs
|
|
|
6b8bb0b |
This package provides a framework for building application sandboxes
|
|
|
6b8bb0b |
using libvirt.
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%description devel
|
|
|
6b8bb0b |
This package provides development header files and libraries for
|
|
|
6b8bb0b |
the libvirt sandbox
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%prep
|
|
|
6b8bb0b |
%setup -q
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%build
|
|
|
6b8bb0b |
|
|
|
c2d0cd2 |
%configure --enable-introspection
|
|
|
6b8bb0b |
%__make %{?_smp_mflags}
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%install
|
|
|
6b8bb0b |
rm -rf $RPM_BUILD_ROOT
|
|
|
6b8bb0b |
chmod a-x examples/*.py examples/*.pl examples/*.js
|
|
|
6b8bb0b |
%__make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
6b8bb0b |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-sandbox-1.0.a
|
|
|
6b8bb0b |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-sandbox-1.0.la
|
|
|
6b8bb0b |
|
|
|
c2d0cd2 |
%find_lang %{name}
|
|
|
c2d0cd2 |
|
|
|
6b8bb0b |
%clean
|
|
|
6b8bb0b |
rm -rf $RPM_BUILD_ROOT
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%post libs -p /sbin/ldconfig
|
|
|
6b8bb0b |
%postun libs -p /sbin/ldconfig
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%files
|
|
|
6b8bb0b |
%defattr(-,root,root,-)
|
|
|
c2d0cd2 |
%{_datadir}/bash-completion/completions/virt-sandbox-service
|
|
|
37907ac |
%config(noreplace) %{_sysconfdir}/cron.daily/virt-sandbox-service.logrotate
|
|
|
ce3b588 |
%dir %{_sysconfdir}/libvirt-sandbox/services
|
|
|
6b8bb0b |
%{_bindir}/virt-sandbox
|
|
|
ce3b588 |
%{_bindir}/virt-sandbox-service
|
|
|
37907ac |
%{_libexecdir}/virt-sandbox-service-util
|
|
|
6b8bb0b |
%{_mandir}/man1/virt-sandbox.1*
|
|
|
ce3b588 |
%{_mandir}/man1/virt-sandbox-service.1*
|
|
|
f339b33 |
%{_mandir}/man1/virt-sandbox-service-*.1*
|
|
|
6b8bb0b |
|
|
|
c2d0cd2 |
%files libs -f %{name}.lang
|
|
|
6b8bb0b |
%defattr(-,root,root,-)
|
|
|
6b8bb0b |
%doc README COPYING AUTHORS ChangeLog NEWS
|
|
|
ce3b588 |
%dir %{_sysconfdir}/libvirt-sandbox
|
|
|
ce3b588 |
%dir %{_sysconfdir}/libvirt-sandbox/scratch
|
|
|
67ca161 |
%config %{_sysconfdir}/libvirt-sandbox/scratch/README
|
|
|
6b8bb0b |
%{_libexecdir}/libvirt-sandbox-init-common
|
|
|
6b8bb0b |
%{_libexecdir}/libvirt-sandbox-init-lxc
|
|
|
6b8bb0b |
%{_libexecdir}/libvirt-sandbox-init-qemu
|
|
|
6b8bb0b |
%{_libdir}/libvirt-sandbox-1.0.so.*
|
|
|
6b8bb0b |
%{_libdir}/girepository-1.0/LibvirtSandbox-1.0.typelib
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%files devel
|
|
|
6b8bb0b |
%defattr(-,root,root,-)
|
|
|
6b8bb0b |
%doc examples/virt-sandbox.pl
|
|
|
6b8bb0b |
%doc examples/virt-sandbox.py
|
|
|
6b8bb0b |
%doc examples/virt-sandbox.js
|
|
|
6b8bb0b |
%doc examples/virt-sandbox-mkinitrd.py
|
|
|
6b8bb0b |
%{_libdir}/libvirt-sandbox-1.0.so
|
|
|
6b8bb0b |
%{_libdir}/pkgconfig/libvirt-sandbox-1.0.pc
|
|
|
6b8bb0b |
%dir %{_includedir}/libvirt-sandbox-1.0
|
|
|
6b8bb0b |
%dir %{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox
|
|
|
6b8bb0b |
%{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox/libvirt-sandbox.h
|
|
|
6b8bb0b |
%{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox/libvirt-sandbox-*.h
|
|
|
6b8bb0b |
%{_datadir}/gir-1.0/LibvirtSandbox-1.0.gir
|
|
|
6b8bb0b |
%{_datadir}/gtk-doc/html/Libvirt-sandbox
|
|
|
6b8bb0b |
|
|
|
6b8bb0b |
%changelog
|
|
|
5b06983 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
|
5b06983 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
5b06983 |
|
|
|
a75db29 |
* Wed Jul 1 2015 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-1
|
|
|
a75db29 |
- Update to 0.6.0 release
|
|
|
a75db29 |
|
|
|
c703c02 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
c703c02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c703c02 |
|
|
|
8bfa51e |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
8bfa51e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
8bfa51e |
|
|
|
c8ecb7a |
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.5.1-3
|
|
|
c8ecb7a |
- Rebuilt for gobject-introspection 1.41.4
|
|
|
c8ecb7a |
|
|
|
95c6bbe |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
95c6bbe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
95c6bbe |
|
|
|
076511b |
* Mon Nov 18 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.1-1
|
|
|
a75db29 |
- Update to 0.5.1 release
|
|
|
076511b |
|
|
|
c99826c |
* Thu Oct 3 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.0-3
|
|
|
c99826c |
- Add fully versioned dep between libvirt-sandbox & libvirt-sandbox-libs
|
|
|
c99826c |
|
|
|
d00b508 |
* Tue Oct 1 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.0-2
|
|
|
d00b508 |
- Fix boot with Linux 3.11 kernel
|
|
|
d00b508 |
|
|
|
0ccec6d |
* Thu Aug 1 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.0-1
|
|
|
0ccec6d |
- Update to 0.5.0 release
|
|
|
0ccec6d |
|
|
|
9a41206 |
* Tue Jul 9 2013 Daniel P. Berrange <berrange@redhat.com> - 0.2.1-1
|
|
|
9a41206 |
- Update to 0.2.1 release
|
|
|
9a41206 |
|
|
|
c2d0cd2 |
* Tue May 7 2013 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1
|
|
|
c2d0cd2 |
- Update to 0.2.0 release
|
|
|
c2d0cd2 |
|
|
|
f339b33 |
* Tue Mar 5 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.2-1
|
|
|
f339b33 |
- Update to 0.1.2 release
|
|
|
f339b33 |
|
|
|
639e0c0 |
* Fri Feb 22 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.1-4
|
|
|
639e0c0 |
- Add dep on pod2man
|
|
|
639e0c0 |
|
|
|
286ae55 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
|
|
|
286ae55 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
286ae55 |
|
|
|
9d9bc6c |
* Thu Jan 17 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.1-2
|
|
|
9d9bc6c |
- Conditionalize dep on libvirt-daemon-qemu
|
|
|
9d9bc6c |
|
|
|
d119dbf |
* Mon Dec 10 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.1-1
|
|
|
d119dbf |
- Update to 0.1.1 release
|
|
|
d119dbf |
|
|
|
37907ac |
* Mon Aug 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-1
|
|
|
37907ac |
- Update to 0.1.0 release
|
|
|
37907ac |
|
|
|
0eac095 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-3
|
|
|
0eac095 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0eac095 |
|
|
|
b341da2 |
* Fri Apr 27 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-2
|
|
|
b341da2 |
- Rebuild for libvirt-gobject update
|
|
|
b341da2 |
|
|
|
ce3b588 |
* Fri Apr 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
|
|
|
ce3b588 |
- Update to 0.0.3 release
|
|
|
ce3b588 |
|
|
|
67ca161 |
* Thu Jan 12 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
|
|
|
67ca161 |
- Update to 0.0.2 release
|
|
|
67ca161 |
|
|
|
6b8bb0b |
* Wed Jan 11 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
|
|
|
6b8bb0b |
- Initial package
|
|
|
6b8bb0b |
|