Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1050380 Details for
Bug 1241655
please add new python macros also to epel
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
macros.python to be added
file_1241655.txt (text/plain), 2.20 KB, created by
Thomas Spura
on 2015-07-09 17:42:28 UTC
(
hide
)
Description:
macros.python to be added
Filename:
MIME Type:
Creator:
Thomas Spura
Created:
2015-07-09 17:42:28 UTC
Size:
2.20 KB
patch
obsolete
>%py_setup setup.py >%py_shbang_opts -s > >%py_build() %{expand:\ >CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?1}\ >} > >%py_install() %{expand:\ >CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\ >} > >%python_provide() %{lua:\ > function string.starts(String,Start)\ > return string.sub(String,1,string.len(Start))==Start\ > end\ > str = rpm.expand("%{?1:%{1}}");\ > vr = rpm.expand("%{version}-%{release}") > if (string.starts(str, "python2-")) then\ > print("Provides: python-");\ > print(string.sub(str,9,string.len(str)));\ > print(" = ");\ > print(vr);\ > elseif (string.starts(str, "python3-")) then\ > --No unversioned provides as python3 is not default\ > elseif (string.starts(str, "pypy-")) then\ > --No unversioned provides as pypy is not default\ > elseif (string.starts(str, "pypy3-")) then\ > --No unversioned provides as pypy is not default\ > elseif (string.starts(str, "python-")) then\ > --Providing the current default python\ > print("Provides: python2-");\ > print(string.sub(str,9,string.len(str)));\ > print(" = ");\ > print(vr);\ > else\ > print("ERROR: ");\ > print(str);\ > print("not recognized.");\ > end\ >} > >%py3_shbang_opts -s > >%py3_build() %{expand:\ >CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1}\ >} > >%py3_install() %{expand:\ >CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\ >} > >%py2_shbang_opts -s > >%py2_build() %{expand:\ >CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?1}\ >} > >%py2_install() %{expand:\ >CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\ >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1241655
: 1050380 |
1079196