]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
macros: Add templates for python packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Oct 2012 20:07:50 +0000 (22:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Oct 2012 20:07:50 +0000 (22:07 +0200)
macros/templates.macro

index 794619bc348c80b8217a393a2411a1d51e405ce3..a2388b9d7b09b2fa625bbc2fa4cde6696aa3f4f4 100644 (file)
@@ -87,4 +87,24 @@ packages
                        %{datadir}/doc
                end
        end
+
+       template PYTHON
+               summary = Python bindings from the %{name} package.
+               description = %{summary}
+
+               files
+                       %{python_sitearch}
+                       %{python_sitelib}
+               end
+       end
+
+       template PYTHON3
+               summary = Python 3 bindings from the %{name} package.
+               description = %{summary}
+
+               files
+                       %{python3_sitearch}
+                       %{python3_sitelib}
+               end
+       end
 end