[packages/mkosi] - rel 1, build and installs

baggins baggins at pld-linux.org
Mon Feb 5 23:27:40 CET 2024


commit e053cf3b475cc97c584f1092d1b0c1563bf2fb20
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Feb 5 23:26:55 2024 +0100

    - rel 1, build and installs
    
    TODO: add proper PLD support

 mkosi.spec | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/mkosi.spec b/mkosi.spec
index c1c725a..fa8a175 100644
--- a/mkosi.spec
+++ b/mkosi.spec
@@ -6,8 +6,8 @@
 Summary:	Build Bespoke OS Images
 Name:		mkosi
 Version:	20.2
-Release:	0.1
-License:	LGPLv2+
+Release:	1
+License:	LGPL v2+
 Group:		Applications
 Source0:	https://github.com/systemd/mkosi/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	f55ced5f4d136f779ab54eb29240210a
@@ -22,27 +22,17 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %prep
 %setup -q
 
+echo "import setuptools; setuptools.setup()" >setup.py
+
 %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
 
@@ -55,3 +45,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc NEWS.md README.md docs
 %attr(755,root,root) %{_bindir}/%{name}
+%{py3_sitescriptdir}/mkosi
+%{py3_sitescriptdir}/mkosi-%{version}-py*.egg-info
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list