git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git.spec: Workaround localized messages not put in any RPM

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 3, 2012, 21:49 UTC
Message-ID
<201202032249.07594.jnareb@gmail.com>
In-Reply-To
<201202032155.26532.jnareb@gmail.com>

Currently building git RPM from tarball results in the following error:

  RPM build errors:
     Installed (but unpackaged) file(s) found:
     /usr/share/locale/is/LC_MESSAGES/git.mo

This is caused by the fact that localized messages do not have their place in some RPM package. Let's postpone decision where they should be put (be it git-i18n-Icelandic, or git-i18n, or git package itself) for later by removing locale files at the end of install phase.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 git.spec.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git.spec.in b/git.spec.in
index c562c62..b93df10 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -134,6 +134,7 @@ find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
 %else
 rm -rf $RPM_BUILD_ROOT%{_mandir}
 %endif
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
 
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
 install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
-- 
1.7.9
Previous: Jakub Narebski
Message 11 of 11 in “[ANNOUNCE] Git 1.7.9”
  1. Junio C HamanoJan 27, 2012
  2. A note from the maintainerJunio C Hamano, Jan 27, 2012
  3. What's cooking in git.git (Jan 2012, #06; Fri, 27)Junio C Hamano, Jan 27, 2012
  4. Junio C HamanoJan 28, 2012
  5. Felipe ContrerasJan 28, 2012
  6. Matthieu MoyJan 30, 2012
  7. Jakub NarebskiFeb 2, 2012
  8. Jakub NarebskiFeb 3, 2012
  9. Junio C HamanoFeb 3, 2012
  10. Jakub NarebskiFeb 3, 2012
  11. git.spec: Workaround localized messages not put in any RPMJakub Narebski, Feb 3, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.