aboutsummaryrefslogtreecommitdiffstats
path: root/meson/docs/markdown/RPM-module.md
diff options
context:
space:
mode:
Diffstat (limited to 'meson/docs/markdown/RPM-module.md')
-rw-r--r--meson/docs/markdown/RPM-module.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/docs/markdown/RPM-module.md b/meson/docs/markdown/RPM-module.md
new file mode 100644
index 000000000..cab6d968a
--- /dev/null
+++ b/meson/docs/markdown/RPM-module.md
@@ -0,0 +1,16 @@
+# RPM module
+
+The RPM module can be used to create a sample rpm spec file for a
+Meson project. It autodetects installed files, dependencies and so
+on. Using it is very simple. At the very end of your Meson project
+(that is, the end of your top level `meson.build` file) add these two
+lines.
+
+```meson
+rpm = import('rpm')
+rpm.generate_spec_template()
+```
+
+Run Meson once on your code and the template will be written in your
+build directory. Then remove the two lines above and manually edit the
+template to add missing information. After this it is ready for use.