python3-devel: Require python-macros
This picks up version independant macros such as python_provide. See fpc#281 and fpc#534 for more details.
This commit is contained in:
parent
8f7e21547a
commit
8d338b7784
2 changed files with 18 additions and 2 deletions
|
|
@ -4,3 +4,13 @@
|
|||
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
||||
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
||||
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||
|
||||
%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}\
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue