X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=macros%2Ftemplates.macro;h=c4cda8c618356833137834b2764b690af19cba49;hb=4252a54980c0996a9b46ad2043aefe0910bc5da7;hp=8a1938db89481e5320091050ce058f4fe18dd730;hpb=abf91cdfd473bb2d05898cf9980aa65fce6bf431;p=people%2Fms%2Fpakfire.git diff --git a/macros/templates.macro b/macros/templates.macro index 8a1938db8..c4cda8c61 100644 --- a/macros/templates.macro +++ b/macros/templates.macro @@ -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