]> git.pld-linux.org Git - packages/lxc.git/blame - lxc.spec
- FHS fix needed
[packages/lxc.git] / lxc.spec
CommitLineData
2e39dff9 1# TODO: FHS (/var/lxc -> /var/lib/lxc)
0886a606
AM
2Summary: Linux Container Tools
3Name: lxc
4Version: 0.4.0
5Release: 1
6License: GPL
7Group: Base
8Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz
9# Source0-md5: 327f0e700858ab5b916aa36517680256
10URL: http://sourceforge.net/projects/lxc
e2e45f68
AM
11BuildRequires: autoconf
12BuildRequires: automake
13BuildRequires: libtool
0886a606
AM
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17Tools to create and manage containers. It contains a full featured
18container with the isolation / virtualization of the pids, the ipc,
19the utsname, the mount points, /proc, /sys, the network and it takes
20into account the control groups. It is very light, flexible, and
21provides a set of tools around the container like the monitoring with
22asynchronous events notification, or the freeze of the container. This
23package is useful to create Virtual Private Server, or to run isolated
24applications like bash or sshd.
25
26%package devel
27Summary: Header files and develpment documentation for lxc
28Group: Development/Libraries
29Requires: %{name} = %{epoch}:%{version}-%{release}
30
31%description devel
32lxc development files.
33
34%package static
35Summary: Static lxc library
36Group: Development/Libraries
37Requires: %{name}-devel = %{epoch}:%{version}-%{release}
38
39%description static
40Static lxc library.
41
42%prep
43%setup -q
e2e45f68 44sed -i -e 's#^lxcpath=.*#lxcpath=/var/lxc#g' src/lxc/Makefile.am
0886a606
AM
45
46%build
e2e45f68
AM
47%{__libtoolize}
48%{__aclocal}
49%{__autoconf}
50%{__automake}
0886a606
AM
51%configure
52
53%{__make}
54
55%install
56rm -rf $RPM_BUILD_ROOT
57
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
60
e2e45f68
AM
61install -d $RPM_BUILD_ROOT/var/lxc
62
0886a606
AM
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%post -p /sbin/ldconfig
67%postun -p /sbin/ldconfig
68
69%files
70%defattr(644,root,root,755)
71%doc AUTHORS ChangeLog README etc/*.conf etc/*-config
72%attr(755,root,root) %{_bindir}/*
73%attr(755,root,root) %{_libdir}/liblxc-*.so
74%dir %{_sysconfdir}/lxc
e2e45f68 75%dir /var/lxc
0886a606
AM
76
77%files devel
78%defattr(644,root,root,755)
79%{_includedir}/lxc
80%attr(755,root,root) %{_libdir}/liblxc.so
81%{_libdir}/lib*.la
82
83%files static
84%defattr(644,root,root,755)
85%{_libdir}/lib*.a
This page took 0.060978 seconds and 4 git commands to generate.