Группа :: Система/Настройка/Прочее
Пакет: phaul-ovz
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _libexecdir /usr/libexec
%define oname phaul
%def_without check
Name: %oname-ovz
Version: 0.1.95
Release: alt1
Summary: Process HAULer -- a tool to live-migrate containers and processes
License: LGPL-2.1
Group: System/Configuration/Other
URL: https://src.openvz.org/
Vcs: https://src.openvz.org/scm/ovz/p.haul.git
Packager: Andrew A. Vasilyev <andy at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
Requires: crtools-ovz >= 3.15.4.7
Conflicts: %oname
ExclusiveArch: x86_64
Source: %name-%version.tar
Patch: %name-%version-%release.patch
%add_python3_self_prov_path %buildroot%python3_sitelibdir_noarch/%oname
%description
Process HAULer -- a tool to live-migrate containers and processes.
%prep
%setup -n %name-%version
%patch -p1
find . -name '*.py' -o -name p.haul-wrap | xargs sed -i \
-e '1s|^#!/usr/bin/env python$|#!/usr/bin/python3|' \
-e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \
%nil
%build
%python3_build
%install
%__python3 setup.py install --skip-build --root %buildroot --install-scripts %_libexecdir/%oname
# Remove egg-info, module is necessary for phaul only:
rm -rf %buildroot%python3_sitelibdir_noarch/*.egg-info
install -d %buildroot%_sbindir
install -pD -m755 p.haul-ssh p.haul-wrap %buildroot%_sbindir
chmod a+rx %buildroot%python3_sitelibdir_noarch/%oname/shell/{phaul_client,phaul_service}.py
%if_with check
%check
export PYTHONPATH=%buildroot%python3_sitelibdir_noarch
pushd test
popd
%endif
%files
%doc COPYING README.md
%_libexecdir/%oname
%_sbindir/*
%python3_sitelibdir_noarch/*
%changelog
…
Полный changelog можно просмотреть здесь
%define oname phaul
%def_without check
Name: %oname-ovz
Version: 0.1.95
Release: alt1
Summary: Process HAULer -- a tool to live-migrate containers and processes
License: LGPL-2.1
Group: System/Configuration/Other
URL: https://src.openvz.org/
Vcs: https://src.openvz.org/scm/ovz/p.haul.git
Packager: Andrew A. Vasilyev <andy at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
Requires: crtools-ovz >= 3.15.4.7
Conflicts: %oname
ExclusiveArch: x86_64
Source: %name-%version.tar
Patch: %name-%version-%release.patch
%add_python3_self_prov_path %buildroot%python3_sitelibdir_noarch/%oname
%description
Process HAULer -- a tool to live-migrate containers and processes.
%prep
%setup -n %name-%version
%patch -p1
find . -name '*.py' -o -name p.haul-wrap | xargs sed -i \
-e '1s|^#!/usr/bin/env python$|#!/usr/bin/python3|' \
-e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \
%nil
%build
%python3_build
%install
%__python3 setup.py install --skip-build --root %buildroot --install-scripts %_libexecdir/%oname
# Remove egg-info, module is necessary for phaul only:
rm -rf %buildroot%python3_sitelibdir_noarch/*.egg-info
install -d %buildroot%_sbindir
install -pD -m755 p.haul-ssh p.haul-wrap %buildroot%_sbindir
chmod a+rx %buildroot%python3_sitelibdir_noarch/%oname/shell/{phaul_client,phaul_service}.py
%if_with check
%check
export PYTHONPATH=%buildroot%python3_sitelibdir_noarch
pushd test
popd
%endif
%files
%doc COPYING README.md
%_libexecdir/%oname
%_sbindir/*
%python3_sitelibdir_noarch/*
%changelog
…
Полный changelog можно просмотреть здесь