1 # Per-platform rpm configuration file.
3 #==============================================================================
4 # ---- per-platform macros.
7 %_vendor @RPMCANONVENDOR@
10 %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
11 %optflags @RPMRC_OPTFLAGS@
15 %__isa %{__isa_name}-%{__isa_bits}
17 #==============================================================================
18 # ---- configure macros.
21 %_exec_prefix @exec_prefix@
24 %_libexecdir @libexecdir@
25 %_datarootdir @datarootdir@
27 %_sysconfdir @sysconfdir@
28 %_sharedstatedir @sharedstatedir@
29 %_localstatedir @localstatedir@
31 %_libdir @exec_prefix@/@LIB@
32 %_includedir @includedir@
33 %_oldincludedir @oldincludedir@
36 %_initddir %{_sysconfdir}/rc.d/init.d
37 # Deprecated misspelling, present for backwards compatibility.
38 %_initrddir %{_initddir}
40 %_defaultdocdir @DEFAULTDOCDIR@
42 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
43 && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
44 [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
47 #---------------------------------------------------------------------
49 %_multilibno @MULTILIBNO@
50 %_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
53 #==============================================================================
54 # ---- Build policy macros.
56 #---------------------------------------------------------------------
57 # Expanded at end of %install scriptlet.
60 %__arch_install_post @ARCH_INSTALL_POST@
63 @RPMCONFIGDIR@/brp-compress \
64 @RPMCONFIGDIR@/brp-strip \
65 @RPMCONFIGDIR@/brp-strip-static-archive \
66 @RPMCONFIGDIR@/brp-strip-comment-note \
70 %{?__debug_package:%{__debug_install_post}}\
71 %{__arch_install_post}\
75 @redhat@#---------------------------------------------------------------------
76 @redhat@# Expanded at end of %prep
78 @redhat@%__id_u @__ID_U@
79 @redhat@%__chown_Rhf @__CHOWN_RHF@
80 @redhat@%__chgrp_Rhf @__CHGRP_RHF@
81 @redhat@%_fixperms %{__chmod} -Rf @FIXPERMS@
82 @redhat@#---------------------------------------------------------------------
83 @redhat@# Always use %defattr(-,root,root) in %files (added in rpm-4.0.4)
85 @redhat@#%files(n:f:) %%files%{?-f: -f %{-f*}}%{?-n: -n %{-n*}} %{?1}\
86 @redhat@#%defattr(-,root,root,-)\
90 @apple@#---------------------------------------------------------------------
91 @apple@# Apple Darwin vendor specific macros
93 @apple@%_use_internal_dependency_generator 0
97 @mandrake@#---------------------------------------------------------------------
98 @mandrake@# Mandrake vendor specific macros
99 @mandrake@# XXX Add a support e-mail address here, please.
101 @mandrake@# XXX These values, particularly vendor, need to be regularized, please.
102 @mandrake@%_vendor MandrakeSoft
103 @mandrake@%_real_vendor mandrake
104 @mandrake@%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}
106 @mandrake@# XXX I'll make these the default linux values soon as I can.
107 @mandrake@%_libexecdir %{_libdir}
108 @mandrake@%_localstatedir %{_var}/lib
110 @mandrake@# XXX A copy of brp-mandrake, please. I'd suggest break down by
111 @mandrake@# functionality rather than vendor <shrug>.
112 @mandrake@%__os_install_post \
113 @mandrake@ @RPMCONFIGDIR@/brp-mandrake \
117 @mandrake@%_make_bin make
118 @mandrake@%make if [ -z "$NPROCS" -a -f /proc/stat ]; then NPROCS=`egrep -c ^cpu[0-9]+ /proc/stat || :`; fi \
119 @mandrake@if [ -z "$NPROCS" -o "$NPROCS" -le "0" ]; then \
120 @mandrake@ NPROCS=1 \
122 @mandrake@%{_make_bin} -j$NPROCS
124 @mandrake@# Menu directories
125 @mandrake@%_menudir %{_libdir}/menu
126 @mandrake@%_iconsdir %{_datadir}/icons
127 @mandrake@%_miconsdir %{_datadir}/icons/mini
128 @mandrake@%_liconsdir %{_datadir}/icons/large
130 @mandrake@# Update Menu
131 @mandrake@%_update_menus_bin %{_bindir}/update-menus
132 @mandrake@%update_menus if [ -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
134 @mandrake@# Clean Menu
135 @mandrake@%clean_menus if [ "$1" = "0" -a -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
137 @mandrake@# Update Window Managers session.
138 @mandrake@%_fndsession_bin %{_sbindir}/fndSession
139 @mandrake@%make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
141 @mandrake@# Where install-info is located
142 @mandrake@%__install_info /sbin/install-info
144 @mandrake@# Macros to install info-files.
145 @mandrake@%_install_info() %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir\;
147 @mandrake@# Macros to remove info-files. (keep the "alone on its line ';'")
148 @mandrake@%_remove_install_info() if [ "$1" = "0" ]; then %{__install_info} \\\
149 @mandrake@ %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ; fi\
152 @mandrake@# Games macros
153 @mandrake@%_gamesdir games
154 @mandrake@%_gamesbindir %{_prefix}/%{_gamesdir}
155 @mandrake@%_gamesdatadir %{_datadir}/%{_gamesdir}