1 # Per-platform rpm configuration file.
3 #==============================================================================
4 # ---- per-platform macros.
7 %_vendor @RPMCANONVENDOR@
9 %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
10 %optflags @RPMRC_OPTFLAGS@
12 #==============================================================================
13 # ---- configure macros.
16 %_exec_prefix @exec_prefix@
19 %_libexecdir @libexecdir@
21 %_sysconfdir @sysconfdir@
22 %_sharedstatedir @sharedstatedir@
23 %_localstatedir @localstatedir@
26 %_includedir @includedir@
27 %_oldincludedir @oldincludedir@
30 %_initrddir %{_sysconfdir}/rc.d/init.d
32 %_defaultdocdir @DEFAULTDOCDIR@
34 #==============================================================================
35 # ---- Build policy macros.
37 #------------------------------------------------------------------------
38 # Expanded at end of %install
41 %__arch_install_post @ARCH_INSTALL_POST@
44 @prefix@/lib/rpm/brp-compress \
45 @prefix@/lib/rpm/brp-strip \
46 @prefix@/lib/rpm/brp-strip-comment-note \
50 %{__arch_install_post}\
54 #------------------------------------------------------------------------
55 # Expanded at end of %prep
58 %__chown_Rhf @__CHOWN_RHF@
59 %__chgrp_Rhf @__CHGRP_RHF@
60 %_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root
61 %_fixgroup [ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} @ROOT_GROUP@
62 %_fixperms %{__chmod} -Rf @FIXPERMS@
65 #------------------------------------------------------------------------
67 %_multilibno @MULTILIBNO@
68 %_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
71 @mandrake@#------------------------------------------------------------------------
72 @mandrake@# Mandrake vendor specific macros
73 @mandrake@# XXX Add a support e-mail address here, please.
76 @mandrake@# XXX These values, particularly vendor, need to be regularized, please.
77 @mandrake@%_vendor MandrakeSoft
78 @mandrake@%_real_vendor mandrake
79 @mandrake@%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}
81 @mandrake@# XXX I'll make these the default linux values soon as I can.
82 @mandrake@%_libexecdir %{_libdir}
83 @mandrake@%_localstatedir %{_var}/lib
85 @mandrake@# XXX A copy of brp-mandrake, please. I'd suggest break down by
86 @mandrake@# functionality rather than vendor <shrug>.
87 @mandrake@%__os_install_post \
88 @mandrake@ /usr/lib/rpm/brp-mandrake \
92 @mandrake@%_make_bin make
93 @mandrake@%make if [ -z "$NPROCS" -a -f /proc/stat ]; then NPROCS=`egrep -c ^cpu[0-9]+ /proc/stat || :`; fi \
94 @mandrake@if [ -z "$NPROCS" -o "$NPROCS" -le "0" ]; then \
97 @mandrake@%{_make_bin} -j$NPROCS
99 @mandrake@# Menu directories
100 @mandrake@%_menudir %{_libdir}/menu
101 @mandrake@%_iconsdir %{_datadir}/icons
102 @mandrake@%_miconsdir %{_datadir}/icons/mini
103 @mandrake@%_liconsdir %{_datadir}/icons/large
105 @mandrake@# Update Menu
106 @mandrake@%_update_menus_bin %{_bindir}/update-menus
107 @mandrake@%update_menus if [ -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
109 @mandrake@# Clean Menu
110 @mandrake@%clean_menus if [ "$1" = "0" -a -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
112 @mandrake@# Update Window Managers session.
113 @mandrake@%_fndsession_bin %{_sbindir}/fndSession
114 @mandrake@%make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
116 @mandrake@# Where install-info is located
117 @mandrake@%__install_info /sbin/install-info
119 @mandrake@# Macros to install info-files.
120 @mandrake@%_install_info() %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir\;
122 @mandrake@# Macros to remove info-files. (keep the "alone on its line ';'")
123 @mandrake@%_remove_install_info() if [ "$1" = "0" ]; then %{__install_info} \\\
124 @mandrake@ %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ; fi\
127 @mandrake@# Games macros
128 @mandrake@%_gamesdir games
129 @mandrake@%_gamesbindir %{_prefix}/%{_gamesdir}
130 @mandrake@%_gamesdatadir %{_datadir}/%{_gamesdir}