]> git.ipfire.org Git - people/ms/pakfire.git/blobdiff - macros/templates.macro
Mount /tmp as a tmpfs into the build environment.
[people/ms/pakfire.git] / macros / templates.macro
index 8a1938db89481e5320091050ce058f4fe18dd730..c4cda8c618356833137834b2764b690af19cba49 100644 (file)
@@ -14,27 +14,25 @@ packages
        obsoletes =
 
        template MAIN
-               def files
+               files
                        /
                        !/usr/lib/debug
                        !/usr/src/debug
                end
 
-               def configfiles
-               end
+               configfiles =
        end
 
        template LIBS
                summary = Library files of %{thisapp}.
                description = Runtime library files of the package %{thisapp}.
 
-               def files
+               files
                        /%{lib}/*.so.*
                        %{libdir}/lib*.so.*
                end
 
-               def configfiles
-               end
+               configfiles =
 
                # Linker cache is updated automatically by pakfire.
        end
@@ -43,24 +41,26 @@ packages
                summary = Development files of %{thisapp}.
                description = %{summary}
 
-               requires = %{name}=%{thisver}
+               requires
+                       %{name} = %{thisver}
+               end
 
-               def files
+               files
                        %{bindir}/*-config
                        %{includedir}
-                       %{libdir}//*.a
+                       %{libdir}/*.a
                        %{libdir}/pkgconfig
                        %{datadir}/aclocal
                        %{libdir}/*.so
-                       %{datadir}/*/cmake
+                       %{datadir}/cmake
                        %{mandir}/man2
                        %{mandir}/man3
+                       %{datadir}/gir*
                        %{datadir}/pkgconfig
                        %{datadir}/vala
                end
 
-               def configfiles
-               end
+               configfiles =
        end
 
        template DEBUGINFO
@@ -79,4 +79,33 @@ packages
                        /usr/src/debug
                end
        end
+
+       template DOCS
+               summary = Documentation from the %{name} package.
+               description = %{summary}
+
+               files
+                       %{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