aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-15 11:02:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-15 11:02:04 +0000
commiteed474e18d83c3cbe5a25bf24eb94f792d2a31a4 (patch)
treefceaf336c4b1ac2da3764c6cb4f08c3ebe0d6e3b /build.macros.in
parentf654553f49d433d54f098f0a15a9db66da4660b7 (diff)
downloadrpm-setup-eed474e18d83c3cbe5a25bf24eb94f792d2a31a4.tar
rpm-setup-eed474e18d83c3cbe5a25bf24eb94f792d2a31a4.tar.gz
rpm-setup-eed474e18d83c3cbe5a25bf24eb94f792d2a31a4.tar.bz2
rpm-setup-eed474e18d83c3cbe5a25bf24eb94f792d2a31a4.tar.xz
rpm-setup-eed474e18d83c3cbe5a25bf24eb94f792d2a31a4.zip
1.74: remove macros needed for Manbo packages (they are now in rpm-manbo-setup)1.74
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in87
1 files changed, 0 insertions, 87 deletions
diff --git a/build.macros.in b/build.macros.in
index c4cfae9..b3a863d 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -28,8 +28,6 @@
# (e.g. per-platform, per-system, per-packager, per-package) macros.
#
-%_enable_debug_packages 1
-
%debugcflags %{?_enable_debug_packages:-g}
%debug_package_and_restore %{debug_package} \
@@ -60,9 +58,6 @@ Group: %{group}\
%_gamesbindir %{_prefix}/%{_gamesdir}
%_gamesdatadir %{_datadir}/%{_gamesdir}
-# Default extension to use.
-%_extension .lzma
-
# Menu directories
%_menudir %{_prefix}/lib/menu
%_iconsdir %{_datadir}/icons
@@ -98,12 +93,6 @@ Group: %{group}\
%find_lang @RPMVENDORDIR@/find-lang.pl %{buildroot}
-# Macro: %{mklibname <name> [<major> [<minor>]] [-s] [-d]}
-# - %{mklibname test} => lib64test, on a lib64 platform
-# - %{mklibname test 1 -d} => libtest1-devel
-# - %{mklibname test 1 -d 0 -s} => libtest1_0-static-devel
-%mklibname(ds) %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}
-
# Update Menu
%_update_menus_bin %{_bindir}/update-menus
%update_menus if [ -x %{_update_menus_bin} ]; then %{_update_menus_bin} || true ; fi \
@@ -118,14 +107,6 @@ Group: %{group}\
%make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi \
%{nil}
-# Macros to install info-files.
-%_install_info() if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir;fi \
-%{nil}
-
-# Macros to remove info-files. (keep the "alone on its line ';'")
-%_remove_install_info() if [ "$1" = "0" ]; then if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ;fi; fi \
-%{nil}
-
# For rebuilding gcj-db
%_rebuildgcjdb_bin %{_bindir}/rebuild-gcj-db
%update_gcjdb if [ -x %{_rebuildgcjdb_bin} ]; then %{_rebuildgcjdb_bin} || true ; fi \
@@ -198,14 +179,6 @@ then %{_scrollkeeper_bin} -q || true ; fi \
%mkrel(c:) %{-c: 0.%{-c*}.}%{1}%{?subrel:.%subrel}%{?distsuffix:%distsuffix}%{?!distsuffix:mdv}%{?mandriva_release:%mandriva_release}
-%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
- && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
- [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
-
-# make
-%_make_bin make
-%make %{_make_bin} %_smp_mflags
-
#==============================================================================
# ---- Build policy macros.
#
@@ -228,68 +201,8 @@ then %{_scrollkeeper_bin} -q || true ; fi \
# (Note: Above is the goal, below are the macros under development)
#
-# Servers opt flags.
-# Also set the env variables for backward compatibility (#32050).
-%serverbuild %define _serverbuild_flags -fstack-protector-all \
-export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%optflags" \
-%{nil}
-
%__libtoolize_configure %{?__libtoolize:(cd $CONFIGURE_TOP; [ -f configure.in -o -f configure.ac ] && %{__libtoolize} --copy --force)}
-# This is an improved version of %configure (from PLD team).
-%configure \
- CONFIGURE_TOP="${CONFIGURE_TOP:-.}"; \
- CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
- CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
- FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
- %{?__cputoolize:%{__cputoolize} -c $CONFIGURE_TOP} ; \
- %{?_enable_libtoolize:%{?__libtoolize_configure:%{__libtoolize_configure};}} \
- [ -f $CONFIGURE_TOP/configure.in -o -f $CONFIGURE_TOP/configure.ac ] && \
- CONFIGURE_XPATH="--x-includes=%{_prefix}/include --x-libraries=%{_prefix}/%{_lib}" \
- $CONFIGURE_TOP/configure %{_target_platform} \\\
- --program-prefix=%{?_program_prefix} \\\
- --prefix=%{_prefix} \\\
- --exec-prefix=%{_exec_prefix} \\\
- --bindir=%{_bindir} \\\
- --sbindir=%{_sbindir} \\\
- --sysconfdir=%{_sysconfdir} \\\
- --datadir=%{_datadir} \\\
- --includedir=%{_includedir} \\\
- --libdir=%{_libdir} \\\
- --libexecdir=%{_libexecdir} \\\
- --localstatedir=%{_localstatedir} \\\
- --sharedstatedir=%{_sharedstatedir} \\\
- --mandir=%{_mandir} \\\
- --infodir=%{_infodir} \\\
- $CONFIGURE_XPATH
-
-%configure2_5x \
- CONFIGURE_TOP="${CONFIGURE_TOP:-.}"; \
- CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
- CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
- FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
- %{?__cputoolize:%{__cputoolize} -c $CONFIGURE_TOP} ; \
- %{?_enable_libtoolize:%{?__libtoolize_configure:%{__libtoolize_configure};}} \
- [ -f $CONFIGURE_TOP/configure.in -o -f $CONFIGURE_TOP/configure.ac ] && \
- CONFIGURE_XPATH="--x-includes=%{_prefix}/include --x-libraries=%{_prefix}/%{_lib}" \
- $CONFIGURE_TOP/configure --build=%{_target_platform} \\\
- --prefix=%{_prefix} \\\
- --exec-prefix=%{_exec_prefix} \\\
- --bindir=%{_bindir} \\\
- --sbindir=%{_sbindir} \\\
- --sysconfdir=%{_sysconfdir} \\\
- --datadir=%{_datadir} \\\
- --includedir=%{_includedir} \\\
- --libdir=%{_libdir} \\\
- --libexecdir=%{_libexecdir} \\\
- --localstatedir=%{_localstatedir} \\\
- --sharedstatedir=%{_sharedstatedir} \\\
- --mandir=%{_mandir} \\\
- --infodir=%{_infodir} \\\
- $CONFIGURE_XPATH
-
-%makeinstall_std make DESTDIR=%{?buildroot:%{buildroot}} install
-
%old_makeinstall \
make \\\
prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\