|
|
a7fa1f |
Name: flatpak-runtime-config
|
|
|
a7fa1f |
Version: 29
|
|
|
a7fa1f |
Release: 5%{?dist}
|
|
|
a7fa1f |
Summary: Configuration files that live inside the flatpak runtime
|
|
|
a7fa1f |
Source1: 50-flatpak.conf
|
|
|
a7fa1f |
Source2: usercustomize.py
|
|
|
a7fa1f |
Source3: com.redhat.Platform.appdata.xml
|
|
|
a7fa1f |
Source4: com.redhat.Sdk.appdata.xml
|
|
|
a7fa1f |
|
|
|
a7fa1f |
License: MIT
|
|
|
a7fa1f |
|
|
|
a7fa1f |
BuildRequires: python2
|
|
|
a7fa1f |
BuildRequires: python2-rpm-macros
|
|
|
a7fa1f |
BuildRequires: python3
|
|
|
a7fa1f |
BuildRequires: python3-rpm-macros
|
|
|
a7fa1f |
|
|
|
a7fa1f |
Requires: fontpackages-filesystem
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%description
|
|
|
a7fa1f |
This package includes configuration files that are installed into the flatpak
|
|
|
a7fa1f |
runtime filesystem during the runtime creation process; it is also installed
|
|
|
a7fa1f |
into the build root when building RPMs. It contains all configuration
|
|
|
a7fa1f |
files that need to be different when executing a flatpak.
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%prep
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%build
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%install
|
|
|
a7fa1f |
rm -rf $RPM_BUILD_ROOT
|
|
|
a7fa1f |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/cache/fontconfig
|
|
|
a7fa1f |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
|
|
|
a7fa1f |
install -t $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d -p -m 0644 %{SOURCE1}
|
|
|
a7fa1f |
|
|
|
a7fa1f |
# usercustomize.py to set up Python paths
|
|
|
a7fa1f |
for d in %{python2_sitelib} %{python3_sitelib} ; do
|
|
|
a7fa1f |
mkdir -p $RPM_BUILD_ROOT/$d
|
|
|
a7fa1f |
install -t $RPM_BUILD_ROOT/$d -m 0644 %{SOURCE2}
|
|
|
a7fa1f |
done
|
|
|
a7fa1f |
|
|
|
a7fa1f |
# Install appdata for both the Platform and the Sdk
|
|
|
a7fa1f |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
|
|
|
a7fa1f |
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE3}
|
|
|
a7fa1f |
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE4}
|
|
|
a7fa1f |
|
|
|
a7fa1f |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
|
|
|
a7fa1f |
echo "/app/%{_lib}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf
|
|
|
a7fa1f |
|
|
|
a7fa1f |
# We duplicate selected file triggers from packages in the runtime, to
|
|
|
a7fa1f |
# extend them to cover /app as well. Some other functions that RPM file
|
|
|
a7fa1f |
# triggers normally provide are handled by flatpak triggers - in particular
|
|
|
a7fa1f |
# calling update-desktop-database and gtk-update-icon-cache.
|
|
|
a7fa1f |
|
|
|
a7fa1f |
# The ldconfig scriplets have a limited function since symlinks are supposed
|
|
|
a7fa1f |
# to be packaged, and a ld.so.cache that handles both /app and /usr is
|
|
|
a7fa1f |
# maintained by flatpak. But occasionally a symlink is missed in packaging,
|
|
|
a7fa1f |
# and this will make sure it is created install time, as it would be
|
|
|
a7fa1f |
# system-wide.
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%post -p /sbin/ldconfig
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%transfiletriggerin -P 1999999 -- /app/lib /app/lib64
|
|
|
a7fa1f |
/sbin/ldconfig
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%transfiletriggerin -- /app/share/glib-2.0/schemas
|
|
|
a7fa1f |
glib-compile-schemas /app/share/glib-2.0/schemas &> /dev/null || :
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%transfiletriggerin -- /app/share/fonts
|
|
|
a7fa1f |
HOME=/root /usr/bin/fc-cache -s
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%files
|
|
|
a7fa1f |
%dir %{_prefix}/cache
|
|
|
a7fa1f |
%dir %{_prefix}/cache/fontconfig
|
|
|
a7fa1f |
%{python2_sitelib}
|
|
|
a7fa1f |
%{python3_sitelib}
|
|
|
a7fa1f |
%{_datadir}/metainfo/*.appdata.xml
|
|
|
a7fa1f |
%{_sysconfdir}/fonts/conf.d/*
|
|
|
a7fa1f |
%{_sysconfdir}/ld.so.conf.d/app.conf
|
|
|
a7fa1f |
|
|
|
a7fa1f |
%changelog
|
|
|
a7fa1f |
* Wed Jul 29 2020 Kalev Lember <klember@redhat.com> - 29-5
|
|
|
a7fa1f |
- Install appdata for both the Platform and the Sdk
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Fri Sep 28 2018 Owen Taylor <otaylor@redhat.com> - 29-4
|
|
|
a7fa1f |
- Add a usercustomize.py to set up Python paths
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Sat Sep 8 2018 Owen Taylor <otaylor@redhat.com> - 29-3
|
|
|
a7fa1f |
- Fix path to gsettings schemas in trigger
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Sat Sep 8 2018 Owen Taylor <otaylor@redhat.com> - 29-2
|
|
|
a7fa1f |
- Avoid comments leaking into scriplets
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Sat Sep 8 2018 Owen Taylor <otaylor@redhat.com> - 29-1
|
|
|
a7fa1f |
- Add file triggers from glibc, glib2, and fontconfig
|
|
|
a7fa1f |
|
|
|
a7fa1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 27-6
|
|
|
a7fa1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-5
|
|
|
a7fa1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-4
|
|
|
a7fa1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Thu Jun 29 2017 Owen Taylor <otaylor@redhat.com> - 27-3
|
|
|
a7fa1f |
- Make not noarch - the contents of /etc/ld.so.conf.d/app.conf
|
|
|
a7fa1f |
depend on 64-bit vs. 32-bit
|
|
|
a7fa1f |
- Rename fontconfig conf file from 'xdg-app' to 'flatpak'
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Tue Jun 13 2017 Owen Taylor <otaylor@redhat.com> - 27-2
|
|
|
a7fa1f |
See https://bugzilla.redhat.com/show_bug.cgi?id=1460081
|
|
|
a7fa1f |
- Switch license to MIT
|
|
|
a7fa1f |
- Preserve timestamps on file installation
|
|
|
a7fa1f |
- Own /usr/cache since it's not a standard directory
|
|
|
a7fa1f |
- Require fontpackages-filesystem for /etc/fonts/conf.d
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Wed Jun 7 2017 Owen Taylor <otaylor@redhat.com> - 27-1
|
|
|
a7fa1f |
- Strip down to just config files
|
|
|
a7fa1f |
|
|
|
a7fa1f |
* Wed Jun 3 2015 Alexander Larsson <alexl@redhat.com>
|
|
|
a7fa1f |
- Initial version
|