]> git.ipfire.org Git - pakfire.git/blob - macros/templates.macro
d6b90f947aa97689097817aa8024ce084b6eda5d
[pakfire.git] / macros / templates.macro
1
2 # XXX fill in description
3 _release = %{release}.%{DISTRO_DISTTAG}
4 thisapp = %{name}-%{version}
5 thisver = %{version}-%{_release}
6
7 packages
8 # Don't inherit dependency information from somewhere else
9 # (like build dependencies).
10 prerequires =
11 requires =
12 provides =
13 conflicts =
14 obsoletes =
15
16 template MAIN
17 def files
18 /
19 !/usr/lib/debug
20 !/usr/src/debug
21 end
22
23 def configfiles
24 end
25 end
26
27 template LIBS
28 summary = Library files of %{thisapp}.
29 description = Runtime library files of the package %{thisapp}.
30
31 def files
32 /%{lib}/*.so.*
33 ${libdir}/lib*.so.*
34 end
35
36 def configfiles
37 end
38
39 # Linker cache is updated automatically by pakfire.
40 end
41
42 template DEVEL
43 summary = Development files of %{thisapp}.
44 description = %{summary}
45
46 requires = %{name}=%{thisver}
47
48 def files
49 %{bindir}/*-config
50 %{includedir}
51 %{libdir}//*.a
52 %{libdir}/pkgconfig
53 %{datadir}/aclocal
54 %{libdir}/*.so
55 %{datadir}/*/cmake
56 %{mandir}/man2
57 %{mandir}/man3
58 %{datadir}/pkgconfig
59 %{datadir}/vala
60 end
61
62 def configfiles
63 end
64 end
65
66 template DEBUGINFO
67 summary = Debug information for package %{thisapp}.
68 description
69 This package provides debug information for package %{thisapp}.
70
71 Debug information is useful when developing applications that use
72 this package or when debugging this package.
73 end
74
75 groups = Development/Debug Debug
76
77 files
78 /usr/lib/debug
79 /usr/src/debug
80 end
81 end
82 end