SILENT KILLERPanel

Current Path: > > lib > > rpm > macros.d


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib//rpm/macros.d

NameTypeSizeLast ModifiedActions
macros.alt-python310 File 2057 bytes June 18 2025 15:55:30.
macros.alt-python311 File 2082 bytes June 23 2025 15:48:07.
macros.alt-python312 File 2062 bytes June 23 2025 14:00:29.
macros.alt-python313 File 2062 bytes June 23 2025 14:39:34.
macros.alt-python38 File 2022 bytes September 23 2024 11:26:27.
macros.alt-python39 File 2025 bytes June 19 2025 12:11:17.
macros.dwz File 1806 bytes May 15 2023 14:30:31.
macros.efi-srpm File 3075 bytes November 23 2021 22:32:36.
macros.environment-modules File 75 bytes July 30 2020 12:13:34.
macros.fedora-misc File 2829 bytes May 15 2023 14:30:31.
macros.fedora-misc-srpm File 239 bytes May 15 2023 14:30:31.
macros.firewalld File 239 bytes March 11 2025 09:51:08.
macros.forge File 12733 bytes May 15 2023 14:30:31.
macros.ghc-srpm File 414 bytes August 12 2018 10:37:49.
macros.go-srpm File 7342 bytes April 08 2021 14:45:20.
macros.info File 390 bytes April 18 2022 17:09:26.
macros.kernel-srpm File 116 bytes May 15 2023 14:30:31.
macros.ldc-srpm File 73 bytes May 15 2023 14:30:31.
macros.ldconfig File 307 bytes May 15 2023 14:30:31.
macros.mono-srpm File 181 bytes May 15 2023 14:30:31.
macros.nodejs-srpm File 324 bytes May 15 2023 14:30:31.
macros.ocaml-srpm File 737 bytes October 14 2019 08:31:03.
macros.openblas-srpm File 104 bytes October 16 2019 20:47:30.
macros.perl File 5184 bytes July 28 2025 08:01:58.
macros.perl-srpm File 794 bytes October 13 2019 14:18:38.
macros.pybytecompile File 886 bytes May 16 2023 12:55:39.
macros.python File 3439 bytes May 16 2023 12:55:39.
macros.python-srpm File 6093 bytes May 16 2023 12:55:39.
macros.python2 File 1863 bytes April 21 2022 15:26:14.
macros.python3 File 3714 bytes May 16 2023 12:55:39.
macros.qt5-qtbase File 78 bytes July 18 2024 17:55:35.
macros.ruby File 1001 bytes June 06 2023 14:55:54.
macros.rust-srpm File 61 bytes January 08 2018 19:15:07.
macros.scl File 13857 bytes April 01 2023 16:10:31.
macros.selinux-policy File 6766 bytes December 17 2024 04:10:18.
macros.systemd File 4126 bytes April 22 2025 01:58:19.
macros.systemtap File 206 bytes October 14 2023 13:06:48.
macros.valgrind-srpm File 127 bytes May 15 2023 14:30:31.
macros.vim File 40 bytes August 02 2022 16:44:39.
macros.vpath File 228 bytes May 15 2023 14:30:31.

Reading File: //lib//rpm/macros.d/macros.perl

# Sensible Perl-specific RPM build macros.
#
# Note that these depend on the generic filtering system being in place in
# rpm core; but won't cause a build to fail if they're not present.
#
# Chris Weyl <cweyl@alumni.drew.edu> 2009
# Marcela Mašláňová <mmaslano@redhat.com> 2011

# This macro unsets several common vars used to control how Makefile.PL (et
# al) build and install packages.  We also set a couple to help some of the
# common systems be less interactive.  This was blatantly stolen from
# cpanminus, and helps building rpms locally when one makes extensive use of
# local::lib, etc.
#
# Usage, in %build, before "%{__perl} Makefile.PL ..."
#
#   %{?perl_ext_env_unset}

%perl_ext_env_unset %{expand:
unset PERL_MM_OPT MODULEBUILDRC PERL5INC
export PERL_AUTOINSTALL="--defaultdeps"
export PERL_MM_USE_DEFAULT=1
}

#############################################################################
# Filtering macro incantations

# keep track of what "revision" of the filtering we're at.  Each time we
# change the filter we should increment this.

%perl_default_filter_revision 3

