public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Owen W. Taylor <otaylor@fishsoup.net>
To: git-commits@fedoraproject.org
Subject: [rpms/flatpak-runtime-config] f45: Add a usercustomize.py to set up Python paths
Date: Thu, 10 Sep 2026 21:21:39 GMT	[thread overview]
Message-ID: <178907529957.1.1376306429396448747.rpms-flatpak-runtime-config-2ea41f54bf28@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/flatpak-runtime-config
Branch : f45
Commit : 2ea41f54bf286508ef96ed3cf43328d1d22f9213
Author : Owen W. Taylor <otaylor@fishsoup.net>
Date   : 2018-09-28T09:16:57-04:00
Stats  : +19/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/flatpak-runtime-config/c/2ea41f54bf286508ef96ed3cf43328d1d22f9213?branch=f45

Log:
Add a usercustomize.py to set up Python paths

---
diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec
index a64e474..3f71f5f 100644
--- a/flatpak-runtime-config.spec
+++ b/flatpak-runtime-config.spec
@@ -1,11 +1,17 @@
 Name:           flatpak-runtime-config
 Version:        29
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Configuration files that live inside the flatpak runtime
 Source1:        50-flatpak.conf
+Source2:        usercustomize.py
 
 License:        MIT
 
+BuildRequires:  python2
+BuildRequires:  python2-rpm-macros
+BuildRequires:  python3
+BuildRequires:  python3-rpm-macros
+
 Requires:       fontpackages-filesystem
 
 %description
@@ -22,7 +28,13 @@ files that need to be different when executing a flatpak.
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT%{_prefix}/cache/fontconfig
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
-install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 644 %{SOURCE1}
+install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 0644 %{SOURCE1}
+
+# usercustomize.py to set up Python paths
+for d in %{python2_sitelib} %{python3_sitelib} ; do
+    mkdir -p $RPM_BUILD_ROOT/$d
+    install -t $RPM_BUILD_ROOT/$d -m 0644 %{SOURCE2}
+done
 
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
 echo "/app/%{_lib}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf
@@ -52,10 +64,15 @@ HOME=/root /usr/bin/fc-cache -s
 %files
 %dir %{_prefix}/cache
 %dir %{_prefix}/cache/fontconfig
+%{python2_sitelib}
+%{python3_sitelib}
 %{_sysconfdir}/fonts/conf.d/*
 %{_sysconfdir}/ld.so.conf.d/app.conf
 
 %changelog
+* Fri Sep 28 2018 Owen Taylor <otaylor@redhat.com> - 29-4
+- Add a usercustomize.py to set up Python paths
+
 * Sat Sep  8 2018 Owen Taylor <otaylor@redhat.com> - 29-3
 - Fix path to gsettings schemas in trigger
 

                 reply	other threads:[~2026-09-10 21:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178907529957.1.1376306429396448747.rpms-flatpak-runtime-config-2ea41f54bf28@fedoraproject.org \
    --to=otaylor@fishsoup.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox