X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lxc.spec.in;h=7fcd811ff7e413f0f94453dc516813d86195c950;hb=d85813cd63369575c36fc9b728b73026d4c09e1f;hp=a3cb6af5d34a3c568b28142f6f35d67f06e79172;hpb=1f3fc0d73a88b01bb596b0ea812dc9a5b1f7e5e6;p=mirror_lxc.git diff --git a/lxc.spec.in b/lxc.spec.in index a3cb6af5d..7fcd811ff 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -20,9 +20,6 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -%global with_python %{?_with_python: 1} %{?!_with_python: 0} -%global with_lua %{?_with_lua: 1} %{?!_with_lua: 0} - # Set with_systemd on distros that use it, so we can install the service # file, otherwise the sysvinit script will be installed %if 0%{?fedora} >= 14 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210 @@ -32,9 +29,9 @@ # BuildRequires systemd-units on fedora and rhel %if 0%{?fedora} >= 14 || 0%{?rhel} >= 7 BuildRequires: systemd-units +%endif # # BuildRequires systemd on openSUSE and SUSE -%endif %if 0%{?suse_version} >= 1210 BuildRequires: systemd %endif @@ -94,9 +91,11 @@ BuildRequires: libseccomp-devel %endif %endif -%if %{with_python} -Requires: python3 -BuildRequires: python3-devel +# +# Additional package for Tizen +# +%if %{defined tizen_version} +BuildRequires: pkgconfig(dlog) %endif %description @@ -123,26 +122,10 @@ Requires: %{name} = %{version}-%{release}, pkgconfig The %{name}-devel package contains header files and library needed for development of the Linux containers. -%if %{with_lua} -%package lua -Summary: Lua bindings for %{name} -Group: System Environment/Libraries -Requires: lua-filesystem lua-alt-getopt -BuildRequires: lua-devel -%description lua -The %{name}-lua package contains %{name} bindings for lua. -%endif - %prep %setup -q -n %{name}-%{version}%{?beta_dot} %build PATH=$PATH:/usr/sbin:/sbin %configure $args \ -%if %{with_lua} - --enable-lua \ -%endif -%if %{with_python} - --enable-python \ -%endif %if "x%{_unitdir}" != "x" --with-systemdsystemunitdir=%{_unitdir} \ %endif @@ -169,7 +152,12 @@ fi %post # This test should trigger a network configure on a new install. -if [ ! -f %{_sysconfdir}/sysconfig/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' %{_sysconfdir}/sysconfig/lxc-net +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... while [ true ] @@ -181,10 +169,10 @@ then fi done - cat > %{_sysconfdir}/sysconfig/lxc-net < @LXC_DISTRO_SYSCONF@/lxc-net <