Blame midipix/macros

5f52bf
#==============================================================================
5f52bf
# ---- Midipix distribution base vendor macros
5f52bf
#
5f52bf
#
5f52bf
#---------------------------------------------------------------------
5f52bf
5f52bf
# Base distribution settings, this is what you change for your own branding
5f52bf
%distribution		Midipix
5f52bf
%vendor			Midipix
dc15fa
#bugurl			https://dev.midipix.org/
5f52bf
%disturl		https://midipix.org/
5f52bf
%_vendor		midipix
5f52bf
5f52bf
#==============================================================================
5f52bf
# ---- per-platform macros.
5f52bf
#
5f52bf
%_os			midipix
5f52bf
%_host_ntbits		nt%{__isa_bits}
5f52bf
%_build_ntbits		%{_host_ntbits}
5f52bf
%_target_ntbits		%{_host_ntbits}
5f52bf
%_target_platform	%{_target_cpu}-%{_target_ntbits}-%{_vendor}-%{_target_os}%{?_gnu}
5f52bf
5f52bf
#==============================================================================
5f52bf
# ---- configure macros.  note that most of these are inherited
5f52bf
#      from the defaults.
5f52bf
#
5f52bf
# Set /var correctly
5f52bf
%_localstatedir		/var
5f52bf
%_sharedstatedir	%{_localstatedir}/lib
5f52bf
5f52bf
# Set /etc correctly
5f52bf
%_sysconfdir		/etc
5f52bf
5f52bf
# Set prefix correctly
5f52bf
%_prefix		/usr
5f52bf
5f52bf
# Set docdirs correctly
5f52bf
%_pkgdocdir             %{_docdir}/%{name}
5f52bf
%_docdir_fmt            %%{NAME}
5f52bf
5f52bf
# Set Fortran modules directory
5f52bf
%_fmoddir		%{_libdir}/gfortran/modules
5f52bf
155cf0
# Extra useful paths
155cf0
%_iconsdir		%{_datadir}/icons
155cf0
%_localedir		%{_datadir}/locale
155cf0
%_logdir		%{_localstatedir}/log
155cf0
%_metainfodir		%{_datadir}/metainfo
155cf0
5f52bf
#==============================================================================
5f52bf
# ---- Build policy macros.
5f52bf
#
5f52bf
#
5f52bf
#---------------------------------------------------------------------
5f52bf
#	Expanded at beginning of %install scriptlet.
5f52bf
#
5f52bf
%__spec_install_pre %{___build_pre}\
5f52bf
    [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
5f52bf
    mkdir -p `dirname "$RPM_BUILD_ROOT"`\
5f52bf
    mkdir "$RPM_BUILD_ROOT"\
5f52bf
%{nil}
5f52bf
5f52bf
5f52bf
#---------------------------------------------------------------------
5f52bf
#	RPM package build settings
5f52bf
#
5f52bf
38744b
# Ensure SOURCE_DATE_EPOCH is set based on changelog for reproducible builds
38744b
%source_date_epoch_from_changelog	1
38744b
38744b
# Automatically trim changelog entries after 2 years
38744b
%_changelog_trimtime	%{lua:print(os.time() - 2 * 365 * 86400)}
38744b
38744b
# Use SHA-256 for FILEDIGESTS instead of default MD5
38744b
%_source_filedigest_algorithm	8
38744b
%_binary_filedigest_algorithm	8
38744b
5f52bf
# We want to use zstd payloads by default
5f52bf
%_source_payload	w9.zstdio
5f52bf
%_binary_payload	w9.zstdio
5f52bf