77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
# Per-platform rpm configuration file.
|
|
|
|
#==============================================================================
|
|
# ---- per-platform macros.
|
|
#
|
|
%_host_arch x86_64
|
|
%_host_cpu x86_64
|
|
%_host_vendor openmamba
|
|
%_host_os linux-gnu
|
|
%_gnu -gnu
|
|
%_target_platform %{_host_arch}-%{_host_vendor}-%{_host_os}
|
|
%optflags -O2 -fomit-frame-pointer -pipe -fPIC
|
|
|
|
#==============================================================================
|
|
# ---- configure macros.
|
|
#
|
|
%_prefix /usr
|
|
%_exec_prefix %{_prefix}
|
|
%_bindir %{_exec_prefix}/bin
|
|
%_sbindir %{_exec_prefix}/sbin
|
|
%_libexecdir %{_exec_prefix}/libexec64
|
|
%_datadir %{_prefix}/share
|
|
%_sysconfdir /etc
|
|
%_sharedstatedir %{_prefix}/com
|
|
%_localstatedir /var
|
|
%_lib lib64
|
|
%_libdir %{_exec_prefix}/%{_lib}
|
|
%_includedir %{_prefix}/include
|
|
%_oldincludedir /usr/include
|
|
%_infodir %{_prefix}/share/info
|
|
%_mandir %{_prefix}/share/man
|
|
%_initrddir %{_sysconfdir}/rc.d/init.d
|
|
|
|
%_defaultdocdir %{_usr}/share/doc
|
|
|
|
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
|
|
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
|
|
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
|
|
|
|
#---------------------------------------------------------------------
|
|
# Multilibs
|
|
%_multilibno 1
|
|
%_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
|
|
|
|
#==============================================================================
|
|
# ---- Build policy macros.
|
|
#
|
|
#---------------------------------------------------------------------
|
|
# Expanded at end of %install scriptlet.
|
|
#
|
|
|
|
%__arch_install_post %{nil}
|
|
|
|
%__os_install_post \
|
|
/usr/lib/rpm/brp-infodir \
|
|
/usr/lib/rpm/brp-strip-builddirs \
|
|
/usr/lib/rpm/brp-compress \
|
|
/usr/lib/rpm/brp-strip \
|
|
/usr/lib/rpm/brp-strip-shared \
|
|
/usr/lib/rpm/brp-strip-static-archive \
|
|
/usr/lib/rpm/brp-strip-comment-note \
|
|
/usr/lib/rpm/brp-nobuildrootpath \
|
|
%{nil}
|
|
|
|
%__spec_install_post\
|
|
%{?__debug_package:%{__debug_install_post}}\
|
|
%{__arch_install_post}\
|
|
%{__os_install_post}\
|
|
%{nil}
|
|
|
|
# Executed after copying %doc to DOCDIR, with $DOCDIR set
|
|
#%__compress_doc /usr/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
|
|
|
|
|
|
|
|
|