aboutsummaryrefslogtreecommitdiff
path: root/git.spec.in
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2012-02-03 22:49:07 +0100
committerJunio C Hamano <gitster@pobox.com>2012-02-03 23:06:30 -0800
commit3a9f58c00a4fd0bee8f1b01abcd2656190979518 (patch)
treed6eda6a15ff346cab35019884a2d70f26c9d60bc /git.spec.in
parent828ea97de486c1693d6e4f2c7347acb50235a85d (diff)
downloadgit-3a9f58c00a4fd0bee8f1b01abcd2656190979518.tar.gz
git-3a9f58c00a4fd0bee8f1b01abcd2656190979518.tar.xz
git.spec: Workaround localized messages not put in any RPM
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.spec.in')
-rw-r--r--git.spec.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.spec.in b/git.spec.in
index c562c6228..b93df109c 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