[packages/rpm-pld-macros] - big cleanup of the main macros - removed macros identical with upstream - added new hotness for bu

Jakub Bogusz qboosh at pld-linux.org
Wed Feb 5 19:39:12 CET 2025


On Wed, Feb 05, 2025 at 02:04:02AM +0100, baggins wrote:
>  
> -%configure {./configure \
> -	LDFLAGS="${LDFLAGS:-%rpmldflags}" \
> -	CFLAGS="${CFLAGS:-%rpmcflags}" \
> -	CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \
> -	FFLAGS="${FFLAGS:-%rpmcflags}" \
> -	FCFLAGS="${FCFLAGS:-%rpmcflags}" \
> -	CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
> -	%{?__cc:CC="%{__cc}"} \
> -	%{?__cxx:CXX="%{__cxx}"} \
> +%configure { \
> +  %{set_build_flags}; \
> +  ./configure \
>  	--host=%{_target_platform} \
>  	--build=%{_target_platform} \
>  	--prefix=%{_prefix} \


This change breaks invocation like:

bash %configure

if given configure is too bashish (now shebang change would be
required) - e.g. which.spec


BTW: please remember to bump macros BRs when switching specs to new
macros (>= 2.042, so bumping meson/ninja is not requred).


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list