Update to 2.0.0.
- Obsolete the -extra subpackage. - Move the completion file to %{_datadir}.
This commit is contained in:
parent
610a5c6334
commit
d12c6a9d47
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ lxc-0.7.2.tar.gz
|
|||||||
/lxc-1.1.3.tar.gz
|
/lxc-1.1.3.tar.gz
|
||||||
/lxc-1.1.4.tar.gz
|
/lxc-1.1.4.tar.gz
|
||||||
/lxc-1.1.5.tar.gz
|
/lxc-1.1.5.tar.gz
|
||||||
|
/lxc-2.0.0.tar.gz
|
||||||
|
12
lxc-2.0.0-remove-werror.patch
Normal file
12
lxc-2.0.0-remove-werror.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up lxc-2.0.0/configure.ac.orig lxc-2.0.0/configure.ac
|
||||||
|
--- lxc-2.0.0/configure.ac.orig 2016-04-06 19:59:42.000000000 +0200
|
||||||
|
+++ lxc-2.0.0/configure.ac 2016-04-21 07:46:29.936382133 +0200
|
||||||
|
@@ -626,7 +626,7 @@ AC_PROG_SED
|
||||||
|
LXC_CHECK_TLS
|
||||||
|
|
||||||
|
if test "x$GCC" = "xyes"; then
|
||||||
|
- CFLAGS="$CFLAGS -Wall -Werror"
|
||||||
|
+ CFLAGS="$CFLAGS -Wall"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Files requiring some variable expansion
|
71
lxc.spec
71
lxc.spec
@ -34,8 +34,8 @@
|
|||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
|
|
||||||
Name: lxc
|
Name: lxc
|
||||||
Version: 1.1.5
|
Version: 2.0.0
|
||||||
Release: %{?prerel:0.}2%{?prerel:.%{prerel}}%{?dist}
|
Release: %{?prerel:0.}1%{?prerel:.%{prerel}}%{?dist}
|
||||||
Summary: Linux Resource Containers
|
Summary: Linux Resource Containers
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: LGPLv2+ and GPLv2
|
License: LGPLv2+ and GPLv2
|
||||||
@ -47,6 +47,7 @@ Source0: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
|
|||||||
%endif
|
%endif
|
||||||
Patch0: lxc-1.1.0-fix-init.patch
|
Patch0: lxc-1.1.0-fix-init.patch
|
||||||
Patch1: lxc-1.1.4-fix-bootorder.patch
|
Patch1: lxc-1.1.4-fix-bootorder.patch
|
||||||
|
Patch2: lxc-2.0.0-remove-werror.patch
|
||||||
BuildRequires: docbook-utils
|
BuildRequires: docbook-utils
|
||||||
BuildRequires: docbook2X
|
BuildRequires: docbook2X
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -64,8 +65,13 @@ BuildRequires: python3-devel >= 3.2
|
|||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%endif # with_systemd
|
%endif # with_systemd
|
||||||
|
# lxc-extra subpackage not needed anymore, lxc-ls has been rewriten in
|
||||||
|
# C and does not depend on the Python3 binding anymore
|
||||||
|
Provides: lxc-extra = %{version}-%{release}
|
||||||
|
Obsoletes: lxc-extra < 1.1.5-3
|
||||||
#if 0%{?prerel:1}
|
#if 0%{?prerel:1}
|
||||||
#BuildRequires: autoconf automake
|
# we patch configure.ac
|
||||||
|
BuildRequires: autoconf automake
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
@ -110,18 +116,6 @@ overhead of full virtualization.
|
|||||||
The python3-%{name} package contains the Python3 binding for %{name}.
|
The python3-%{name} package contains the Python3 binding for %{name}.
|
||||||
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}_lxc\\..*\\.so
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}_lxc\\..*\\.so
|
||||||
|
|
||||||
|
|
||||||
%package extra
|
|
||||||
Summary: Extra tools for %{name}
|
|
||||||
Group: Applications/System
|
|
||||||
Requires: python3-%{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description extra
|
|
||||||
Linux Resource Containers provide process and resource isolation without the
|
|
||||||
overhead of full virtualization.
|
|
||||||
|
|
||||||
This package contains tools needing the Python3 bindings.
|
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
|
|
||||||
@ -188,12 +182,14 @@ This package contains documentation for %{name}.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
# see rhbz#1263612
|
# see rhbz#1263612
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
# -Wall with -Werror doesn't work well
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?prerel:1}
|
#if 0%{?prerel:1}
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%endif
|
#endif
|
||||||
%configure --with-distro=fedora \
|
%configure --with-distro=fedora \
|
||||||
--enable-doc \
|
--enable-doc \
|
||||||
--enable-api-docs \
|
--enable-api-docs \
|
||||||
@ -235,6 +231,13 @@ cp -a doc/api/html/* %{buildroot}%{_pkgdocdir}/api/
|
|||||||
# cache dir
|
# cache dir
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}
|
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}
|
||||||
|
|
||||||
|
# on Fedora and EPEL>=7, move the completion file to %%{_datadir}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
|
install -d %{buildroot}%{_datadir}/bash-completion/completions/
|
||||||
|
mv %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} \
|
||||||
|
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -245,6 +248,7 @@ make check
|
|||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
%systemd_post %{name}-net.service
|
%systemd_post %{name}-net.service
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
|
%systemd_post %{name}@.service
|
||||||
%else
|
%else
|
||||||
/sbin/chkconfig --add %{name}-net
|
/sbin/chkconfig --add %{name}-net
|
||||||
/sbin/chkconfig --add %{name}
|
/sbin/chkconfig --add %{name}
|
||||||
@ -255,6 +259,7 @@ make check
|
|||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
%systemd_preun %{name}-net.service
|
%systemd_preun %{name}-net.service
|
||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
|
%systemd_preun %{name}@.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/sbin/service %{name}-net stop > /dev/null 2>&1
|
/sbin/service %{name}-net stop > /dev/null 2>&1
|
||||||
@ -270,6 +275,7 @@ fi
|
|||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
%systemd_postun %{name}-net.service
|
%systemd_postun %{name}-net.service
|
||||||
%systemd_postun %{name}.service
|
%systemd_postun %{name}.service
|
||||||
|
%systemd_postun %{name}@.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
/sbin/service %{name}-net condrestart > /dev/null 2>&1 || :
|
/sbin/service %{name}-net condrestart > /dev/null 2>&1 || :
|
||||||
@ -289,16 +295,14 @@ fi
|
|||||||
%exclude %{_mandir}/man1/%{name}-user-nic*
|
%exclude %{_mandir}/man1/%{name}-user-nic*
|
||||||
%exclude %{_mandir}/*/man1/%{name}-user-nic*
|
%exclude %{_mandir}/*/man1/%{name}-user-nic*
|
||||||
%{_datadir}/%{name}/%{name}.functions
|
%{_datadir}/%{name}/%{name}.functions
|
||||||
%if 0%{?with_python3}
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
%exclude %{_bindir}/%{name}-ls
|
%dir %{_datadir}/bash-completion
|
||||||
%exclude %{_bindir}/%{name}-start-ephemeral
|
%dir %{_datadir}/bash-completion/completions
|
||||||
%exclude %{_mandir}/man1/%{name}-ls*
|
%{_datadir}/bash-completion/completions/%{name}
|
||||||
%exclude %{_mandir}/man1/%{name}-start-ephemeral*
|
%else
|
||||||
%exclude %{_mandir}/*/man1/%{name}-ls*
|
%dir %{_sysconfdir}/bash_completion.d
|
||||||
%exclude %{_mandir}/*/man1/%{name}-start-ephemeral*
|
|
||||||
%endif
|
|
||||||
%dir %{_sysconfdir}/bash_completion.d/
|
|
||||||
%{_sysconfdir}/bash_completion.d/%{name}
|
%{_sysconfdir}/bash_completion.d/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
@ -336,6 +340,7 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
%{_unitdir}/%{name}@.service
|
||||||
%{_unitdir}/%{name}-net.service
|
%{_unitdir}/%{name}-net.service
|
||||||
%else
|
%else
|
||||||
%{_sysconfdir}/rc.d/init.d/%{name}
|
%{_sysconfdir}/rc.d/init.d/%{name}
|
||||||
@ -347,15 +352,6 @@ fi
|
|||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
|
|
||||||
%files extra
|
|
||||||
%{_bindir}/%{name}-ls
|
|
||||||
%{_bindir}/%{name}-start-ephemeral
|
|
||||||
%{_mandir}/man1/%{name}-ls*
|
|
||||||
%{_mandir}/man1/%{name}-start-ephemeral*
|
|
||||||
%{_mandir}/*/man1/%{name}-ls*
|
|
||||||
%{_mandir}/*/man1/%{name}-start-ephemeral*
|
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
|
|
||||||
@ -386,6 +382,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 20 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.0-1
|
||||||
|
- Update to 2.0.0.
|
||||||
|
- Obsolete the -extra subpackage.
|
||||||
|
- Move the completion file to %%{_datadir}.
|
||||||
|
|
||||||
* Tue Mar 1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.5-2
|
* Tue Mar 1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.5-2
|
||||||
- Power64 and s390(x) now have libseccomp support
|
- Power64 and s390(x) now have libseccomp support
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user