[packages/dnf] - own python plugins directory - compile python stuff
baggins
baggins at pld-linux.org
Sun Mar 14 19:50:34 CET 2021
commit 748413d486c6e63e9a736ff824b5624faba4866e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 14 19:50:06 2021 +0100
- own python plugins directory
- compile python stuff
dnf.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/dnf.spec b/dnf.spec
index 1c48c2d..59050fd 100644
--- a/dnf.spec
+++ b/dnf.spec
@@ -127,9 +127,9 @@ cd build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/{vars,aliases.d,plugins,modules.d,modules.defaults.d},yum}
-install -d $RPM_BUILD_ROOT%{_localstatedir}/log/
-install -d $RPM_BUILD_ROOT%{_var}/cache/dnf/
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/{vars,aliases.d,plugins,modules.d,modules.defaults.d},yum} \
+ -d $RPM_BUILD_ROOT{%{_localstatedir}/log/,%{_var}/cache/dnf/} \
+ -d $RPM_BUILD_ROOT%{py3_sitescriptdir}/dnf-plugins/__pycache__
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
@@ -148,6 +148,9 @@ ln -sr $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/protected.d,yum/protected.d}
ln -sr $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/vars,yum/vars}
ln -s dnf-3 $RPM_BUILD_ROOT%{_bindir}/yum
+%py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}/dnf
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}/dnf
+
%find_lang %{name}
%clean
@@ -191,6 +194,7 @@ rm -rf $RPM_BUILD_ROOT
%{systemdunitdir}/dnf-makecache.timer
%{systemdtmpfilesdir}/dnf.conf
%{py3_sitescriptdir}/dnf
+%{py3_sitescriptdir}/dnf-plugins
%exclude %{py3_sitescriptdir}/dnf/automatic
%ghost %{_localstatedir}/log/%{name}.log
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dnf.git/commitdiff/748413d486c6e63e9a736ff824b5624faba4866e
More information about the pld-cvs-commit
mailing list