summaryrefslogtreecommitdiff
path: root/macros.aaa-pyproject-srpm
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-18 12:49:58 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-18 12:49:58 +0000
commitdf5ddad58ca74b9796b242cf4881f46408553703 (patch)
tree7c7e567ffef31b37fe82f13488a02c8ee0ef085a /macros.aaa-pyproject-srpm
parent6bd0dfb0a315b887499377bb5224890e2c12004f (diff)
automatic import of pyproject-rpm-macros
Diffstat (limited to 'macros.aaa-pyproject-srpm')
-rw-r--r--macros.aaa-pyproject-srpm17
1 files changed, 17 insertions, 0 deletions
diff --git a/macros.aaa-pyproject-srpm b/macros.aaa-pyproject-srpm
new file mode 100644
index 0000000..9bfe84e
--- /dev/null
+++ b/macros.aaa-pyproject-srpm
@@ -0,0 +1,17 @@
+# This file is called macros.aaa-pyproject-srpm
+# to sort alphabetically before macros.pyproject.
+# When this file is installed but macros.pyproject is not
+# this macro will cause the package with the real macro to be installed.
+# When macros.pyproject is installed, it overrides this macro.
+# Note: This needs to maintain the same set of options as the real macro.
+%pyproject_buildrequires(rRxtNwe:C:) echo 'pyproject-rpm-macros' && exit 0
+
+
+# Declarative buildsystem, requires RPM 4.20+ to work
+# https://rpm-software-management.github.io/rpm/manual/buildsystem.html
+# This is the minimal implementation to be in the srpm package,
+# as required even before the BuildRequires are installed
+%buildsystem_pyproject_conf() %nil
+%buildsystem_pyproject_generate_buildrequires() %pyproject_buildrequires %*
+%buildsystem_pyproject_build() %nil
+%buildsystem_pyproject_install() %nil