public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Use py2/3 macros for building and installing the bindings
@ 2026-11-23  9:32 Igor Gnatenko
  0 siblings, 0 replies; only message in thread
From: Igor Gnatenko @ 2026-11-23  9:32 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : bda4949bedba31d8153cfca323e47b2fd94eaa59
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date   : 2019-06-07T10:34:46+03:00
Stats  : +8/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/bda4949bedba31d8153cfca323e47b2fd94eaa59?branch=pmatilai-v6

Log:
Use py2/3 macros for building and installing the bindings

---
diff --git a/rpm.spec b/rpm.spec
index fa92412..5b41324 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
 
 %global rpmver 4.14.2.1
 #global snapver rc2
-%global rel 10
+%global rel 11
 
 %global srcver %{version}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -384,8 +384,8 @@ done;
 %make_build
 
 pushd python
-%{__python2} setup.py build
-%{__python3} setup.py build
+%py2_build
+%py3_build
 popd
 
 %install
@@ -394,8 +394,8 @@ popd
 # We need to build with --enable-python for the self-test suite, but we
 # actually package the bindings built with setup.py (#531543#c26)
 pushd python
-%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
-%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
+%py2_install
+%py3_install
 popd
 
 
@@ -580,6 +580,9 @@ make check || (cat tests/rpmtests.log; exit 1)
 %doc doc/librpm/html/*
 
 %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
 - Support build-id generation from compressed ELF files (#1650072)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:32 [rpms/rpm] pmatilai-v6: Use py2/3 macros for building and installing the bindings Igor Gnatenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox