OXIESEC PANEL
- Current Dir:
/
/
lib
/
rpm
/
macros.d
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/26/2024 03:08:54 AM
rwxr-xr-x
📄
macros.cmake
2.2 KB
01/10/2024 02:43:01 PM
rw-r--r--
📄
macros.dwz
1.76 KB
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.efi-srpm
3 KB
11/23/2021 10:32:36 PM
rw-r--r--
📄
macros.environment-modules
75 bytes
07/30/2020 12:13:34 PM
rw-r--r--
📄
macros.fedora-misc
2.76 KB
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.fedora-misc-srpm
239 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.firewalld
239 bytes
09/21/2023 10:00:56 AM
rw-r--r--
📄
macros.forge
12.43 KB
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.ghc-srpm
414 bytes
08/12/2018 10:37:49 AM
rw-r--r--
📄
macros.go-srpm
7.17 KB
04/08/2021 02:45:20 PM
rw-r--r--
📄
macros.info
390 bytes
04/18/2022 05:09:26 PM
rw-r--r--
📄
macros.kernel-srpm
116 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.ldc-srpm
73 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.ldconfig
307 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.lua
375 bytes
08/18/2021 01:25:50 PM
rw-r--r--
📄
macros.mono-srpm
181 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.nodejs-srpm
324 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.ocaml-srpm
737 bytes
10/14/2019 08:31:03 AM
rw-r--r--
📄
macros.openblas-srpm
104 bytes
10/16/2019 08:47:30 PM
rw-r--r--
📄
macros.perl
5.06 KB
05/18/2023 09:20:52 PM
rw-r--r--
📄
macros.perl-srpm
794 bytes
10/13/2019 02:18:38 PM
rw-r--r--
📄
macros.pybytecompile
886 bytes
05/16/2023 12:55:39 PM
rw-r--r--
📄
macros.python
3.36 KB
05/16/2023 12:55:39 PM
rw-r--r--
📄
macros.python-srpm
5.95 KB
05/16/2023 12:55:39 PM
rw-r--r--
📄
macros.python2
1.82 KB
04/21/2022 03:26:14 PM
rw-r--r--
📄
macros.python3
3.63 KB
05/16/2023 12:55:39 PM
rw-r--r--
📄
macros.qt5-qtbase
75 bytes
10/15/2023 09:01:34 AM
rw-r--r--
📄
macros.rust-srpm
61 bytes
01/08/2018 07:15:07 PM
rw-r--r--
📄
macros.selinux-policy
6.62 KB
01/11/2024 12:33:24 AM
rw-r--r--
📄
macros.systemd
4.03 KB
09/24/2024 02:24:35 AM
rw-r--r--
📄
macros.valgrind-srpm
127 bytes
05/15/2023 02:30:31 PM
rw-r--r--
📄
macros.vim
40 bytes
08/02/2022 04:44:39 PM
rw-r--r--
📄
macros.vpath
228 bytes
05/15/2023 02:30:31 PM
rw-r--r--
Editing: macros.python
Close
# %%__python is defined in /usr/lib/rpm/macros to raise an error # so if you don't redefine it, you'll get the same error from %%python %python %__python %python_platform_triplet %(%{__python} -Esc "import sysconfig; print(sysconfig.get_config_var('MULTIARCH'))") %python_ext_suffix %(%{__python} -Esc "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))") %py_setup setup.py %py_shbang_opts -s %py_shbang_opts_nodash %(opts=%{py_shbang_opts}; echo ${opts#-}) %py_shebang_flags %(opts=%{py_shbang_opts}; echo ${opts#-}) %py_shebang_fix %{expand:\\\ if [ -f /usr/bin/pathfix%{python_version}.py ]; then pathfix=/usr/bin/pathfix%{python_version}.py else # unversioned pathfix.py provided by platform-python-devel pathfix=/usr/bin/pathfix.py fi if [ -z "%{?py_shebang_flags}" ]; then shebang_flags="-k" else shebang_flags="-ka%{py_shebang_flags}" fi $pathfix -pni %{__python} $shebang_flags} # Use the slashes after expand so that the command starts on the same line as # the macro %py_build() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python} %{py_shbang_opts}" %{?*} sleep 1 } %py_build_egg() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python} %{py_setup} %{?py_setup_args} bdist_egg %{?*} sleep 1 } %py_build_wheel() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} sleep 1 } %py_install() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__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 --No unversioned provides as python2 is not default elseif (string.starts(package, "python" .. rpm.expand("%{python3_pkgversion}") .. "-")) then --No unversioned provides as python3 is not default 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 } %python_enable_dependency_generator() \ %global __python_requires %{_rpmconfigdir}/pythondistdeps.py --requires \ %{nil}