Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37837506
en ru br
ALT Linux repositórios
S:0.1.95-alt2

Group :: Sistema/Configurações/Rede
RPM: phaul-ovz

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009