%define name lxc-userspace
-%define version 1.0
-%define taglevel 10
+%define version 2.0
+%define taglevel 0
%define percent %
%define braop \{
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Source0: lxc-userspace-%{version}.tar.gz
Requires: binutils
+# lxcsu uses pgrep to compute the container's init_pid
+Requires: procps-ng
Obsoletes: lxctools
%description
Userspace tools for switching between lxc containers.
-%prep
+%prep
%setup -q
%build
-make
+make
%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -D -m 755 lxcsu $RPM_BUILD_ROOT/usr/sbin/lxcsu
install -D -m 755 lxcsu-internal $RPM_BUILD_ROOT/usr/sbin/lxcsu-internal
chmod u+s $RPM_BUILD_ROOT/usr/sbin/lxcsu
-cp build/lib*/setns.so $RPM_BUILD_ROOT/usr/sbin
+cp build/lib*/setns*.so $RPM_BUILD_ROOT/usr/sbin
%clean
rm -rf $RPM_BUILD_ROOT
%postun
%changelog
+* Mon Jan 07 2019 Thierry <Parmentelat> - lxc-userspace-2.0-0
+- ported to python3, including the setns C extension
+
+* Wed Jul 16 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - lxc-userspace-1.0-12
+- fix lxcsu to spot the right architecture for the container - was always using the host's arch
+
+* Mon Apr 28 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - lxc-userspace-1.0-11
+- reworked kvmsu
+
* Wed Mar 26 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - lxc-userspace-1.0-10
- lxcsu evaluates slice_uid earlier
- this is for old-installed f18 nodes like in PLE
* Fri Feb 22 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - lxctools-0.9-2
- various fixes
-