%arm64_with_neon aarch64
%arm_with_neon %{arm32_with_neon} %{arm64_with_neon}
-%arch32 %{ix86} %{arm32} ppc sparc sparcv9
-%arch64 %{x8664} %{arm64} ppc64 sparc64
+%arch32 %{ix86} %{arm32} mips ppc s390 sparc sparcv9
+%arch64 %{x8664} %{arm64} alpha mips64 ppc64 s390x sparc64
# architectures with support for 8-byte (64 bits) atomics
%arch_with_atomics64 i586 i686 athlon pentium2 pentium3 pentium4 %{x8664} x32 %{armv7} %{armv8} aarch64 mips64 ppc64 sparcv9 sparc64
%build_kernel_packages %(echo %{_build_kernels} | tr , '\\n' | while read n ; do \
echo %%undefine alt_kernel \
[ -z "$n" -o "$n" = "head" ] || echo %%define alt_kernel $n \
+echo "echo \"Building modules for kernel %%{_kernel_ver}\"" \
echo %%build_kernel_pkg \
done)
%install_kernel_packages %(echo %{_build_kernels} | tr , '\\n' | while read n ; do \
echo %%undefine alt_kernel \
[ -z "$n" -o "$n" = "head" ] || echo %%define alt_kernel $n \
+echo "echo \"Installing modules for kernel %%{_kernel_ver}\"" \
echo %%install_kernel_pkg \
done)
%_kernel_arch \\\
%ifarch aarch64\
-arm64\
+arm64\\\
%endif\
%ifarch ppc ppc64\
powerpc\\\
cat %{-z:$_N/}.install.log | %__pear_install_log \
%undos -f php,html,js,xml \
%{!?_noautocompressdoc:%global _noautocompressdoc %{nil}}%{expand:%%global _noautocompressdoc %{_noautocompressdoc} optional-packages.txt} \
-%{!?_noautoprov:%global _noautoprov %{nil}}%{expand:%%global _noautoprov %{_noautoprov} 'pear(tests/.*)'} \
+%{!?_noautoprov:%global _noautoprov %{nil}}%{expand:%%global _noautoprov %{_noautoprov} 'pear\\\\(tests/.*\\\\)'} \
%{nil}
# Copies extracted PEAR package structure and PEAR registry to buildroot.
%py_dyndir %{py_libdir}/lib-dynload
# pure python modules compilation
-%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_comp %{__python} -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
-%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_ocomp %{__python} -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
# Software written in Python language require Python with main version
%pyrequires_eq() Requires: %1
%py_lint() \
__py_lint() { \
%{!?debug:set +x;} \
-find "$@" -type f -name '*.py' | python -c ' \
+find "$@" -type f -name '*.py' | %{__python} -c ' \
import sys \
import compiler \
\
-%define rpm_macros_rev 2.030
+%define rpm_macros_rev 2.035
%define find_lang_rev 1.42
# split into individual X_prov_ver if there is a reason to desync
%define prov_ver 4.15
Source56: macros.arch
Source57: macros.go
Source58: macros.qt
-
+Source59: macros.erlang
Source60: macros.gstreamer
Source61: attr.gstreamer
# redefine to bootstrap
%define _usrlibrpm %{_prefix}/lib/rpm
+# don't generate pear reqs for optional deps
+%define _noautoreq_pear .*
+
%description
This package contains rpm macros for TLD Linux.
Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
Group: Applications/File
+# The scripts are in perl
+Requires: perl-base
Requires: %{name}-build = %{version}-%{release}
Requires: sed >= 4.0
+# Alternate req script in PHP
Suggests: php-pear-PHP_CompatInfo
Provides: rpm-php-pearprov = %{prov_ver}
Obsoletes: rpm-php-pearprov
cp -p %{SOURCE56} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.arch
cp -p %{SOURCE57} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.go
cp -p %{SOURCE58} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.qt
-
+cp -p %{SOURCE59} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.erlang
cp -p %{SOURCE60} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.gstreamer
cp -p %{SOURCE61} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/gstreamer.attr
cp -p %{SOURCE63} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/mono.attr
%{_usrlibrpm}/macros.d/macros.browser-plugins
%{_usrlibrpm}/macros.d/macros.cacti
%{_usrlibrpm}/macros.d/macros.emacs
+%{_usrlibrpm}/macros.d/macros.erlang
%{_usrlibrpm}/macros.d/macros.ghc
%{_usrlibrpm}/macros.d/macros.go
%{_usrlibrpm}/macros.d/macros.gstreamer