diff --git a/anda/tools/ops2deb/anda.hcl b/anda/tools/ops2deb/anda.hcl new file mode 100644 index 0000000000..dfb28b862a --- /dev/null +++ b/anda/tools/ops2deb/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ops2deb.spec" + } +} diff --git a/anda/tools/ops2deb/ops2deb.spec b/anda/tools/ops2deb/ops2deb.spec new file mode 100644 index 0000000000..e8e546a5c3 --- /dev/null +++ b/anda/tools/ops2deb/ops2deb.spec @@ -0,0 +1,40 @@ +%global debug_package %nil +%define _python_dist_allow_version_zero # upstream issue? + +Name: python3-ops2deb +Version: 2.4.1 +Release: 1%?dist +Summary: Generate Debian packages for common devops tools +License: MIT +URL: https://github.com/upciti/ops2deb +Source0: %url/archive/refs/tags/%version.tar.gz +BuildRequires: python3-devel poetry python3.10 +BuildRequires: python3dist(setuptools) + +%description +ops2deb is designed to generate Debian packages for common devops tools, but can be used to package any portable application. +It consumes a configuration file and outputs .deb packages. ops2deb can also track new releases of upstream applications and +automatically bump application versions in its configuration file. + + +%prep +%autosetup -n ops2deb-%version + +%build +poetry build + +%install +python3.10 -m ensurepip +python3.10 -m pip install installer +python3.10 -m installer --destdir=%buildroot dist/*.whl +rm -rf %buildroot/%python3_sitelib/*/__pycache__ + +%files +%license LICENSE +%doc README.md +/usr/bin/ops2deb +/usr/lib/python3*/site-packages/ops2deb* + +%changelog +* Fri Apr 28 2023 windowsboy111 - 2.4.1-1 +- Initial package. diff --git a/anda/tools/ops2deb/update.rhai b/anda/tools/ops2deb/update.rhai new file mode 100644 index 0000000000..1acc0dceb8 --- /dev/null +++ b/anda/tools/ops2deb/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("upciti/ops2deb"));