%bcond_with static # build static rpmi (not supported at the moment)
%bcond_without doc # don't generate documentation with doxygen
%bcond_without python # don't build python bindings
%bcond_with static # build static rpmi (not supported at the moment)
%bcond_without doc # don't generate documentation with doxygen
%bcond_without python # don't build python bindings
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
Summary: RPM Package Manager
Summary(de): RPM Packet-Manager
Summary(es): Gestor de paquetes RPM
Summary: RPM Package Manager
Summary(de): RPM Packet-Manager
Summary(es): Gestor de paquetes RPM
Patch39: %{name}-pentiumX.patch
Patch40: %{name}-epoch0.patch
Patch41: %{name}-file-readelf-fix.patch
Patch39: %{name}-pentiumX.patch
Patch40: %{name}-epoch0.patch
Patch41: %{name}-file-readelf-fix.patch
BuildRequires: gettext-devel >= 0.11.4-2
BuildRequires: elfutils-devel
#BuildRequires: libmagic-devel
BuildRequires: gettext-devel >= 0.11.4-2
BuildRequires: elfutils-devel
#BuildRequires: libmagic-devel
BuildRequires: glibc-static >= 2.2.94
BuildRequires: elfutils-static
#BuildRequires: libmagic-static
BuildRequires: glibc-static >= 2.2.94
BuildRequires: elfutils-static
#BuildRequires: libmagic-static
-echo '%%define __perl_provides /usr/lib/rpm/perl.prov' > macros.perl
-echo '%%define __perl_requires /usr/lib/rpm/perl.req' >> macros.perl
+echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
+echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
echo '# obsoleted file' > macros.python
echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
echo '# obsoleted file' > macros.python
echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
%{?with_doc:--with-apidocs} \
%{?with_python:--with-python=auto} \
%{!?with_python:--without-python} \
%{?with_doc:--with-apidocs} \
%{?with_python:--with-python=auto} \
%{!?with_python:--without-python} \
#
# remove or replace with file_contexts path if you want to use custom
# SELinux file contexts policy instead of one stored in packages payload
#
# remove or replace with file_contexts path if you want to use custom
# SELinux file contexts policy instead of one stored in packages payload