Use py2/3 macros for building and installing the bindings
This commit is contained in:
parent
66e2ef5d88
commit
bda4949bed
13
rpm.spec
13
rpm.spec
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
%global rpmver 4.14.2.1
|
%global rpmver 4.14.2.1
|
||||||
#global snapver rc2
|
#global snapver rc2
|
||||||
%global rel 10
|
%global rel 11
|
||||||
|
|
||||||
%global srcver %{version}%{?snapver:-%{snapver}}
|
%global srcver %{version}%{?snapver:-%{snapver}}
|
||||||
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
|
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
|
||||||
@ -384,8 +384,8 @@ done;
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
pushd python
|
pushd python
|
||||||
%{__python2} setup.py build
|
%py2_build
|
||||||
%{__python3} setup.py build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -394,8 +394,8 @@ popd
|
|||||||
# We need to build with --enable-python for the self-test suite, but we
|
# We need to build with --enable-python for the self-test suite, but we
|
||||||
# actually package the bindings built with setup.py (#531543#c26)
|
# actually package the bindings built with setup.py (#531543#c26)
|
||||||
pushd python
|
pushd python
|
||||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%py2_install
|
||||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%py3_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
@ -580,6 +580,9 @@ make check || (cat tests/rpmtests.log; exit 1)
|
|||||||
%doc doc/librpm/html/*
|
%doc doc/librpm/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2.1-11
|
||||||
|
- Use py2/3 macros for building and installing the bindings
|
||||||
|
|
||||||
* Tue May 21 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-10
|
* Tue May 21 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-10
|
||||||
- Support build-id generation from compressed ELF files (#1650072)
|
- Support build-id generation from compressed ELF files (#1650072)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user