add PKGBUILD, upd DEB builder

This commit is contained in:
ge
2024-01-16 22:26:59 +03:00
parent f091b34854
commit 10ff2ca297
15 changed files with 91 additions and 33 deletions

View File

@ -0,0 +1,53 @@
Source: compute
Section: admin
Priority: optional
Maintainer: ge <ge@nixhacks.net>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
bash-completion,
pybuild-plugin-pyproject,
python3-poetry-core,
python3-setuptools,
python3-all,
python3-sphinx,
python3-sphinx-multiversion,
python3-sphinx-argparse,
python3-libvirt,
python3-lxml,
python3-yaml,
python3-pydantic
Standards-Version: 4.6.2
Homepage: https://git.lulzette.ru/hstack/compute
Package: compute
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
qemu-system,
qemu-utils,
libvirt-daemon,
libvirt-daemon-system,
libvirt-daemon-driver-qemu,
libvirt-clients,
python3-libvirt,
python3-lxml,
python3-yaml,
python3-pydantic,
mtools,
dosfstools,
dnsmasq,
dnsmasq-base
Suggests:
compute-doc
Description: Compute instances management library (Python 3)
Package: compute-doc
Section: doc
Architecture: all
Depends:
${sphinxdoc:Depends},
${misc:Depends},
Description: Compute instances management library (documentation)

View File

@ -0,0 +1,32 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://git.lulzette.ru/hstack/compute
Upstream-Name: compute
Files:
*
Copyright:
2023 ge <ge@nixhacks.net>
License: GPL-3.0+
Files:
debian/*
Copyright:
2023 ge <ge@nixhacks.net>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Comment:
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

View File

@ -0,0 +1 @@
README.md

View File

@ -0,0 +1 @@
computed.toml etc/compute/

20
packaging/debian/files/rules Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
export PYBUILD_DESTDIR_python3=debian/compute
%:
dh $@ --with python3,sphinxdoc,bash-completion --buildsystem=pybuild
override_dh_auto_test:
@echo No tests there
override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 \
HTTP_PROXY=127.0.0.1:9 HTTPS_PROXY=127.0.0.1:9 \
PYTHONPATH=. PYTHON=python3 python3 -m sphinx $(SPHINXOPTS) -b html \
../docs/source \
$(CURDIR)/debian/compute-doc/usr/share/doc/compute-doc/html
dh_sphinxdoc
endif