Search
SailfishOS Open Build Service
>
Projects
>
home:zhxt
:
testing
>
lxc
> lxc.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lxc.spec of Package lxc
# # spec file for package lxc # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: lxc Version: 1.1.5 Release: 0 Url: http://linuxcontainers.org/ Summary: Userspace tools for the Linux kernel containers License: LGPL-2.1+ Group: System/Management Source: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz Source1: README.SUSE Source2: lxc-createconfig.in #BuildRoot: %{_tmppath}/%{name}-%{version}-build #BuildRequires: docbook-utils #BuildRequires: docbook2x #BuildRequires: libapparmor-devel BuildRequires: libcap-devel %ifarch %ix86 x86_64 BuildRequires: libseccomp-devel %endif BuildRequires: libxslt #BuildRequires: linux-glibc-devel BuildRequires: lsb-release BuildRequires: lua-devel BuildRequires: pkgconfig BuildRequires: python3-devel %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} #%if 0%{?suse_version} >= 1210 BuildRequires: systemd #%endif Requires: /usr/sbin/setcap Requires: lua Requires: rsync #%{?systemd_requires} # needed to create openSUSE containers using template #Recommends: build %description It provides commands to create and manage containers. It contains a full featured container with the isolation/virtualization of the pids, the ipc, the utsname, the mount points, /proc, /sys, the network and it takes into account the control groups. It is very light, flexible, and provides a set of tools around the container like the monitoring with asynchronous events notification, or the freeze of the container. This package is useful to create Virtual Private Server, or to run isolated applications like bash or sshd. %package devel Summary: Development library for lxc License: LGPL-2.1 Group: Development/Libraries/C and C++ Requires: %name = %version %description devel Lxc header files and library needed for development of containers. %prep %setup -q %build chmod 755 configure %configure --disable-examples --enable-python --with-init-script=systemd --disable-doc %__make %{?_smp_mflags} DESTDIR=%{buildroot} %__cp %{SOURCE1} . %__rm -rf .doc %__mkdir_p .doc/examples %__cp doc/examples/*.conf .doc/examples %install ls -lR cat doc/Makefile cat doc/rootfs/Makefile #makeinstall lualibdir=%{buildroot}%{_libdir}/lua/5.1 luasharedir=%{buildroot}%{_datadir}/lua/5.1 #make install lualibdir=%{buildroot}%{_libdir}/lua/5.1 luasharedir=%{buildroot}%{_datadir}/lua/5.1 DESTDIR=%{buildroot} #make install lualibdir=%{buildroot}%{_libdir}/lua luasharedir=%{buildroot}%{_datadir}/lua DESTDIR=%{buildroot} make install lualibdir=%{_libdir}/lua luasharedir=%{_datadir}/lua DESTDIR=%{buildroot} install -d -m 755 %{buildroot}/var/lib/lxc find %buildroot -type f -name '*.la' -delete chmod u-s %{buildroot}/usr/libexec/lxc/lxc-user-nic ./config.status --file=%{buildroot}%{_bindir}/lxc-createconfig:%{S:2} chmod a+x %{buildroot}%{_bindir}/lxc-createconfig ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%name %clean %__rm -rf %buildroot %pre #%service_add_pre lxc.service %post /sbin/ldconfig #%service_add_post lxc.service %preun #%service_del_preun lxc.service %postun /sbin/ldconfig #%service_del_postun lxc.service %files %defattr(-,root,root) %doc AUTHORS MAINTAINERS COPYING README doc/FAQ.txt %doc README.SUSE %doc .doc/examples %dir %{_sysconfdir}/%{name}/ %config %{_sysconfdir}/%{name}/default.conf %{_libdir}/lib%{name}.so.* %{_libexecdir}/%name %{_libdir}/%name %dir %{_libdir}/lua/%name/ %{_libdir}/lua/%name/core.so %{_datadir}/%name %{_datadir}/lua/%name.lua %dir /var/lib/lxc %{_bindir}/%{name}-* %{_sbindir}/init.lxc %{_sbindir}/rclxc #%{_mandir}/man[^3]/* %{_sysconfdir}/default/%{name} /%{_lib}/systemd/system/%{name}*.service #%{python3_sitearch}/%{name}/ #%{python3_sitearch}/_%{name}* %{_libdir}/python* #%dir %{_sysconfdir}/apparmor.d #%dir %{_sysconfdir}/apparmor.d/abstractions #%dir %{_sysconfdir}/apparmor.d/abstractions/lxc #%config %{_sysconfdir}/apparmor.d/abstractions/lxc/container-base #%config %{_sysconfdir}/apparmor.d/abstractions/lxc/start-container #%config %{_sysconfdir}/apparmor.d/lxc-containers #%dir %{_sysconfdir}/apparmor.d/lxc #%config %{_sysconfdir}/apparmor.d/lxc/lxc-default #%config %{_sysconfdir}/apparmor.d/lxc/lxc-default-with-mounting #%config %{_sysconfdir}/apparmor.d/lxc/lxc-default-with-nesting #%config %{_sysconfdir}/apparmor.d/usr.bin.lxc-start %config %{_sysconfdir}/bash_completion.d/%{name} %files devel %defattr(-,root,root) %{_includedir}/%name %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog