From 05200fa591dfed20d03a59fb151ff5bd39816d4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 23 Dec 2023 23:06:10 +0100 Subject: [PATCH] - new --- virtme-ng.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 virtme-ng.spec diff --git a/virtme-ng.spec b/virtme-ng.spec new file mode 100644 index 0000000..413b8e0 --- /dev/null +++ b/virtme-ng.spec @@ -0,0 +1,60 @@ +Summary: Tool that allows to easily and quickly recompile and test a Linux kernel +Name: virtme-ng +Version: 1.19 +Release: 0.1 +License: GPL v2 +Group: Applications +Source0: https://github.com/arighi/virtme-ng/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 195793a6562c0dfe31d1d004429636f6 +URL: https://github.com/arighi/virtme-ng +BuildRequires: python3-argcomplete +BuildRequires: python3-modules >= 1:3.8 +BuildRequires: python3-requests +BuildRequires: python3-setuptools +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: busybox-static +Requires: python3 >= 1:3.8 +Requires: python3-modules >= 1:3.8 +Requires: qemu +Requires: qemu-img +Suggests: qemu-system-x86 +Suggests: virtiofsd >= 1.7.0 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +virtme-ng is a tool that allows to easily and quickly recompile and +test a Linux kernel, starting from the source code. + +It allows to recompile the kernel in few minutes (rather than hours), +then the kernel is automatically started in a virtualized environment +that is an exact copy-on-write copy of your live system, which means +that any changes made to the virtualized environment do not affect the +host system. + +%prep +%setup -q + +%build +%py3_build + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc DCO-1.1.txt README.md +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/virtme-ng.conf +%attr(755,root,root) %{_bindir}/virtme-* +%attr(755,root,root) %{_bindir}/vng +%{py3_sitescriptdir}/virtme +%{py3_sitescriptdir}/virtme_ng +%{py3_sitescriptdir}/virtme_ng-%{version}-py*.egg-info +%{bash_compdir}/virtme-ng-prompt +%{bash_compdir}/vng-prompt -- 2.44.0