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@
13 #==============================================================================
14 # ---- configure macros.
17 %_exec_prefix @exec_prefix@
20 %_libexecdir @libexecdir@
21 %_datarootdir @datarootdir@
23 %_sysconfdir @sysconfdir@
24 %_sharedstatedir @sharedstatedir@
25 %_localstatedir @localstatedir@
27 %_libdir @exec_prefix@/@LIB@
28 %_includedir @includedir@
29 %_oldincludedir @oldincludedir@
32 %_initrddir %{_sysconfdir}/rc.d/init.d
34 %_defaultdocdir @DEFAULTDOCDIR@
36 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
37 && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
38 [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
41 #---------------------------------------------------------------------
43 %_multilibno @MULTILIBNO@
44 %_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
47 #==============================================================================
48 # ---- Build policy macros.
50 #---------------------------------------------------------------------
51 # Expanded at end of %install scriptlet.
54 %__arch_install_post @ARCH_INSTALL_POST@
57 @RPMCONFIGDIR@/brp-compress \
58 @RPMCONFIGDIR@/brp-strip \
59 @RPMCONFIGDIR@/brp-strip-static-archive \
60 @RPMCONFIGDIR@/brp-strip-comment-note \
64 %{?__debug_package:%{__debug_install_post}}\
65 %{__arch_install_post}\
69 @redhat@#---------------------------------------------------------------------
70 @redhat@# Expanded at end of %prep
72 @redhat@%__id_u @__ID_U@
73 @redhat@%__chown_Rhf @__CHOWN_RHF@
74 @redhat@%__chgrp_Rhf @__CHGRP_RHF@
75 @redhat@%_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root
76 @redhat@%_fixgroup [ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} @ROOT_GROUP@
77 @redhat@%_fixperms %{__chmod} -Rf @FIXPERMS@
78 @redhat@#---------------------------------------------------------------------
79 @redhat@# Always use %defattr(-,root,root) in %files (added in rpm-4.0.4)
81 @redhat@#%files(n:f:) %%files%{?-f: -f %{-f*}}%{?-n: -n %{-n*}} %{?1}\
82 @redhat@#%defattr(-,root,root,-)\
86 @apple@#---------------------------------------------------------------------
87 @apple@# Apple Darwin vendor specific macros
89 @apple@%_use_internal_dependency_generator 0
93 @mandrake@#---------------------------------------------------------------------
94 @mandrake@# Mandrake vendor specific macros
95 @mandrake@# XXX Add a support e-mail address here, please.
97 @mandrake@# XXX These values, particularly vendor, need to be regularized, please.
98 @mandrake@%_vendor MandrakeSoft
99 @mandrake@%_real_vendor mandrake
100 @mandrake@%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}
102 @mandrake@# XXX I'll make these the default linux values soon as I can.
103 @mandrake@%_libexecdir %{_libdir}
104 @mandrake@%_localstatedir %{_var}/lib
106 @mandrake@# XXX A copy of brp-mandrake, please. I'd suggest break down by
107 @mandrake@# functionality rather than vendor <shrug>.
108 @mandrake@%__os_install_post \
109 @mandrake@ @RPMCONFIGDIR@/brp-mandrake \
113 @mandrake@%_make_bin make
114 @mandrake@%make if [ -z "$NPROCS" -a -f /proc/stat ]; then NPROCS=`egrep -c ^cpu[0-9]+ /proc/stat || :`; fi \
115 @mandrake@if [ -z "$NPROCS" -o "$NPROCS" -le "0" ]; then \
116 @mandrake@ NPROCS=1 \
118 @mandrake@%{_make_bin} -j$NPROCS
120 @mandrake@# Menu directories
121 @mandrake@%_menudir %{_libdir}/menu
122 @mandrake@%_iconsdir %{_datadir}/icons
123 @mandrake@%_miconsdir %{_datadir}/icons/mini
124 @mandrake@%_liconsdir %{_datadir}/icons/large
126 @mandrake@# Update Menu
127 @mandrake@%_update_menus_bin %{_bindir}/update-menus
128 @mandrake@%update_menus if [ -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
130 @mandrake@# Clean Menu
131 @mandrake@%clean_menus if [ "$1" = "0" -a -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
133 @mandrake@# Update Window Managers session.
134 @mandrake@%_fndsession_bin %{_sbindir}/fndSession
135 @mandrake@%make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
137 @mandrake@# Where install-info is located
138 @mandrake@%__install_info /sbin/install-info
140 @mandrake@# Macros to install info-files.
141 @mandrake@%_install_info() %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir\;
143 @mandrake@# Macros to remove info-files. (keep the "alone on its line ';'")
144 @mandrake@%_remove_install_info() if [ "$1" = "0" ]; then %{__install_info} \\\
145 @mandrake@ %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ; fi\
148 @mandrake@# Games macros
149 @mandrake@%_gamesdir games
150 @mandrake@%_gamesbindir %{_prefix}/%{_gamesdir}
151 @mandrake@%_gamesdatadir %{_datadir}/%{_gamesdir}