public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/filesystem] rawhide: Own locale directories for which we ship translations but do not create them
@ 2026-06-02 5:12 Martin Osvald
0 siblings, 0 replies; only message in thread
From: Martin Osvald @ 2026-06-02 5:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/filesystem
Branch : rawhide
Commit : 0514cd9fdb34c00c2405d68a7ba171f76d19d528
Author : Martin Osvald <mosvald@redhat.com>
Date : 2026-03-06T09:07:47+01:00
Stats : +10/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/filesystem/c/0514cd9fdb34c00c2405d68a7ba171f76d19d528?branch=rawhide
Log:
Own locale directories for which we ship translations but do not create them
---
diff --git a/filesystem.spec b/filesystem.spec
index a510eba..29622e2 100644
--- a/filesystem.spec
+++ b/filesystem.spec
@@ -110,32 +110,32 @@ mkdir -p usr/sbin
mkdir -p usr/local/sbin
%endif
-# Create locale, man and own help directories for every locale supported by glibc and ISO 639-2
+# Create and own basic list of locale, man and help directories supported by glibc and defined by ISO 639-2 standard
while read locale; do
echo "%ghost /usr/share/help/${locale}" >> $RPM_BUILD_DIR/filelist
# Skip glibc built-in locale C
[ "$locale" = "C" ] && continue
echo "%lang(${locale}) /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
- echo "%lang(${locale}) %ghost %config(missingok) /usr/share/man/${locale}" >>$RPM_BUILD_DIR/filelist
+ echo "%lang(${locale}) %ghost /usr/share/man/${locale}" >> $RPM_BUILD_DIR/filelist
mkdir -p -m 755 %{buildroot}/usr/share/locale/$locale/LC_MESSAGES
mkdir -p -m 755 %{buildroot}/usr/share/man/$locale/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
done < <(cat %{SOURCE2} %{SOURCE3} | grep -E -v '^#|^[[:space:]]*$' | sort | uniq)
-# Create and own locale directories for which we ship translations
-# TODO: do not create them, just own them
+# Own locale and man directories for which we ship translations
while read locale; do
- # Do not create directories for locales with charset definition, just own them
+ # Also own locale directories that include charset suffix
if [[ "$locale" =~ "own_charset" ]]; then
charset=${locale##own_charset:}
echo "%ghost /usr/share/locale/$charset" >>$RPM_BUILD_DIR/filelist
continue
fi
if [ -z "`grep \"/usr/share/locale/${locale}$\" $RPM_BUILD_DIR/filelist`" ]; then
- # TODO echo "%lang(${locale}) %ghost /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
- echo "%lang(${locale}) /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
- echo "%lang(${locale}) %ghost %config(missingok) /usr/share/man/${locale}" >> $RPM_BUILD_DIR/filelist
- mkdir -p -m 755 %{buildroot}/usr/share/locale/$locale/LC_MESSAGES
- mkdir -p -m 755 %{buildroot}/usr/share/man/$locale/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
+ echo "%lang(${locale}) %ghost /usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
+ echo "%ghost /usr/share/locale/${locale}/LC_MESSAGES" >> $RPM_BUILD_DIR/filelist
+ echo "%lang(${locale}) %ghost /usr/share/man/${locale}" >> $RPM_BUILD_DIR/filelist
+ for i in /usr/share/man/$locale/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}; do
+ echo "%ghost $i" >> $RPM_BUILD_DIR/filelist
+ done
fi
done < <(cat %{SOURCE1} | grep -E -v '^#|^[[:space:]]*$')
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-02 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02 5:12 [rpms/filesystem] rawhide: Own locale directories for which we ship translations but do not create them Martin Osvald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox