]> git.proxmox.com Git - mirror_lxc.git/blobdiff - lxc.spec.in
lxc.pc.in: add libs.private for static linking
[mirror_lxc.git] / lxc.spec.in
index 61cb1456f69f5203011989f4cfbd2411e02330a9..ec6321c333aa8d50f3d66dbcc2e8760561926f45 100644 (file)
@@ -125,6 +125,10 @@ development of the Linux containers.
 %prep
 %setup -q -n %{name}-%{version}%{?beta_dot}
 %build
+
+#Dont use pkgconfig to get bash completion dir and use backwards compatible location.
+export bashcompdir=%{_sysconfdir}/bash_completion.d
+
 PATH=$PATH:/usr/sbin:/sbin %configure $args \
 %if "x%{_unitdir}" != "x"
   --with-systemdsystemunitdir=%{_unitdir} \
@@ -152,6 +156,11 @@ fi
 
 %post
 # This test should trigger a network configure on a new install.
+if [ ! -d @LXC_DISTRO_SYSCONF@ ]
+then
+       mkdir -p @LXC_DISTRO_SYSCONF@
+fi
+
 if [ ! -f @LXC_DISTRO_SYSCONF@/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' @LXC_DISTRO_SYSCONF@/lxc-net
 then
        # Grab a random 10net subnet.  Need to add test logic...
@@ -251,6 +260,7 @@ fi
 %defattr(-,root,root)
 %{_sbindir}/*
 %{_libdir}/*.so.*
+%{_libdir}/*.a
 %{_libdir}/%{name}
 %{_localstatedir}/*
 %{_libexecdir}/%{name}/hooks/unmount-namespace