]> git.ipfire.org Git - people/ms/pakfire.git/blobdiff - macros/templates.macro
Remove the urlgrabber fork hack.
[people/ms/pakfire.git] / macros / templates.macro
index 8fb502d98710cbf5dd2ff67be0a39a353b17cf6b..c4cda8c618356833137834b2764b690af19cba49 100644 (file)
@@ -5,28 +5,34 @@ thisapp = %{name}-%{version}
 thisver = %{version}-%{_release}
 
 packages
+       # Don't inherit dependency information from somewhere else
+       # (like build dependencies).
+       prerequires =
+       requires =
+       provides =
+       conflicts =
+       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
-                       /lib/lib*.so.*
-                       /usr/lib*/lib*.so.*
+               files
+                       /%{lib}/*.so.*
+                       %{libdir}/lib*.so.*
                end
 
-               def configfiles
-               end
+               configfiles =
 
                # Linker cache is updated automatically by pakfire.
        end
@@ -35,24 +41,26 @@ packages
                summary = Development files of %{thisapp}.
                description = %{summary}
 
-               requires = %{name}=%{thisver}
-
-               def files
-                       /usr/bin/*-config
-                       /usr/include
-                       /usr/lib/*.a
-                       /usr/lib/pkgconfig
-                       /usr/share/aclocal
-                       /usr/lib/*.so
-                       /usr/share/*/cmake
-                       /usr/share/man/man2
-                       /usr/share/man/man3
-                       /usr/share/pkgconfig
-                       /usr/share/vala
+               requires
+                       %{name} = %{thisver}
                end
 
-               def configfiles
+               files
+                       %{bindir}/*-config
+                       %{includedir}
+                       %{libdir}/*.a
+                       %{libdir}/pkgconfig
+                       %{datadir}/aclocal
+                       %{libdir}/*.so
+                       %{datadir}/cmake
+                       %{mandir}/man2
+                       %{mandir}/man3
+                       %{datadir}/gir*
+                       %{datadir}/pkgconfig
+                       %{datadir}/vala
                end
+
+               configfiles =
        end
 
        template DEBUGINFO
@@ -71,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