aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
blob: 2d73956adcc7a566c3458984dc153ad004afad3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# @RPMVENDORDIR@/macros:
# Main Mangeia rpm configuration
# Only modified macros goes here
#
#
# This is a global RPM configuration file. All changes made here will
# be lost when the rpm package is upgraded. Any per-system configuration
# should be added to /etc/rpm/macros, while per-user configuration should
# be added to ~/.rpmmacros.

%_host_vendor @RPMCANONVENDOR@
%_real_vendor @RPMCANONVENDOR@

%_vendor @RPMVENDOR@

%_gnu @CANONTARGETGNU@
%_target_platform	%{_target_cpu}-%{_real_vendor}-%{_target_os}%{?_gnu}

%_host %{_host_cpu}-%{_real_vendor}-%{_host_os}%{?_gnu}

# automatic truncation of changelogs to 3 years
%_changelog_trimtime	%{lua:print(os.time() - 3 * 365 * 86400)}

# use LZMA to compress binary packages:
%_binary_payload w5.xzdio

#==============================================================================
# ---- GPG/PGP/PGP5 signature macros.
#	Macro(s) to hold the arguments passed to GPG/PGP for package
#	signing and verification.
#

# We disable the gpg key automatic querying 
%_hkp_keyserver_query   %nil


#	Verify digest/signature flags for various rpm modes:
#	0x30300 (_RPMVSF_NODIGESTS)    --nohdrchk      if set, don't check digest(s)
#	0xc0c00 (_RPMVSF_NOSIGNATURES) --nosignature   if set, don't check signature(s)
#	0xf0000 (_RPMVSF_NOPAYLOAD)    --nolegacy      if set, check header+payload (if possible)
#	0x00f00 (_RPMVSF_NOHEADER)     --nohdrchk      if set, don't check rpmdb headers
%_vsflags_query		0xc0c00


#	Open all indices before doing chroot(2).
#
%_openall_before_chroot	1

%_repackage_all_erasures	0

%_query_all_fmt		%%{name}-%%{version}-%%{release}

%_rpmlock_path  %{_dbpath}/__db.000

# activate filetriggers (cf http://wiki.mandriva.com/en/Rpm_filetriggers)
%_filetriggers_dir /var/lib/rpm/filetriggers

# directories #######################################
%_sysconfdir    /etc
%_initrddir     %{_sysconfdir}/rc.d/init.d
%_infodir       %_datadir/info
%_mandir        %_datadir/man
%_defaultdocdir %_datadir/doc

%_localstatedir %{_var}
%_logdir 	%{_var}/log
%_libexecdir 	%{_prefix}/libexec

%_pkgdocdir	%{_docdir}/%{name}
%_docdir_fmt	%%{NAME}