Skip to content

Commit 3a9f58c

Browse files
jnarebgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 828ea97 commit 3a9f58c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
134134
%else
135135
rm -rf $RPM_BUILD_ROOT%{_mandir}
136136
%endif
137+
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
137138

138139
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
139140
install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git

0 commit comments

Comments
 (0)