public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Osvald <mosvald@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/filesystem] rawhide: Own locale directories for which we ship translations but do not create them
Date: Tue, 02 Jun 2026 05:12:22 GMT [thread overview]
Message-ID: <178037714253.1.4007899231285119395.rpms-filesystem-0514cd9fdb34@fedoraproject.org> (raw)
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:]]*$')
reply other threads:[~2026-06-02 5:12 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=178037714253.1.4007899231285119395.rpms-filesystem-0514cd9fdb34@fedoraproject.org \
--to=mosvald@redhat.com \
--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