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 %{_datadir}/doc
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")
46 #==============================================================================
47 # ---- Build policy macros.
49 #---------------------------------------------------------------------
50 # Expanded at end of %install scriptlet.
53 %__arch_install_post @ARCH_INSTALL_POST@
56 %{_rpmconfigdir}/brp-compress \
57 %{_rpmconfigdir}/brp-strip %{__strip} \
58 %{_rpmconfigdir}/brp-strip-static-archive %{__strip} \
59 %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} \
63 %{?__debug_package:%{__debug_install_post}}\
64 %{__arch_install_post}\
68 @redhat@#---------------------------------------------------------------------
69 @redhat@# Expanded at end of %prep
71 @redhat@%_fixperms %{__chmod} -Rf @FIXPERMS@
72 @redhat@#---------------------------------------------------------------------
73 @redhat@# Always use %defattr(-,root,root) in %files (added in rpm-4.0.4)
75 @redhat@#%files(n:f:) %%files%{?-f: -f %{-f*}}%{?-n: -n %{-n*}} %{?1}\
76 @redhat@#%defattr(-,root,root,-)\
80 @apple@#---------------------------------------------------------------------
81 @apple@# Apple Darwin vendor specific macros
83 @apple@%_use_internal_dependency_generator 0
87 @mandrake@#---------------------------------------------------------------------
88 @mandrake@# Mandrake vendor specific macros
89 @mandrake@# XXX Add a support e-mail address here, please.
91 @mandrake@# XXX These values, particularly vendor, need to be regularized, please.
92 @mandrake@%_vendor MandrakeSoft
93 @mandrake@%_real_vendor mandrake
94 @mandrake@%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}
96 @mandrake@# XXX I'll make these the default linux values soon as I can.
97 @mandrake@%_libexecdir %{_libdir}
98 @mandrake@%_localstatedir %{_var}/lib
100 @mandrake@# XXX A copy of brp-mandrake, please. I'd suggest break down by
101 @mandrake@# functionality rather than vendor <shrug>.
102 @mandrake@%__os_install_post \
103 @mandrake@ %{_rpmconfigdir}/brp-mandrake \
107 @mandrake@%_make_bin make
108 @mandrake@%make if [ -z "$NPROCS" -a -f /proc/stat ]; then NPROCS=`grep -Ec ^cpu[0-9]+ /proc/stat || :`; fi \
109 @mandrake@if [ -z "$NPROCS" -o "$NPROCS" -le "0" ]; then \
110 @mandrake@ NPROCS=1 \
112 @mandrake@%{_make_bin} -j$NPROCS
114 @mandrake@# Menu directories
115 @mandrake@%_menudir %{_libdir}/menu
116 @mandrake@%_iconsdir %{_datadir}/icons
117 @mandrake@%_miconsdir %{_datadir}/icons/mini
118 @mandrake@%_liconsdir %{_datadir}/icons/large
120 @mandrake@# Update Menu
121 @mandrake@%_update_menus_bin %{_bindir}/update-menus
122 @mandrake@%update_menus if [ -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
124 @mandrake@# Clean Menu
125 @mandrake@%clean_menus if [ "$1" = "0" -a -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi
127 @mandrake@# Update Window Managers session.
128 @mandrake@%_fndsession_bin %{_sbindir}/fndSession
129 @mandrake@%make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
131 @mandrake@# Where install-info is located
132 @mandrake@%__install_info /sbin/install-info
134 @mandrake@# Macros to install info-files.
135 @mandrake@%_install_info() %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir\;
137 @mandrake@# Macros to remove info-files. (keep the "alone on its line ';'")
138 @mandrake@%_remove_install_info() if [ "$1" = "0" ]; then %{__install_info} \\\
139 @mandrake@ %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ; fi\
142 @mandrake@# Games macros
143 @mandrake@%_gamesdir games
144 @mandrake@%_gamesbindir %{_prefix}/%{_gamesdir}
145 @mandrake@%_gamesdatadir %{_datadir}/%{_gamesdir}