]> git.pld-linux.org Git - packages/lxc.git/blame - lxc.spec
- up to 0.7.4.2
[packages/lxc.git] / lxc.spec
CommitLineData
0886a606
AM
1Summary: Linux Container Tools
2Name: lxc
3c74cffb 3Version: 0.7.4.2
0886a606
AM
4Release: 1
5License: GPL
6Group: Base
10f7ffdb 7Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
3c74cffb 8# Source0-md5: 36fcb0f6a39d2f55130421f342f24ef3
670230e8 9URL: http://lxc.sourceforge.net
e2e45f68
AM
10BuildRequires: autoconf
11BuildRequires: automake
e5afa52e 12BuildRequires: docbook-dtd30-sgml
13BuildRequires: docbook-utils
4e32c712 14BuildRequires: libcap-devel
e2e45f68 15BuildRequires: libtool
0886a606
AM
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
e5afa52e 18%define configpath /var/lib/lxc
19
0886a606
AM
20%description
21Tools to create and manage containers. It contains a full featured
22container with the isolation / virtualization of the pids, the ipc,
23the utsname, the mount points, /proc, /sys, the network and it takes
24into account the control groups. It is very light, flexible, and
25provides a set of tools around the container like the monitoring with
26asynchronous events notification, or the freeze of the container. This
27package is useful to create Virtual Private Server, or to run isolated
28applications like bash or sshd.
29
30%package devel
31Summary: Header files and develpment documentation for lxc
32Group: Development/Libraries
33Requires: %{name} = %{epoch}:%{version}-%{release}
34
35%description devel
36lxc development files.
37
0886a606
AM
38%prep
39%setup -q
40
41%build
e2e45f68 42%{__libtoolize}
1476741b 43%{__aclocal} -I config
e2e45f68
AM
44%{__autoconf}
45%{__automake}
e5afa52e 46%configure \
47 --with-config-path=%{configpath}
0886a606
AM
48
49%{__make}
e5afa52e 50%{__make} -C doc
0886a606
AM
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} install \
e5afa52e 56 DESTDIR=$RPM_BUILD_ROOT \
57 pcdatadir=%{_pkgconfigdir}
58%{__make} -C doc install \
0886a606 59 DESTDIR=$RPM_BUILD_ROOT
e5afa52e 60rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
0886a606 61
e5afa52e 62install -d $RPM_BUILD_ROOT%{configpath}
e2e45f68 63
0886a606
AM
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post -p /sbin/ldconfig
68%postun -p /sbin/ldconfig
69
70%files
71%defattr(644,root,root,755)
70f9d22b 72%doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf
0886a606 73%attr(755,root,root) %{_bindir}/*
e5afa52e 74%attr(755,root,root) %{_libdir}/liblxc.so.*.*.*
75%attr(755,root,root) %ghost %{_libdir}/liblxc.so.0
70f9d22b 76%{_libdir}/lxc/rootfs/README
e5afa52e 77%{_mandir}/man?/lxc*
78%dir %{configpath}
70f9d22b 79%dir %{_libdir}/lxc
80%dir %{_libdir}/lxc/templates
81%dir %{_libdir}/lxc/rootfs
82%attr(755,root,root) %{_libdir}/lxc/lxc-init
83%attr(755,root,root) %{_libdir}/lxc/templates/lxc-*
0886a606
AM
84
85%files devel
86%defattr(644,root,root,755)
87%{_includedir}/lxc
88%attr(755,root,root) %{_libdir}/liblxc.so
e5afa52e 89%{_pkgconfigdir}/lxc.pc
This page took 0.07915 seconds and 4 git commands to generate.