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