public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - Erm, really use the macro for tmpfiles.d path
@ 2026-11-23 9:32 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 2a29f1e1283b3deba3804d65aab8b5122044fe41
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2018-10-11T14:15:40+03:00
Stats : +11/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/2a29f1e1283b3deba3804d65aab8b5122044fe41?branch=pmatilai-v6
Log:
- Erm, really use the macro for tmpfiles.d path
- Erm, don't nuke buildroot at beginning of %%install
- Use modern build/install helper macros
---
diff --git a/rpm.spec b/rpm.spec
index 4e27b84..81a2675 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
%global rpmver 4.14.2
#global snapver rc2
-%global rel 3
+%global rel 4
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -385,7 +385,7 @@ done;
--enable-python \
--with-crypto=openssl
-make %{?_smp_mflags}
+%make_build
pushd python
%{__python2} setup.py build
@@ -393,9 +393,7 @@ pushd python
popd
%install
-rm -rf $RPM_BUILD_ROOT
-
-make DESTDIR="$RPM_BUILD_ROOT" install
+%make_install
# We need to build with --enable-python for the self-test suite, but we
# actually package the bindings built with setup.py (#531543#c26)
@@ -412,8 +410,8 @@ install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
-mkdir -p ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d
-echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d/rpm.conf
+mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
+echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/rpm.conf
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d
@@ -462,7 +460,7 @@ make check || cat tests/rpmtests.log
%license COPYING
%doc CREDITS doc/manual/[a-z]*
-/usr/lib/tmpfiles.d/rpm.conf
+%{_tmpfilesdir}/rpm.conf
%dir %{_sysconfdir}/rpm
%attr(0755, root, root) %dir /var/lib/rpm
@@ -591,6 +589,11 @@ make check || cat tests/rpmtests.log
%doc doc/librpm/html/*
%changelog
+* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-4
+- Erm, really use the macro for tmpfiles.d path
+- Erm, don't nuke buildroot at beginning of %%install
+- Use modern build/install helper macros
+
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-3
- Eh, selinux plugin dependency condition was upside down (#1493267)
- Drop no longer necessary condition over imaevm name
^ 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: - Erm, really use the macro for tmpfiles.d path Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox