diff --git a/05-flatpak-fontpath.conf b/05-flatpak-fontpath.conf new file mode 100644 index 0000000..b5bd37a --- /dev/null +++ b/05-flatpak-fontpath.conf @@ -0,0 +1,12 @@ + + + + + + /usr/share/fonts + /usr/share/X11/fonts/Type1 + /usr/share/X11/fonts/TTF + /usr/local/share/fonts + fonts + ~/.fonts + diff --git a/50-flatpak.conf b/50-flatpak.conf index 430e8f1..27036d4 100644 --- a/50-flatpak.conf +++ b/50-flatpak.conf @@ -1,17 +1,20 @@ /usr/cache/fontconfig /app/share/fonts + /app/share/X11/fonts/Type1 + /app/share/X11/fonts/TTF /app/cache/fontconfig /app/etc/fonts/local.conf /run/host/fonts + /run/host/local-fonts /run/host/user-fonts + /run/host/font-dirs.xml diff --git a/changelog b/changelog new file mode 100644 index 0000000..1298ba7 --- /dev/null +++ b/changelog @@ -0,0 +1,128 @@ +* Sun Feb 09 2025 Yaakov Selkowitz - 42-1 +- Bump version + +* Tue Dec 10 2024 Yaakov Selkowitz - 41-2 +- Enable dynamic ld.so.cache generation + +* Thu Aug 15 2024 Yaakov Selkowitz - 41-1 +- Bump version + +* Wed Apr 03 2024 Yaakov Selkowitz - 40-1 +- Bump version + +* Fri Mar 01 2024 Yaakov Selkowitz - 39-6 +- Add Java symlink trigger +- Add /app-built X11 font directories to fontconfig path +- Add alternatives symlink trigger + +* Fri Dec 15 2023 Yaakov Selkowitz - 39-5 +- Add graphviz install trigger + +* Thu Oct 05 2023 Kalev Lember - 39-4 +- appdata: Add F39 versions + +* Mon Sep 04 2023 Yaakov Selkowitz - 39-3 +- Provide sitecustomize instead of usercustomize + +* Tue Aug 22 2023 Owen Taylor - 39-2 +- Bump for rebuild + +* Mon Aug 7 2023 Owen Taylor - 39-1 +- Bump version + +* Sat Mar 18 2023 Kalev Lember - 38-1 +- appdata: Add F38 versions +- Revert "Provide systemd packages" + +* Tue Feb 21 2023 Yaakov Selkowitz - 37-4 +- Add metainfo for KDE runtimes + +* Tue Feb 21 2023 Yaakov Selkowitz - 37-3 +- Remove package notes from flatpak-builder compile flags + +* Tue Sep 06 2022 Kalev Lember - 37-2 +- Correctly substitute /app/lib in flatpak-builder defaults.json ldflags +- Revert "Fix search paths for /app-installed python modules" (#2026979) + +* Wed Aug 17 2022 Kalev Lember - 37-1 +- appdata: Add F37 versions + +* Thu Aug 04 2022 Kalev Lember - 36-2 +- Fix search paths for /app-installed python modules (#2112499) + +* Mon May 02 2022 Tomas Popela - 36-1 +- appdata: Add F36 versions + +* Thu Sep 30 2021 Kalev Lember - 35-1 +- appdata: Add F35 versions + +* Tue Feb 02 2021 Kalev Lember - 34-1 +- Install flatpak-builder defaults.json config file + +* Tue Jan 26 2021 Fedora Release Engineering - 33-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Kalev Lember - 33-1 +- Install appdata for both the Platform and the Sdk + +* Mon Jul 27 2020 Fedora Release Engineering - 32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Mar 06 2020 Kalev Lember - 32-1 +- Remove Python 2 support (#1801932) + +* Tue Jan 28 2020 Fedora Release Engineering - 30-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Aug 8 2019 fedora-toolbox - 30-2 +- Fix comment location in fontconfig config file + +* Fri Jul 26 2019 Mark Otaris - 30-1 +- Update font config to match freedesktop-sdk, allowing user-installed fonts to work + +* Thu Jul 25 2019 Fedora Release Engineering - 29-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 29-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Sep 28 2018 Owen Taylor - 29-4 +- Add a usercustomize.py to set up Python paths + +* Sat Sep 8 2018 Owen Taylor - 29-3 +- Fix path to gsettings schemas in trigger + +* Sat Sep 8 2018 Owen Taylor - 29-2 +- Avoid comments leaking into scriplets + +* Sat Sep 8 2018 Owen Taylor - 29-1 +- Add file triggers from glibc, glib2, and fontconfig + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 27-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 27-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 27-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jun 29 2017 Owen Taylor - 27-3 +- Make not noarch - the contents of /etc/ld.so.conf.d/app.conf + depend on 64-bit vs. 32-bit +- Rename fontconfig conf file from 'xdg-app' to 'flatpak' + +* Tue Jun 13 2017 Owen Taylor - 27-2 +See https://bugzilla.redhat.com/show_bug.cgi?id=1460081 +- Switch license to MIT +- Preserve timestamps on file installation +- Own /usr/cache since it's not a standard directory +- Require fontpackages-filesystem for /etc/fonts/conf.d + +* Wed Jun 7 2017 Owen Taylor - 27-1 +- Strip down to just config files + +* Wed Jun 3 2015 Alexander Larsson +- Initial version diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec index 527340a..5a4e9ee 100644 --- a/flatpak-runtime-config.spec +++ b/flatpak-runtime-config.spec @@ -1,17 +1,28 @@ +# package notes require setting RPM-specific environment variables, +# incompatible with flatpak-builder +%undefine _package_note_flags + Name: flatpak-runtime-config -Version: 36 -Release: 2%{?dist} +Version: 42 +Release: %autorelease Summary: Configuration files that live inside the flatpak runtime Source1: 50-flatpak.conf -Source3: org.fedoraproject.Platform.appdata.xml -Source4: org.fedoraproject.Sdk.appdata.xml -Source5: defaults.json.in +Source2: sitecustomize.py +Source3: defaults.json.in +Source4: org.fedoraproject.Platform.appdata.xml +Source5: org.fedoraproject.Sdk.appdata.xml +Source6: org.fedoraproject.KDE5Platform.appdata.xml +Source7: org.fedoraproject.KDE5Sdk.appdata.xml +Source8: org.fedoraproject.KDE6Platform.appdata.xml +Source9: org.fedoraproject.KDE6Sdk.appdata.xml +Source10: 05-flatpak-fontpath.conf License: MIT BuildRequires: python3 BuildRequires: python3-rpm-macros +Requires: findutils Requires: fontpackages-filesystem %description @@ -29,35 +40,43 @@ 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 0644 %{SOURCE1} +install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 0644 %{SOURCE10} # usercustomize.py to set up Python paths -mkdir -p $RPM_BUILD_ROOT%{python3_sitelib} -cat > $RPM_BUILD_ROOT%{python3_sitelib}/usercustomize.py < $RPM_BUILD_ROOT%{_sysconfdir}/flatpak-builder/defaults.json + %{SOURCE3} > $RPM_BUILD_ROOT%{_sysconfdir}/flatpak-builder/defaults.json mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/ -echo "/app/%{_lib}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf +cat > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf <<_EOF +include /run/flatpak/ld.so.conf.d/app-*.conf +include /app/etc/ld.so.conf +include /app/etc/ld.so.conf.d/*.conf +/app/%{_lib} +%if "%{_lib}" != "lib" +/app/lib +%endif +include /run/flatpak/ld.so.conf.d/runtime-*.conf +_EOF # We duplicate selected file triggers from packages in the runtime, to # extend them to cover /app as well. Some other functions that RPM file @@ -72,15 +91,32 @@ echo "/app/%{_lib}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf %post -p /sbin/ldconfig -%transfiletriggerin -P 1999999 -- /app/lib /app/lib64 +%transfiletriggerin -P 1999999 -- /app/lib /app/lib64 /app/etc/ld.so.conf.d /sbin/ldconfig +%transfiletriggerin -P 99999 -- /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders +gdk-pixbuf-query-loaders-%{__isa_bits} > /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache +if [ -d /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders ]; then + GDK_PIXBUF_MODULEDIR=/app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders/ \ + gdk-pixbuf-query-loaders-%{__isa_bits} >> /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache + cp /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache +fi + %transfiletriggerin -- /app/share/glib-2.0/schemas glib-compile-schemas /app/share/glib-2.0/schemas &> /dev/null || : %transfiletriggerin -- /app/share/fonts HOME=/root /usr/bin/fc-cache -s +%transfiletriggerin -- /app/share/java +for d in `find /app/share/java -type d`; do mkdir -p /usr${d#/app}; done +for f in `find /app/share/java ! -type d`; do ln -s $f /usr${f#/app}; done + +%transfiletriggerin -P 1 -- /app +for l in `find /app -type l`; do \ + case `readlink $l` in /etc/alternatives/*) ln -fns `readlink -f $l` $l ;; esac \ +done + %files %dir %{_prefix}/cache %dir %{_prefix}/cache/fontconfig @@ -91,82 +127,4 @@ HOME=/root /usr/bin/fc-cache -s %{_sysconfdir}/ld.so.conf.d/app.conf %changelog -* Thu Aug 04 2022 Kalev Lember - 36-2 -- Fix search paths for /app-installed python modules (#2112499) - -* Mon May 02 2022 Tomas Popela - 36-1 -- appdata: Add F36 versions - -* Thu Sep 30 2021 Kalev Lember - 35-1 -- appdata: Add F35 versions - -* Tue Feb 02 2021 Kalev Lember - 34-1 -- Install flatpak-builder defaults.json config file - -* Tue Jan 26 2021 Fedora Release Engineering - 33-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Kalev Lember - 33-1 -- Install appdata for both the Platform and the Sdk - -* Mon Jul 27 2020 Fedora Release Engineering - 32-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Mar 06 2020 Kalev Lember - 32-1 -- Remove Python 2 support (#1801932) - -* Tue Jan 28 2020 Fedora Release Engineering - 30-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Aug 8 2019 fedora-toolbox - 30-2 -- Fix comment location in fontconfig config file - -* Fri Jul 26 2019 Mark Otaris - 30-1 -- Update font config to match freedesktop-sdk, allowing user-installed fonts to work - -* Thu Jul 25 2019 Fedora Release Engineering - 29-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 29-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Sep 28 2018 Owen Taylor - 29-4 -- Add a usercustomize.py to set up Python paths - -* Sat Sep 8 2018 Owen Taylor - 29-3 -- Fix path to gsettings schemas in trigger - -* Sat Sep 8 2018 Owen Taylor - 29-2 -- Avoid comments leaking into scriplets - -* Sat Sep 8 2018 Owen Taylor - 29-1 -- Add file triggers from glibc, glib2, and fontconfig - -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 27-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 27-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 27-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Thu Jun 29 2017 Owen Taylor - 27-3 -- Make not noarch - the contents of /etc/ld.so.conf.d/app.conf - depend on 64-bit vs. 32-bit -- Rename fontconfig conf file from 'xdg-app' to 'flatpak' - -* Tue Jun 13 2017 Owen Taylor - 27-2 -See https://bugzilla.redhat.com/show_bug.cgi?id=1460081 -- Switch license to MIT -- Preserve timestamps on file installation -- Own /usr/cache since it's not a standard directory -- Require fontpackages-filesystem for /etc/fonts/conf.d - -* Wed Jun 7 2017 Owen Taylor - 27-1 -- Strip down to just config files - -* Wed Jun 3 2015 Alexander Larsson -- Initial version +%autochangelog diff --git a/org.fedoraproject.KDE5Platform.appdata.xml b/org.fedoraproject.KDE5Platform.appdata.xml new file mode 100644 index 0000000..d633df8 --- /dev/null +++ b/org.fedoraproject.KDE5Platform.appdata.xml @@ -0,0 +1,25 @@ + + + org.fedoraproject.KDE5Platform + CC0-1.0 + + GPL-2.0-or-later + Fedora KDE 5 Platform + Shared libraries + + + + + + + + + +

+ The Fedora KDE 5 Platform is a runtime for Flatpak applications. + It contains common libraries that are shared between Qt and KDE 5 + applications. +

+
+ https://fedoraproject.org/ +
diff --git a/org.fedoraproject.KDE5Sdk.appdata.xml b/org.fedoraproject.KDE5Sdk.appdata.xml new file mode 100644 index 0000000..cb2886c --- /dev/null +++ b/org.fedoraproject.KDE5Sdk.appdata.xml @@ -0,0 +1,25 @@ + + + org.fedoraproject.KDE5Sdk + CC0-1.0 + + GPL-2.0-or-later + Fedora KDE 5 SDK + Tools and headers for developing KDE 5 applications + + + + + + + + + +

+ The Fedora KDE 5 Sdk is the development runtime that you can use to produce applications using + the Fedora KDE 5 Platform runtime. It contains everything that is in the platform, as well + as build and debugging tools and headers for the libraries. +

+
+ https://fedoraproject.org/ +
diff --git a/org.fedoraproject.KDE6Platform.appdata.xml b/org.fedoraproject.KDE6Platform.appdata.xml new file mode 100644 index 0000000..e7dd248 --- /dev/null +++ b/org.fedoraproject.KDE6Platform.appdata.xml @@ -0,0 +1,25 @@ + + + org.fedoraproject.KDE6Platform + CC0-1.0 + + GPL-2.0-or-later + Fedora KDE 6 Platform + Shared libraries + + + + + + + + + +

+ The Fedora KDE 6 Platform is a runtime for Flatpak applications. + It contains common libraries that are shared between Qt and KDE 6 + applications. +

+
+ https://fedoraproject.org/ +
diff --git a/org.fedoraproject.KDE6Sdk.appdata.xml b/org.fedoraproject.KDE6Sdk.appdata.xml new file mode 100644 index 0000000..5262c79 --- /dev/null +++ b/org.fedoraproject.KDE6Sdk.appdata.xml @@ -0,0 +1,25 @@ + + + org.fedoraproject.KDE6Sdk + CC0-1.0 + + GPL-2.0-or-later + Fedora KDE 6 SDK + Tools and headers for developing KDE applications + + + + + + + + + +

+ The Fedora KDE 6 Sdk is the development runtime that you can use to produce applications using + the Fedora KDE 6 Platform runtime. It contains everything that is in the platform, as well + as build and debugging tools and headers for the libraries. +

+
+ https://fedoraproject.org/ +
diff --git a/org.fedoraproject.Platform.appdata.xml b/org.fedoraproject.Platform.appdata.xml index 8b76421..d469f45 100644 --- a/org.fedoraproject.Platform.appdata.xml +++ b/org.fedoraproject.Platform.appdata.xml @@ -1,12 +1,18 @@ org.fedoraproject.Platform - CC0 + CC0-1.0 - GPL-2.0+ + GPL-2.0-or-later Fedora Platform Shared libraries + + + + + + diff --git a/org.fedoraproject.Sdk.appdata.xml b/org.fedoraproject.Sdk.appdata.xml index e7cef7c..13c4fac 100644 --- a/org.fedoraproject.Sdk.appdata.xml +++ b/org.fedoraproject.Sdk.appdata.xml @@ -1,12 +1,18 @@ org.fedoraproject.Sdk - CC0 + CC0-1.0 - GPL-2.0+ + GPL-2.0-or-later Fedora SDK Tools and headers for developing applications + + + + + + diff --git a/usercustomize.py b/sitecustomize.py similarity index 100% rename from usercustomize.py rename to sitecustomize.py