# By default, for perl packages we want to filter all files in _docdir from 
# req/prov scanning.
# Filtering out any provides caused by private libs in vendorarch/archlib
# (vendor/core) is done by rpmbuild since Fedora 20
# <https://fedorahosted.org/fpc/ticket/353>.
#
# Note that this must be invoked in the spec file, preferably as 
# "%{?perl_default_filter}", before any %description block.

%perl_default_filter %{expand: \
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\\\(VMS|^perl\\\\(Win32|^perl\\\\(DB\\\\)|^perl\\\\(UNIVERSAL\\\\)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\\\(VMS|^perl\\\\(Win32
}

#############################################################################
# Macros to assist with generating a "-tests" subpackage in a semi-automatic
# manner.
#
# The following macros are still in a highly experimental stage and users
# should be aware that the interface and behaviour may change. 
#
# PLEASE, PLEASE CONDITIONALIZE THESE MACROS IF YOU USE THEM.
#
# See http://gist.github.com/284409

# These macros should be invoked as above, right before the first %description
# section, and conditionalized.  e.g., for the common case where all our tests
# are located under t/, the correct usage is:
#
#   %{?perl_default_subpackage_tests}
#
# If custom files/directories need to be specified, this can be done as such:
#
#   %{?perl_subpackage_tests:%perl_subpackage_tests t/ one/ three.sql}
#
# etc, etc.

%perl_version   %(eval "`%{__perl} -V:version`"; echo $version)
%perl_testdir   %{_libexecdir}/perl5-tests
%cpan_dist_name %(eval echo %{name} | %{__sed} -e 's/^perl-//')

# easily mark something as required by -tests and BR to the main package
%tests_req() %{expand:\
BuildRequires: %*\
%%tests_subpackage_requires %*\
}

# fixup (and create if needed) the shbang lines in tests, so they work and
# rpmlint doesn't (correctly) have a fit
%fix_shbang_line() \
TMPHEAD=`mktemp`\
TMPBODY=`mktemp`\
for file in %* ; do \
    head -1 $file > $TMPHEAD\
    tail -n +2 $file > $TMPBODY\
    %{__perl} -pi -e '$f = /^#!/ ? "" : "#!%{__perl}$/"; $_="$f$_"' $TMPHEAD\
    cat $TMPHEAD $TMPBODY > $file\
done\
%{__perl} -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(qw{%*})"\
%{__rm} $TMPHEAD $TMPBODY\
%{nil}

# additional -tests subpackage requires, if any
%tests_subpackage_requires() %{expand: \
%global __tests_spkg_req %{?__tests_spkg_req} %* \
}

# additional -tests subpackage provides, if any
%tests_subpackage_provides() %{expand: \
%global __tests_spkg_prov %{?__tests_spkg_prov} %* \
}

#
# Runs after the body of %check completes.
#

%__perl_check_pre %{expand: \
%{?__spec_check_pre} \
pushd %{buildsubdir} \
%define perl_br_testdir %{buildroot}%{perl_testdir}/%{cpan_dist_name} \
%{__mkdir_p} %{perl_br_testdir} \
%{__tar} -cf - %{__perl_test_dirs} | ( cd %{perl_br_testdir} && %{__tar} -xf - ) \
find . -maxdepth 1 -type f -name '*META*' -exec %{__cp} -vp {} %{perl_br_testdir} ';' \
find %{perl_br_testdir} -type f -exec %{__chmod} -c -x {} ';' \
T_FILES=`find %{perl_br_testdir} -type f -name '*.t'` \
%fix_shbang_line $T_FILES \
%{__chmod} +x $T_FILES \
%{_fixperms} %{perl_br_testdir} \
popd \
}

#
# The actual invoked macro
#

%perl_subpackage_tests() %{expand: \
%global __perl_package 1\
%global __perl_test_dirs %* \
%global __spec_check_pre %{expand:%{__perl_check_pre}} \
%package tests\
Summary: Test suite for package %{name}\
Group: Development/Debug\
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}\
Requires: /usr/bin/prove \
%{?__tests_spkg_req:Requires: %__tests_spkg_req}\
%{?__tests_spkg_prov:Provides: %__tests_spkg_prov}\
AutoReqProv: 0 \
%description tests\
This package provides the test suite for package %{name}.\
%files tests\
%defattr(-,root,root,-)\
%{perl_testdir}\
}

# shortcut sugar
%perl_default_subpackage_tests %perl_subpackage_tests t/


SILENT KILLER Tool