commit 4bd83f1d5ef05a9937c9d9a3db1ad0bc474471c5
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Feb 4 15:03:37 2024 +0100

    - new, raw

 mkosi.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
---
diff --git a/mkosi.spec b/mkosi.spec
new file mode 100644
index 0000000..c1c725a
--- /dev/null
+++ b/mkosi.spec
@@ -0,0 +1,57 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%bcond_without tests           # build without tests
+#
+Summary:       Build Bespoke OS Images
+Name:          mkosi
+Version:       20.2
+Release:       0.1
+License:       LGPLv2+
+Group:         Applications
+Source0:       
https://github.com/systemd/mkosi/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: f55ced5f4d136f779ab54eb29240210a
+URL:           https://github.com/systemd/mkosi
+#BuildRequires:        -
+#Requires:     -
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%prep
+%setup -q
+
+%build
+%py3_build
+# deprecated target, but sometimes still used: %{?with_tests:test}
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if 
empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+       SPHINXBUILD=sphinx-build-3
+rm -rf docs/_build/html/_sources
+
+# or
+
+%{_bindir}/tox -e docs
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS.md README.md docs
+%attr(755,root,root) %{_bindir}/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mkosi.git/commitdiff/4bd83f1d5ef05a9937c9d9a3db1ad0bc474471c5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to