芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/views/rpm.zip
PK rYJHQ macros.rubygems.ea-ruby24nu [ # The RubyGems root folder. %gem_dir %{_datadir}/gems %gem_archdir %{_libdir}/gems # Common gem locations and files. %gem_instdir %{gem_dir}/gems/%{gem_name}-%{version} %gem_extdir_mri %{gem_archdir}/ruby/%{gem_name}-%{version} %gem_libdir %{gem_instdir}/lib %gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem %gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec %gem_docdir %{gem_dir}/doc/%{gem_name}-%{version} # Install gem into appropriate directory. # -n
Overrides gem file name for installation. # -d
Set installation directory. %gem_install(d:n:) \ mkdir -p %{-d*}%{!?-d:.%{gem_dir}} \ \ CONFIGURE_ARGS="--with-cflags='%{optflags}' $CONFIGURE_ARGS" \\\ gem install \\\ -V \\\ --local \\\ --build-root %{-d*}%{!?-d:.} \\\ --force \\\ --document=ri,rdoc \\\ %{-n*}%{!?-n:%{gem_name}-%{version}.gem} \ %{nil} # For rubygems packages we want to filter out any provides caused by private # libs in %%{gem_archdir}. # # Note that this must be invoked in the spec file, preferably as # "%{?rubygems_default_filter}", before any %description block. %rubygems_default_filter %{expand: \ %global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^%{gem_extdir_mri}/.*\\\\.so$ \ } PK rYd5 macros.perl-srpmnu [ # Copyright (c) 2012 Petr Pisar
. # This file is distributed under the terms of GNU GPL license version 3, or # any later version. # This file contains macros that can be used for building source RPM package # from git source repository. This file must present in minimal build root to # take effect. # This file must not use Perl or any non-minimal-build-root package. The # purpose is to enable bootstrapping perl. # Perl bootstrap For rebuild of Perl and all related packages is needed # switch, which enable only vital build requires. This could help cyclic # dependencies, for example: perl-Test-Minimum-Version <-> # perl-Perl-Minimum-Version Defined for bootstraping, undefined otherwise. # Usage: %%if !%%{defined perl_bootstrap} ... %%endif #%%perl_bootstrap 1 PK rY,Ӵ macros.ea-php72-phpnu [ # # Interface versions exposed by PHP: # %ea_php72_php_core_api 20170718-64 %ea_php72_php_zend_api 20170718-64 %ea_php72_php_pdo_api 20170320-64 %ea_php72_php_version 7.2.34 %ea_php72_php_extdir /opt/cpanel/ea-php72/root/usr/lib64/php/modules %ea_php72_php_inidir /opt/cpanel/ea-php72/root/etc/php.d %ea_php72_php_incldir /opt/cpanel/ea-php72/root/usr/include/php %ea_php72___php /opt/cpanel/ea-php72/root/usr/bin/php PK rY>U` macros.apache2nu [ %_httpd_mmn 20120211x8664 %_httpd_apxs /usr/bin/apxs %_httpd_dir /etc/apache2 %_httpd_bindir %{_httpd_dir}/bin %_httpd_modconfdir %{_httpd_dir}/conf.modules.d %_httpd_confdir %{_httpd_dir}/conf.d %_httpd_contentdir /usr/share/apache2 %_httpd_moddir /usr/lib64/apache2/modules PK rYůU macros.perlnu [ # 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
2009 # Marcela Mašláňová
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 # Perl provides/requeries are generated by external generators. %global __perl_provides /usr/lib/rpm/perl.prov %global __perl_requires /usr/lib/rpm/perl.req # By default, for perl packages we want to filter all files in _docdir from # req/prov scanning, as well as filtering out any provides caused by private # libs in vendorarch/archlib (vendor/core). # # 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 %{perl_vendorarch}/auto/.*\\\\.so$|%{perl_archlib}/.*\\\\.so$|%{_docdir} %global __requires_exclude_from %{_docdir} %global __provides_exclude perl\\\\(VMS|perl\\\\(Win32|perl\\\\(DB\\\\)|perl\\\\(UNIVERSAL\\\\) %global __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/ PK rY亩R macros.nodejs-srpmnu [ # nodejs_arches lists what arches Node.js and dependent packages run on. # # Enabling Node.js on other arches requires porting the V8 JavaScript JIT to # those arches. %nodejs_arches %{ix86} x86_64 %{arm} aarch64 ppc64le s390x PK rY macros.ruby.ea-ruby24nu [ %ruby_libdir %{_datadir}/%{pkg_name} %ruby_libarchdir %{_libdir}/%{pkg_name} # This is the local lib/arch and should not be used for packaging. %ruby_sitedir site_ruby %ruby_sitelibdir %{_prefix}/local/share/%{pkg_name}/%{ruby_sitedir} %ruby_sitearchdir %{_prefix}/local/%{_lib}/%{pkg_name}/%{ruby_sitedir} # This is the general location for libs/archs compatible with all # or most of the Ruby versions available in the Fedora repositories. %ruby_vendordir vendor_ruby %ruby_vendorlibdir %{ruby_libdir}/%{ruby_vendordir} %ruby_vendorarchdir %{ruby_libarchdir}/%{ruby_vendordir} # For ruby packages we want to filter out any provides caused by private # libs in %%{ruby_vendorarchdir}/%%{ruby_sitearchdir}. # # Note that this must be invoked in the spec file, preferably as # "%{?ruby_default_filter}", before any %description block. %ruby_default_filter %{expand: \ %global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^(%{ruby_vendorarchdir}|%{ruby_sitearchdir})/.*\\\\.so$ \ } PK rYשy y macros.mono-srpmnu [ # arches that mono builds on %mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} aarch64 alpha s390x ppc ppc64 ppc64le PK rY* macros.dwznu [ # Macros for reducing debug info size using dwz(1) utility. # The two default values below should result in dwz taking at most # 3GB of RAM or so on 64-bit hosts and 2.5GB on 32-bit hosts # on the largest *.debug files (in mid 2012 those are # libreoffice-debuginfo, debuginfos containing # libxul.so.debug and libwebkitgtk-*.so.*.debug). # This needs to be tuned based on the amount of available RAM # on build boxes for each architecture as well as virtual address # space limitations if dwz is 32-bit program. While it needs less # memory than 64-bit program because pointers are smaller, it can # never have more than 4GB-epsilon of RAM and on some architecture # even less than that (e.g. 2GB). # Number of debugging information entries (DIEs) above which # dwz will stop considering file for multifile optimizations # and enter a low memory mode, in which it will optimize # in about half the memory needed otherwise. %_dwz_low_mem_die_limit 10000000 # Number of DIEs above which dwz will stop processing # a file altogether. %_dwz_max_die_limit 50000000 # On x86_64 increase the higher limit to make libwebkit* optimizable. # libwebkit* in mid 2012 contains roughly 87mil DIEs, and 64-bit # dwz is able to optimize it from ~1.1GB to ~410MB using 5.2GB of RAM. %_dwz_max_die_limit_x86_64 110000000 # On ARM, build boxes often have only 512MB of RAM and are very slow. # Lower both the limits. %_dwz_low_mem_die_limit_armv5tel 4000000 %_dwz_low_mem_die_limit_armv7hl 4000000 %_dwz_max_die_limit_armv5tel 10000000 %_dwz_max_die_limit_armv7hl 10000000 %_dwz_limit() %{expand:%%{?%{1}_%{_arch}}%%{!?%{1}_%{_arch}:%%%{1}}} %_find_debuginfo_dwz_opts --run-dwz\\\ --dwz-low-mem-die-limit %{_dwz_limit _dwz_low_mem_die_limit}\\\ --dwz-max-die-limit %{_dwz_limit _dwz_max_die_limit} PK rY`E macros.ea-php73-phpnu [ # # Interface versions exposed by PHP: # %ea_php73_php_core_api 20180731-64 %ea_php73_php_zend_api 20180731-64 %ea_php73_php_pdo_api 20170320-64 %ea_php73_php_version 7.3.33 %ea_php73_php_extdir /opt/cpanel/ea-php73/root/usr/lib64/php/modules %ea_php73_php_inidir /opt/cpanel/ea-php73/root/etc/php.d %ea_php73_php_incldir /opt/cpanel/ea-php73/root/usr/include/php %ea_php73___php /opt/cpanel/ea-php73/root/usr/bin/php PK rY1 macros.ea-php56-confignu [ %scl ea-php56 %undefine nfsmountable %scl_package_override() %{expand: %{?ea_php56___pear:%global __pear %ea_php56___pear} %{?ea_php56___pecl:%global __pecl %ea_php56___pecl} %{?ea_php56___php:%global __php %ea_php56___php} %global pear_metadir %ea_php56_pear_metadir %global pear_xmldir %ea_php56_pear_xmldir %global pecl_xmldir %ea_php56_pecl_xmldir %global php_core_api %ea_php56_php_core_api %global php_zend_api %ea_php56_php_zend_api %global php_pdo_api %ea_php56_php_pdo_api %global php_version %ea_php56_php_version %global php_extdir %ea_php56_php_extdir %global php_inidir %ea_php56_php_inidir %global php_incldir %ea_php56_php_incldir %global php_version 5.6 } PK rYpr macros.gnat-srpmnu [ # GNAT_arches lists the architectures where GNAT is available in Fedora. Ada # packages won't build on other architectures until GNAT is bootstrapped for # them. %GNAT_arches %{ix86} x86_64 ia64 ppc ppc64 ppc64le alpha aarch64 PK rY90 0 macros.ruby-scldevelnu [ %scl_ruby ea-ruby24 %scl_prefix_ruby ea-ruby24- PK rY̴ macros.ea-php74-phpnu [ # # Interface versions exposed by PHP: # %ea_php74_php_core_api 20190902-64 %ea_php74_php_zend_api 20190902-64 %ea_php74_php_pdo_api 20170320-64 %ea_php74_php_version 7.4.33 %ea_php74_php_extdir /opt/cpanel/ea-php74/root/usr/lib64/php/modules %ea_php74_php_inidir /opt/cpanel/ea-php74/root/etc/php.d %ea_php74_php_incldir /opt/cpanel/ea-php74/root/usr/include/php %ea_php74___php /opt/cpanel/ea-php74/root/usr/bin/php PK rYCe macros.python2nu [ %__python2 /usr/bin/python2 %python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") %python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %python2_version %(%{__python2} -c "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))") %python2_version_nodots %(%{__python2} -c "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))") %py2_shbang_opts -s # Use the slashes after expand so that the command starts on the same line as # the macro %py2_build() %{expand:\\\ CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*} sleep 1 } %py2_build_egg() %{expand:\\\ CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_egg %{?*} sleep 1 } %py2_build_wheel() %{expand:\\\ CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} sleep 1 } %py2_install() %{expand:\\\ CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} } %py2_install_egg() %{expand:\\\ mkdir -p %{buildroot}%{python2_sitelib} easy_install-%{python2_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python2_version}.egg %{?*} } %py2_install_wheel() %{expand:\\\ pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps } PK rYrs s macros.ocaml-srpmnu [ # arches that ocaml runs on %ocaml_arches aarch64 alpha %{arm} %{ix86} ia64 x86_64 ppc ppc64 ppc64le sparc sparcv9 PK rY macros.python-srpmnu [ # python3_pkgversion specifies the version of Python 3 in the distro. It can be # a specific version (e.g. 34 in Fedora EPEL7) %python3_pkgversion 3 # Set to /bin/true to avoid %ifdefs and %{? in specfiles %__python3_other /bin/true %py3_other_build /bin/true %py3_other_install /bin/true # === Macros for Build/Requires tags using Python dist tags === # - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages # - These macros need to be in macros.python-srpm, because BuildRequires tags # get rendered as runtime requires into the metadata of SRPMs. # Converts Python dist name to a canonical format %py_dist_name() %{lua:\ name = rpm.expand("%{?1:%{1}}");\ canonical = string.gsub(string.lower(name), "[^%w%.]+", "-");\ print(canonical);\ } # Creates Python 2 dist tag(s) after converting names to canonical format # Needs to first put all arguments into a list, because invoking a different # macro (%py_dist_name) overwrites them %py2_dist() %{lua:\ args = {}\ arg = 1\ while (true) do\ name = rpm.expand("%{?" .. arg .. ":%{" .. arg .. "}}");\ if (name == nil or name == '') then\ break\ end\ args[arg] = name\ arg = arg + 1\ end\ for arg, name in ipairs(args) do\ canonical = rpm.expand("%py_dist_name " .. name);\ print("python2dist(" .. canonical .. ") ");\ end\ } # Creates Python 3 dist tag(s) after converting names to canonical format # Needs to first put all arguments into a list, because invoking a different # macro (%py_dist_name) overwrites them %py3_dist() %{lua:\ args = {}\ arg = 1\ while (true) do\ name = rpm.expand("%{?" .. arg .. ":%{" .. arg .. "}}");\ if (name == nil or name == '') then\ break\ end\ args[arg] = name\ arg = arg + 1\ end\ for arg, name in ipairs(args) do\ canonical = rpm.expand("%py_dist_name " .. name);\ python3_version = rpm.expand("%python3_version");\ print("python" .. python3_version .. "dist(" .. canonical .. ") ");\ end\ } # Macro to replace overly complicated references to PyPI source files. # Expands to the pythonhosted URL for a package # Accepts zero to three arguments: # 1: The PyPI project name, defaulting to %srcname if it is defined, then # %pypi_name if it is defined, then just %name. # 2: The PYPI version, defaulting to %version. # 3: The file extension, defaulting to "tar.gz". (A period will be added # automatically.) # Requires %__pypi_url and %__pypi_default_extension to be defined. %__pypi_url https://files.pythonhosted.org/packages/source/ %__pypi_default_extension tar.gz %pypi_source() %{lua: local src = rpm.expand('%1') local ver = rpm.expand('%2') local ext = rpm.expand('%3') local url = rpm.expand('%__pypi_url') \ -- If no first argument, try %srcname, then %pypi_name, then %name -- Note that rpm leaves macros unchanged if they are not defined. if src == '%1' then src = rpm.expand('%srcname') end if src == '%srcname' then src = rpm.expand('%pypi_name') end if src == '%pypi_name' then src = rpm.expand('%name') end \ -- If no second argument, use %version if ver == '%2' then ver = rpm.expand('%version') end \ -- If no third argument, use the preset default extension if ext == '%3' then ext = rpm.expand('%__pypi_default_extension') end \ local first = string.sub(src, 1, 1) \ print(url .. first .. '/' .. src .. '/' .. src .. '-' .. ver .. '.' .. ext) } PK rYz macros.ea-php56-phpnu [ # # Interface versions exposed by PHP: # %ea_php56_php_core_api 20131106-64 %ea_php56_php_zend_api 20131226-64 %ea_php56_php_pdo_api 20080721-64 %ea_php56_php_version 5.6.40 %ea_php56_php_extdir /opt/cpanel/ea-php56/root/usr/lib64/php/modules %ea_php56_php_inidir /opt/cpanel/ea-php56/root/etc/php.d %ea_php56_php_incldir /opt/cpanel/ea-php56/root/usr/include/php %ea_php56___php /opt/cpanel/ea-php56/root/usr/bin/php PK rYo|m macros.ea-php71-phpnu [ # # Interface versions exposed by PHP: # %ea_php71_php_core_api 20160303-64 %ea_php71_php_zend_api 20160303-64 %ea_php71_php_pdo_api 20150127-64 %ea_php71_php_version 7.1.33 %ea_php71_php_extdir /opt/cpanel/ea-php71/root/usr/lib64/php/modules %ea_php71_php_inidir /opt/cpanel/ea-php71/root/etc/php.d %ea_php71_php_incldir /opt/cpanel/ea-php71/root/usr/include/php %ea_php71___php /opt/cpanel/ea-php71/root/usr/bin/php PK rYHNe2 2 macros.sclnu [ # scl-utils RPM macros # # Copyright (C) 2012 Red Hat, Inc. # Written by Jindrich Novy
. %scl_debug() %{expand: %define old_debug %{lua:print(rpm.expand("%{debug_package}"):len())} %global debug_package %{expand: %if "%{?old_debug}" == "0" %{expand: %{nil}} %else %if "%{?scl}%{!?scl:0}" == "%{pkg_name}" %{expand: %{nil}} %else %ifnarch noarch %package debuginfo Summary: Debug information for package %{name} Group: Development/Debug AutoReqProv: 0 Requires: %scl_runtime Provides: scl-package(%scl) %{lua: debuginfo=tonumber(rpm.expand("%{old_debug}")) if debuginfo > 0 then rpm.define("__debug_package 1") end } %description debuginfo This package provides debug information for package %{name}. Debug information is useful when developing applications that use this package or when debugging this package. %files debuginfo -f debugfiles.list %defattr(-,root,root) %endif %endif %endif %{nil}}} %scl_package() %{expand:%{!?_root_prefix: %global pkg_name %1 %global scl_name %{scl} %global scl_prefix %{scl}- %global scl_runtime %{scl}-runtime %{!?_scl_prefix: %global _scl_prefix /opt/rh} %global _scl_scripts %{_scl_prefix}/%{scl} %global _scl_root %{_scl_prefix}/%{scl}/root %global _root_prefix %{_prefix} %global _root_exec_prefix %{_root_prefix} %global _root_bindir %{_exec_prefix}/bin %global _root_sbindir %{_exec_prefix}/sbin %global _root_libexecdir %{_exec_prefix}/libexec %global _root_datadir %{_prefix}/share %global _root_sysconfdir %{_sysconfdir} %global _root_sharedstatedir %{_prefix}/com %global _root_localstatedir %{_localstatedir} %global _root_libdir %{_exec_prefix}/%{_lib} %global _root_includedir %{_prefix}/include %global _root_infodir %{_datadir}/info %global _root_mandir %{_datadir}/man %global _root_initddir %{_sysconfdir}/rc.d/init.d %global _prefix %{_scl_root}/usr %global _exec_prefix %{_prefix} %global _bindir %{_exec_prefix}/bin %global _sbindir %{_exec_prefix}/sbin %global _libexecdir %{_exec_prefix}/libexec %global _datadir %{_prefix}/share %global _sysconfdir %{_scl_root}/etc %{?nfsmountable: %global _sysconfdir %{_root_sysconfdir}%{_scl_prefix}/%{scl}} %global _sharedstatedir %{_scl_root}/var/lib %{?nfsmountable: %global _sharedstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}/lib} %global _localstatedir %{_scl_root}/var %{?nfsmountable: %global _localstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}} %global _libdir %{_exec_prefix}/%{_lib} %global _includedir %{_prefix}/include %global _infodir %{_datadir}/info %global _mandir %{_datadir}/man %global _docdir %{_datadir}/doc %global _defaultdocdir %{_docdir} } %{?scl_dependency_generators:%scl_dependency_generators} %global scl_pkg_name %{scl}-%{pkg_name} %scl_debug %global __os_install_post %{expand: /usr/lib/rpm/brp-scl-compress %{_scl_root} %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip} /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} } /usr/lib/rpm/brp-strip-static-archive %{__strip} /usr/lib/rpm/brp-scl-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build} %{_scl_root} /usr/lib/rpm/brp-python-hardlink %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} %{nil}} BuildRequires: scl-utils-build %if "%{?scl}%{!?scl:0}" == "%{pkg_name}" Requires: %{scl_runtime} Provides: scl-package(%{scl}) %endif %{?scl_package_override:%scl_package_override} } %scl_require() %{_scl_prefix}/%1/enable, %1 %scl_require_package() %1-%2 %scl_files %{expand: %defattr(-,root,root,-) %dir %_scl_prefix %dir %attr(555,root,root) %{_scl_root} %dir %attr(555,root,root) %{_scl_scripts} %{_scl_scripts}/enable %{_root_sysconfdir}/scl/prefixes/%scl %{_scl_root}/bin %attr(555,root,root) %{_scl_root}/boot %{_scl_root}/dev %dir %{_sysconfdir} %{_sysconfdir}/X11 %{_sysconfdir}/xdg %{_sysconfdir}/opt %{_sysconfdir}/pm %{_sysconfdir}/xinetd.d %{_sysconfdir}/skel %{_sysconfdir}/sysconfig %{_sysconfdir}/pki %{_scl_root}/home %{_scl_root}/lib %ifarch x86_64 ppc ppc64 ppc64le aarch64 sparc sparc64 s390 s390x %{_scl_root}/%{_lib} %endif %{_scl_root}/media %dir %{_scl_root}/mnt %dir %{_scl_root}/opt %attr(555,root,root) %{_scl_root}/proc %attr(550,root,root) %{_scl_root}/root %{_scl_root}/run %{_scl_root}/sbin %{_scl_root}/srv %{_scl_root}/sys %attr(1777,root,root) %{_scl_root}/tmp %dir %{_scl_root}/usr %attr(555,root,root) %{_scl_root}/usr/bin %{_scl_root}/usr/etc %{_scl_root}/usr/games %{_scl_root}/usr/include %dir %attr(555,root,root) %{_scl_root}/usr/lib %ifarch x86_64 ppc ppc64 ppc64le aarch64 sparc sparc64 s390 s390x %attr(555,root,root) %{_scl_root}/usr/%{_lib} %endif %{_scl_root}/usr/libexec %{_scl_root}/usr/local %attr(555,root,root) %{_scl_root}/usr/sbin %dir %{_scl_root}/usr/share %{_scl_root}/usr/share/aclocal %{_scl_root}/usr/share/applications %{_scl_root}/usr/share/augeas %{_scl_root}/usr/share/backgrounds %{_scl_root}/usr/share/desktop-directories %{_scl_root}/usr/share/dict %{_scl_root}/usr/share/doc %attr(555,root,root) %dir %{_scl_root}/usr/share/empty %{_scl_root}/usr/share/games %{_scl_root}/usr/share/ghostscript %{_scl_root}/usr/share/gnome %{_scl_root}/usr/share/icons %{_scl_root}/usr/share/idl %{_scl_root}/usr/share/info %dir %{_scl_root}/usr/share/locale %dir %{_scl_root}/usr/share/man %{_scl_root}/usr/share/mime-info %{_scl_root}/usr/share/misc %{_scl_root}/usr/share/omf %{_scl_root}/usr/share/pixmaps %{_scl_root}/usr/share/sounds %{_scl_root}/usr/share/themes %{_scl_root}/usr/share/xsessions %{_scl_root}/usr/share/X11 %{_scl_root}/usr/src %{_scl_root}/usr/tmp %dir %{_localstatedir} %{_localstatedir}/adm %{_localstatedir}/cache %{_localstatedir}/db %{_localstatedir}/empty %{_localstatedir}/games %{_localstatedir}/gopher %{_localstatedir}/lib %{_localstatedir}/local %ghost %dir %attr(755,root,root) %{_localstatedir}/lock %ghost %{_localstatedir}/lock/subsys %{_localstatedir}/log %{_localstatedir}/mail %{_localstatedir}/nis %{_localstatedir}/opt %{_localstatedir}/preserve %ghost %attr(755,root,root) %{_localstatedir}/run %dir %{_localstatedir}/spool %attr(755,root,root) %{_localstatedir}/spool/lpd %attr(775,root,mail) %{_localstatedir}/spool/mail %attr(1777,root,root) %{_localstatedir}/tmp %{_localstatedir}/yp } %scl_install %{expand: # scl specific stuff mkdir -p %{buildroot}%{_root_sysconfdir}/{rpm,scl/prefixes} cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config << EOF %%%%scl %scl %{?nfsmountable:%%%%nfsmountable %{nfsmountable}} %{!?nfsmountable:%%%%undefine nfsmountable} EOF cat >> %{buildroot}%{_root_sysconfdir}/scl/prefixes/%{scl} << EOF %_scl_prefix EOF # filelist set +x cat >> %{buildroot}/lang-exceptions << EOF af_ZA am_ET ast_ES az_IR bg_BG bn_IN ca@valencia ca_ES ca_ES@valencian cs_CZ de_AT de_CH de_DE default el_GR en_AU en_CA en_GB en_US en_NZ es_AR es_CL es_CO es_CR es_DO es_EC es_ES es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE et_EE eu_ES fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR gl_ES he_IL hr_HR hu_HU it_CH it_IT ja_JP ko_KR ks@devanagari lv_LV ms_MY my_MM nb_NO nds_DE nl_BE nl_NL pl_PL pt_BR pt_PT ru_RU sl_SI sq_AL sr_RS sv_SE uk_UA ur_PK zh_CN zh_CN.GB2312 zh_HK zh_TW zh_TW.Big5 en@boldquot en@quot nds@NFE sr@ije sr@ijekavian sr@ijekavianlatin sr@latin sr@Latn uz@cyrillic uz@Latn be@latin en@shaw brx brx_IN EOF cat >> %{buildroot}/iso_639.sed << EOF 1,/
\\)!{ x s/^$// # we are on the first iso-code--nothing to process here t # process and write to output s/\\s\\+/ /g s/
!! # use '%' as a separator of parsed and unparsed input s/\\(.*\\)iso_639_2T_code="\\([^"]\\+\\)"\\(.*\\)/\\2 % \\1 \\3/ s/\\([^%]\\+\\)%\\(.*\\)iso_639_2B_code="\\([^"]\\+\\)"\\(.*\\)/\\1\\t\\3 % \\2 \\4/ # clear subst. memory for the next t t clear :clear s/\\([^%]\\+\\)%\\(.*\\)iso_639_1_code="\\([^"]\\+\\)"\\(.*\\)/\\1\\t\\3 % \\2 \\4/ t name # no 639-1 code--write xx s/%/\\tXX %/ :name s/\\([^%]\\+\\)%\\(.*\\)name="\\([^"]\\+\\)"\\(.*\\)/\\1\\t\\3/ s/ \\t/\\t/g p b :noout } H EOF cat >> %{buildroot}/iso_3166.sed << EOF 1,/
\\)!{ x s/^$// # we are on the first iso-code--nothing to process here t # process and write to output s/\\s\\+/ /g s/
!! # use '%' as a separator of parsed and unparsed input s/\\(.*\\)alpha_2_code="\\([^"]\\+\\)"\\(.*\\)/\\2 % \\1 \\3/ s/\\([^%]\\+\\)%\\(.*\\)alpha_3_code="\\([^"]\\+\\)"\\(.*\\)/\\1% \\2 \\4/ # clear subst. memory for the next t t clear :clear s/\\([^%]\\+\\)%\\(.*\\)numeric_code="\\([^"]\\+\\)"\\(.*\\)/\\1% \\2 \\4/ t name # no 3166 code--write xx s/%/\\tXX %/ :name s/\\([^%]\\+\\)%\\(.*\\)name="\\([^"]\\+\\)"\\(.*\\)/\\1\\t\\3/ s/ \\t/\\t/g p b :noout } H EOF mkdir -p %{buildroot}%{_localstatedir} pushd %{buildroot}%{_localstatedir} mkdir -p {adm,empty,gopher,lib/{games,misc,rpm-state},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp} popd mkdir -p %{buildroot}%{_sysconfdir} pushd %{buildroot}%{_sysconfdir} mkdir -p {X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} popd mkdir -p %{buildroot}%{_scl_root} rm -f $RPM_BUILD_DIR/%{buildsubdir}/filelist rm -f $RPM_BUILD_DIR/%{buildsubdir}/filesystem pushd %{buildroot}%{_scl_root} mkdir -p boot dev \\ home media mnt opt proc root run/lock srv sys tmp \\ usr/{bin,etc,games,include,lib/{games,locale,modules,sse2},libexec,local/{bin,etc,games,lib,sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11},src,src/kernels,src/debug} %ifarch x86_64 ppc ppc64 ppc64le aarch64 sparc sparc64 s390 s390x mkdir -p usr/{%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},local/%{_lib}} %endif ln -snf %{_localstatedir}/tmp usr/tmp ln -snf spool/mail %{buildroot}%{_localstatedir}/mail ln -snf usr/bin bin ln -snf usr/sbin sbin ln -snf usr/lib lib %ifarch x86_64 ppc ppc64 ppc64le aarch64 sparc sparc64 s390 s390x ln -snf usr/%{_lib} %{_lib} %endif sed -n -f %{buildroot}/iso_639.sed /usr/share/xml/iso-codes/iso_639.xml >%{buildroot}/iso_639.tab sed -n -f %{buildroot}/iso_3166.sed /usr/share/xml/iso-codes/iso_3166.xml >%{buildroot}/iso_3166.tab grep -v "^$" %{buildroot}/iso_639.tab | grep -v "^#" | while read a b c d ; do [[ "$d" =~ "^Reserved" ]] && continue [[ "$d" =~ "^No linguistic" ]] && continue locale=$c if [ "$locale" = "XX" ]; then locale=$b fi echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${locale}" >> $RPM_BUILD_DIR/%{buildsubdir}/filelist echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${locale}" >> $RPM_BUILD_DIR/%{buildsubdir}/filelist done cat %{buildroot}/lang-exceptions | grep -v "^#" | grep -v "^$" | while read loc ; do locale=$loc locality= special= [[ "$locale" =~ "@" ]] && locale=${locale%%%%@*} [[ "$locale" =~ "_" ]] && locality=${locale##*_} [[ "$locality" =~ "." ]] && locality=${locality%%%%.*} [[ "$loc" =~ "_" ]] || [[ "$loc" =~ "@" ]] || special=$loc # If the locality is not official, skip it if [ -n "$locality" ]; then grep -q "^$locality" %{buildroot}/iso_3166.tab || continue fi # If the locale is not official and not special, skip it if [ -z "$special" ]; then egrep -q "[[:space:]]${locale%%_*}[[:space:]]" \\ %{buildroot}/iso_639.tab || continue fi echo "%lang(${locale}) %{_scl_root}/usr/share/locale/${loc}" >> $RPM_BUILD_DIR/%{buildsubdir}/filelist echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${loc}" >> $RPM_BUILD_DIR/%{buildsubdir}/filelist done rm -f %{buildroot}/iso_639.tab rm -f %{buildroot}/iso_639.sed rm -f %{buildroot}/iso_3166.tab rm -f %{buildroot}/iso_3166.sed rm -f %{buildroot}/lang-exceptions cat $RPM_BUILD_DIR/%{buildsubdir}/filelist | grep "locale" | while read a b ; do mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES done cat $RPM_BUILD_DIR/%{buildsubdir}/filelist | grep "/share/man" | while read a b c d; do mkdir -p -m 755 %{buildroot}/$d/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p} done for i in man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}; do echo "%{_scl_root}/usr/share/man/$i" >> $RPM_BUILD_DIR/%{buildsubdir}/filelist done ln -s $RPM_BUILD_DIR/%{buildsubdir}/filelist $RPM_BUILD_DIR/%{buildsubdir}/filesystem set -x popd } PK rYb macros.ea-ruby24-confignu [ %scl ea-ruby24 %nfsmountable 1 PK rY4 macros.ea-php70-confignu [ %scl ea-php70 %undefine nfsmountable %scl_package_override() %{expand: %{?ea_php70___pear:%global __pear %ea_php70___pear} %{?ea_php70___pecl:%global __pecl %ea_php70___pecl} %{?ea_php70___php:%global __php %ea_php70___php} %global pear_metadir %ea_php70_pear_metadir %global pear_xmldir %ea_php70_pear_xmldir %global pecl_xmldir %ea_php70_pecl_xmldir %global php_core_api %ea_php70_php_core_api %global php_zend_api %ea_php70_php_zend_api %global php_pdo_api %ea_php70_php_pdo_api %global php_version %ea_php70_php_version %global php_extdir %ea_php70_php_extdir %global php_inidir %ea_php70_php_inidir %global php_incldir %ea_php70_php_incldir %global php_version 7.0 } PK rY6ͳP P macros.ea-apr-utilnu [ # # Locations for apr-util # %ea_apu_name ea-apr16-util %ea_apu_ver 1 %ea_apu_dir /opt/cpanel/ea-apr16 %ea_apu_fix_pkgconfig() %{expand: sed -ri '/pkg-config/{s/apu-%{ea_apr_ver}/%{ea_apu_name}-%{ea_apu_ver}/}' %1 } %ea_apu_fix_requires() %{expand: sed -ri '/^Requires:/{s/apu-%{ea_apu_ver}/%{ea_apu_name}-%{ea_apu_ver}/}' %1 } PK rYۍ macros.ghc-srpmnu [ # macro defining the archs that ghc runs on in fedora %ghc_arches %{ix86} x86_64 ppc ppc64 ppc64le alpha sparcv9 armv7hl armv5tel s390 s390x aarch64 %ghc_arches_with_ghci %{ix86} x86_64 ppc sparcv9 armv7hl armv5tel PK rY macros.ea-php80-phpnu [ # # Interface versions exposed by PHP: # %ea_php80_php_core_api 20200930-64 %ea_php80_php_zend_api 20200930-64 %ea_php80_php_pdo_api 20170320-64 %ea_php80_php_version 8.0.30 %ea_php80_php_extdir /opt/cpanel/ea-php80/root/usr/lib64/php/modules %ea_php80_php_inidir /opt/cpanel/ea-php80/root/etc/php.d %ea_php80_php_incldir /opt/cpanel/ea-php80/root/usr/include/php %ea_php80___php /opt/cpanel/ea-php80/root/usr/bin/php PK rY=v v macros.pybytecompilenu [ # Note that the path could itself be a python file, or a directory # Python's compile_all module only works on directories, and requires a max # recursion depth # Usage: # %py_byte_compile
# Example: # %py_byte_compile %{__python3} %{buildroot}%{_datadir}/spam/plugins/ # This will terminate build on SyntaxErrors, if you want to avoid that, # use it in a subshell like this: # (%{py_byte_compile
}) || : %py_byte_compile()\ python_binary="%1"\ buildroot_path="%2"\ bytecode_compilation_path=".${buildroot_path/#$RPM_BUILD_ROOT}"\ failure=0\ pushd $RPM_BUILD_ROOT\ find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -m py_compile || failure=1\ find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -m py_compile || failure=1\ popd\ test $failure -eq 0 PK rYiB B macros.distnu [ # dist macros. %centos_ver 7 %centos 7 %rhel 7 %dist .el7 %el7 1 PK rY ` macros.ea-php81-phpnu [ # # Interface versions exposed by PHP: # %ea_php81_php_core_api 20210902-64 %ea_php81_php_zend_api 20210902-64 %ea_php81_php_pdo_api 20170320-64 %ea_php81_php_version 8.1.30 %ea_php81_php_extdir /opt/cpanel/ea-php81/root/usr/lib64/php/modules %ea_php81_php_inidir /opt/cpanel/ea-php81/root/etc/php.d %ea_php81_php_incldir /opt/cpanel/ea-php81/root/usr/include/php %ea_php81___php /opt/cpanel/ea-php81/root/usr/bin/php PK rYzdf macros.ea-php82-phpnu [ # # Interface versions exposed by PHP: # %ea_php82_php_core_api 20220829-64 %ea_php82_php_zend_api 20220829-64 %ea_php82_php_pdo_api 20170320-64 %ea_php82_php_version 8.2.25 %ea_php82_php_extdir /opt/cpanel/ea-php82/root/usr/lib64/php/modules %ea_php82_php_inidir /opt/cpanel/ea-php82/root/etc/php.d %ea_php82_php_incldir /opt/cpanel/ea-php82/root/usr/include/php %ea_php82___php /opt/cpanel/ea-php82/root/usr/bin/php PK rYBp macros.ea-php70-phpnu [ # # Interface versions exposed by PHP: # %ea_php70_php_core_api 20151012-64 %ea_php70_php_zend_api 20151012-64 %ea_php70_php_pdo_api 20150127-64 %ea_php70_php_version 7.0.33 %ea_php70_php_extdir /opt/cpanel/ea-php70/root/usr/lib64/php/modules %ea_php70_php_inidir /opt/cpanel/ea-php70/root/etc/php.d %ea_php70_php_incldir /opt/cpanel/ea-php70/root/usr/include/php %ea_php70___php /opt/cpanel/ea-php70/root/usr/bin/php PK rYYq macros.pythonnu [ %py_setup setup.py %py_shbang_opts -s # Use the slashes after expand so that the command starts on the same line as # the macro %py_build() %{expand:\\\ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python} %{py_shbang_opts}" %{?*} sleep 1 } %py_build_egg() %{expand:\\\ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_egg %{?*} sleep 1 } %py_build_wheel() %{expand:\\\ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} sleep 1 } %py_install() %{expand:\\\ CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} } %py_install_egg() %{expand:\\\ mkdir -p %{buildroot}%{python_sitelib} easy_install -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python_version}.egg %{?*} } %py_install_wheel() %{expand:\\\ pip install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps } %python_provide() %{lua: function string.starts(String,Start) return string.sub(String,1,string.len(Start))==Start end package = rpm.expand("%{?1}") vr = rpm.expand("%{?epoch:%{epoch}:}%{version}-%{release}") if (string.starts(package, "python2-")) then if (rpm.expand("%{?buildarch}") ~= "noarch") then str = "Provides: python-" .. string.sub(package,9,string.len(package)) .. "%{?_isa} = " .. vr print(rpm.expand(str)) end print("\\nProvides: python-") print(string.sub(package,9,string.len(package))) print(" = ") print(vr) --Obsoleting the previous default python package print("\\nObsoletes: python-") print(string.sub(package,9,string.len(package))) print(" < ") print(vr) elseif (string.starts(package, "python3-")) then if (rpm.expand("%{?buildarch}") ~= "noarch") then str = "Provides: python36-" .. string.sub(package,9,string.len(package)) .. "%{?_isa} = " .. vr print(rpm.expand(str)) end print("\\nProvides: python36-") print(string.sub(package,9,string.len(package))) print(" = ") print(vr) --Obsoleting the EPEL python36 package print("\\nObsoletes: python36-") print(string.sub(package,9,string.len(package))) print(" < ") print(vr) elseif (string.starts(package, "python36-")) then if (rpm.expand("%{?buildarch}") ~= "noarch") then str = "Provides: python3-" .. string.sub(package,10,string.len(package)) .. "%{?_isa} = " .. vr print(rpm.expand(str)) end print("\\nProvides: python3-") print(string.sub(package,10,string.len(package))) print(" = ") print(vr) elseif (rpm.expand("%{?python3_other_pkgversion}") ~= "" and string.starts(package, "python" .. rpm.expand("%{python3_other_pkgversion}") .. "-")) then --No unversioned provides as python3_other is not default elseif (string.starts(package, "pypy-")) then --No unversioned provides as pypy is not default elseif (string.starts(package, "pypy3-")) then --No unversioned provides as pypy is not default elseif (string.starts(package, "python-")) then --Providing the current default python print("Provides: python2-") print(string.sub(package,8,string.len(package))) print(" = ") print(vr) else print("%python_provide: ERROR: ") print(package) print(" not recognized.") end } PK rYAF F macros.ea-aprnu [ # # Locations for apr # %ea_apr_name ea-apr16 %ea_apr_ver 1 %ea_apr_dir /opt/cpanel/ea-apr16 %ea_apr_fix_pkgconfig() %{expand: sed -ri '/pkg-config/{s/apr-%{ea_apr_ver}/%{ea_apr_name}-%{ea_apr_ver}/}' %1 } %ea_apr_fix_requires() %{expand: sed -ri '/^Requires:/{s/apr-%{ea_apr_ver}/%{ea_apr_name}-%{ea_apr_ver}/}' %1 } PK rYJHQ macros.rubygems.ea-ruby24nu [ PK rYd5 b macros.perl-srpmnu [ PK rY,Ӵ macros.ea-php72-phpnu [ PK rY>U` macros.apache2nu [ PK rYůU macros.perlnu [ PK rY亩R N macros.nodejs-srpmnu [ PK rY t! macros.ruby.ea-ruby24nu [ PK rYשy y % macros.mono-srpmnu [ PK rY* k&