]> git.pld-linux.org Git - packages/lxc.git/blame - lxc.spec
lxc-clone, lxc-create, lxc-destroy, lxc-shutdown use which
[packages/lxc.git] / lxc.spec
CommitLineData
67c70229
JB
1#
2# Conditional build:
3%bcond_without seccomp # SecComp syscall filter
ccd4948a 4%bcond_without apparmor # apparmor
67c70229
JB
5%bcond_without lua # Lua binding
6%bcond_without python # Python binding
21c5c666 7
0886a606 8Summary: Linux Container Tools
67c70229 9Summary(pl.UTF-8): Narzędzia do kontenerów linuksowych (LXC)
0886a606 10Name: lxc
dc9a5b3b 11Version: 0.9.0
f5933d47 12Release: 5
c34ce688 13License: LGPL v2.1+
67c70229 14Group: Applications/System
a859d7b5
AS
15Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
16# Source0-md5: 8552a4479090616f4bc04d8473765fc9
adc39309 17Source1: %{name}-pld.in.sh
33aee790 18Patch0: %{name}-devpts.patch
67c70229 19Patch1: %{name}-pld.patch
92ccd5f8 20Patch2: am-1.14.patch
121019da 21Patch3: checkconfig-module.patch
bf6a07ce 22Patch4: checkconfig-vserver-config.patch
dd704a47 23Patch5: fedora-template.patch
67c70229
JB
24URL: http://lxc.sourceforge.net/
25BuildRequires: autoconf >= 2.50
26BuildRequires: automake
e5afa52e 27BuildRequires: docbook-dtd30-sgml
28BuildRequires: docbook-utils
21c5c666 29BuildRequires: docbook2X
ccd4948a 30%{?with_apparmor:BuildRequires: libapparmor-devel}
4e32c712 31BuildRequires: libcap-devel
67c70229
JB
32%{?with_seccomp:BuildRequires: libseccomp-devel}
33%{?with_lua:BuildRequires: lua51-devel >= 5.1}
34BuildRequires: pkgconfig
35%{?with_python:BuildRequires: python3-devel >= 3.2}
36BuildRequires: rpmbuild(macros) >= 1.612
c34ce688 37BuildRequires: sed >= 4.0
7e514b06 38Requires: rc-scripts >= 0.4.6
adc39309 39Requires: which
21c5c666 40Suggests: net-tools
0886a606
AM
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
e5afa52e 43%define configpath /var/lib/lxc
44
0886a606
AM
45%description
46Tools to create and manage containers. It contains a full featured
47container with the isolation / virtualization of the pids, the ipc,
48the utsname, the mount points, /proc, /sys, the network and it takes
49into account the control groups. It is very light, flexible, and
50provides a set of tools around the container like the monitoring with
51asynchronous events notification, or the freeze of the container. This
52package is useful to create Virtual Private Server, or to run isolated
53applications like bash or sshd.
54
67c70229
JB
55%description -l pl.UTF-8
56Narzędzia do tworzenia i zarządzania kontenerami. System ten obejmuje
57w pełni funkcjonalne kontenery z ilozacją/wirtualizacją pidów, ipc,
58utsname, punktów montowania, /proc, /sys, sieci oraz uwzględniające
59grupy kontrolne. Jest bardzo lekki, elastyczny i udostępnia narzędzia
60do czynności związanych z kontenerami, takich jak monitorowanie z
61asynchronicznym powiadamianiem o zdarzeniach czy zamrażanie. Ten
62pakiet jest przydatny do tworzenia wirtualnych serwerów prywatnych
63oraz uruchamiania izolowanych aplikacji, takich jak bash czy sshd.
64
0886a606 65%package devel
67c70229
JB
66Summary: Header files for lxc library
67Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lxc
0886a606 68Group: Development/Libraries
67c70229 69Requires: %{name} = %{version}-%{release}
0886a606
AM
70
71%description devel
67c70229
JB
72Header files for lxc library.
73
74%description devel -l pl.UTF-8
75Pliki nagłówkowe biblioteki lxc.
76
77%package -n lua-lxc
78Summary: Lua binding for LXC
79Summary(pl.UTF-8): Wiązanie Lua do LXC
80Group: Libraries
81Requires: %{name} = %{version}-%{release}
82Requires: lua51-libs >= 5.1
83
84%description -n lua-lxc
85Lua binding for LXC.
86
87%description -n lua-lxc -l pl.UTF-8
88Wiązanie Lua do LXC.
89
90%package -n python3-lxc
91Summary: Python (3.x) binding for LXC
92Summary(pl.UTF-8): Wiązanie Pythona (3.x) do LXC
93Group: Libraries
94Requires: %{name} = %{version}-%{release}
95Requires: python3-libs >= 3.2
96
97%description -n python3-lxc
98Python (3.x) binding for LXC.
99
100%description -n python3-lxc -l pl.UTF-8
101Wiązanie Pythona (3.x) do LXC.
0886a606 102
0886a606 103%prep
67c70229 104%setup -q
33aee790 105%patch0 -p1
67c70229 106%patch1 -p1
92ccd5f8 107%patch2 -p1
121019da 108%patch3 -p1
bf6a07ce 109%patch4 -p1
dd704a47 110%patch5 -p1
0886a606 111
8a96554a
ER
112cp -p %{SOURCE1} templates/lxc-pld.in
113
0886a606 114%build
67c70229
JB
115%{__aclocal} -I config
116%{__autoconf}
117%{__autoheader}
118%{__automake}
e5afa52e 119%configure \
67c70229
JB
120 db2xman=docbook2X2man \
121 --disable-rpath \
122 --enable-doc \
ccd4948a
ER
123 %{__enable_disable apparmor} \
124 %{__enable_disable lua} \
125 %{__enable_disable python} \
126 %{__enable_disable seccomp} \
67c70229
JB
127 --with-config-path=%{configpath} \
128 --with-distro=pld
0886a606
AM
129
130%{__make}
e5afa52e 131%{__make} -C doc
0886a606
AM
132
133%install
134rm -rf $RPM_BUILD_ROOT
f10dfb13 135install -d $RPM_BUILD_ROOT{%{configpath},/var/{cache,log}/lxc}
0886a606 136%{__make} install \
e5afa52e 137 DESTDIR=$RPM_BUILD_ROOT \
138 pcdatadir=%{_pkgconfigdir}
33aee790 139
e5afa52e 140%{__make} -C doc install \
0886a606 141 DESTDIR=$RPM_BUILD_ROOT
33aee790 142
21c5c666 143%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
0886a606 144
67c70229
JB
145%if %{with python}
146%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
147%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
148%endif
c34ce688
JB
149%if %{with lua}
150%{__sed} -i -e '1s,#!/usr/bin/env lua,#!/usr/bin/lua51,' $RPM_BUILD_ROOT%{_bindir}/lxc-top
151%endif
67c70229 152
0886a606
AM
153%clean
154rm -rf $RPM_BUILD_ROOT
155
67c70229
JB
156%post -p /sbin/ldconfig
157%postun -p /sbin/ldconfig
0886a606
AM
158
159%files
160%defattr(644,root,root,755)
dc9a5b3b 161%doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf
c34ce688
JB
162%attr(755,root,root) %{_bindir}/lxc-attach
163%attr(755,root,root) %{_bindir}/lxc-cgroup
164%attr(755,root,root) %{_bindir}/lxc-checkconfig
165%attr(755,root,root) %{_bindir}/lxc-checkpoint
166%attr(755,root,root) %{_bindir}/lxc-clone
167%attr(755,root,root) %{_bindir}/lxc-console
168%attr(755,root,root) %{_bindir}/lxc-create
169%attr(755,root,root) %{_bindir}/lxc-destroy
170%attr(755,root,root) %{_bindir}/lxc-execute
171%attr(755,root,root) %{_bindir}/lxc-freeze
172%attr(755,root,root) %{_bindir}/lxc-info
173%attr(755,root,root) %{_bindir}/lxc-kill
174%attr(755,root,root) %{_bindir}/lxc-monitor
175%attr(755,root,root) %{_bindir}/lxc-netstat
176%attr(755,root,root) %{_bindir}/lxc-ps
177%attr(755,root,root) %{_bindir}/lxc-restart
178%attr(755,root,root) %{_bindir}/lxc-shutdown
179%attr(755,root,root) %{_bindir}/lxc-start
180%attr(755,root,root) %{_bindir}/lxc-stop
181%attr(755,root,root) %{_bindir}/lxc-unfreeze
182%attr(755,root,root) %{_bindir}/lxc-unshare
183%attr(755,root,root) %{_bindir}/lxc-version
184%attr(755,root,root) %{_bindir}/lxc-wait
e5afa52e 185%attr(755,root,root) %{_libdir}/liblxc.so.*.*.*
186%attr(755,root,root) %ghost %{_libdir}/liblxc.so.0
70f9d22b 187%dir %{_libdir}/lxc
70f9d22b 188%dir %{_libdir}/lxc/rootfs
67c70229 189%{_libdir}/lxc/rootfs/README
70f9d22b 190%attr(755,root,root) %{_libdir}/lxc/lxc-init
dc9a5b3b 191%dir %{_sysconfdir}/lxc
67c70229 192%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lxc/default.conf
f5933d47
ER
193%dir %{_datadir}/lxc
194%{_datadir}/%{name}/lxc.functions
195%dir %{_datadir}/%{name}/hooks
196%dir %{_datadir}/%{name}/templates
197%attr(755,root,root) %{_datadir}/%{name}/hooks/mount*
198%attr(755,root,root) %{_datadir}/%{name}/templates/lxc-*
c34ce688
JB
199%{_mandir}/man1/lxc-attach.1*
200%{_mandir}/man1/lxc-cgroup.1*
201%{_mandir}/man1/lxc-checkconfig.1*
202%{_mandir}/man1/lxc-checkpoint.1*
203%{_mandir}/man1/lxc-clone.1*
204%{_mandir}/man1/lxc-console.1*
205%{_mandir}/man1/lxc-create.1*
206%{_mandir}/man1/lxc-destroy.1*
207%{_mandir}/man1/lxc-execute.1*
208%{_mandir}/man1/lxc-freeze.1*
209%{_mandir}/man1/lxc-info.1*
210%{_mandir}/man1/lxc-kill.1*
211%{_mandir}/man1/lxc-monitor.1*
212%{_mandir}/man1/lxc-netstat.1*
213%{_mandir}/man1/lxc-ps.1*
214%{_mandir}/man1/lxc-restart.1*
215%{_mandir}/man1/lxc-shutdown.1*
216%{_mandir}/man1/lxc-start.1*
217%{_mandir}/man1/lxc-stop.1*
218%{_mandir}/man1/lxc-unfreeze.1*
219%{_mandir}/man1/lxc-unshare.1*
220%{_mandir}/man1/lxc-version.1*
221%{_mandir}/man1/lxc-wait.1*
67c70229
JB
222%{_mandir}/man5/lxc.conf.5*
223%{_mandir}/man7/lxc.7*
c34ce688
JB
224%if %{without python}
225# legacy version
226%attr(755,root,root) %{_bindir}/lxc-ls
227%{_mandir}/man1/lxc-ls.1*
228%endif
0886a606 229
ff8ce371 230%dir %{configpath}
f10dfb13
ER
231%dir %attr(750,root,root) /var/log/lxc
232%dir %attr(750,root,root) /var/cache/lxc
ff8ce371 233
0886a606
AM
234%files devel
235%defattr(644,root,root,755)
0886a606 236%attr(755,root,root) %{_libdir}/liblxc.so
67c70229 237%{_includedir}/lxc
e5afa52e 238%{_pkgconfigdir}/lxc.pc
67c70229
JB
239
240%if %{with lua}
241%files -n lua-lxc
242%defattr(644,root,root,755)
c34ce688 243%attr(755,root,root) %{_bindir}/lxc-top
67c70229
JB
244%dir %{_libdir}/lua/5.1/lxc
245%attr(755,root,root) %{_libdir}/lua/5.1/lxc/core.so
246%{_datadir}/lua/5.1/lxc.lua
c34ce688 247%{_mandir}/man1/lxc-top.1*
67c70229
JB
248%endif
249
250%if %{with python}
251%files -n python3-lxc
252%defattr(644,root,root,755)
c34ce688
JB
253%attr(755,root,root) %{_bindir}/lxc-device
254%attr(755,root,root) %{_bindir}/lxc-ls
255%attr(755,root,root) %{_bindir}/lxc-start-ephemeral
67c70229
JB
256%{py3_sitedir}/lxc
257%attr(755,root,root) %{py3_sitedir}/_lxc.cpython-*.so
258%{py3_sitedir}/_lxc-0.1-py*.egg-info
c34ce688
JB
259%{_mandir}/man1/lxc-device.1*
260%{_mandir}/man1/lxc-ls.1*
261%{_mandir}/man1/lxc-start-ephemeral.1*
67c70229 262%endif
This page took 0.107118 seconds and 4 git commands to generate.