diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 5 | ||||
-rw-r--r-- | src/setup.py | 3 | ||||
-rw-r--r-- | src/sos.spec | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index c7564b88..4ceaad18 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,7 +64,7 @@ version: clean: @rm -fv *~ .*~ changenew ChangeLog.old $(NAME)-$(VERSION).tar.bz2 sosreport.1.gz -rpm: +rpm: mo @test -f sos.spec @mkdir -p $(TOPDIR)/SOURCES $(TOPDIR)/SRPMS $(TOPDIR)/RPMS $(TOPDIR)/BUILD @@ -86,3 +86,6 @@ rpm: pot: python tools/pygettext.py -o locale/sos.pot sosreport + +mo: + python tools/msgfmt.py locale/*/LC_MESSAGES/sos.po diff --git a/src/setup.py b/src/setup.py index acc0db66..26504147 100644 --- a/src/setup.py +++ b/src/setup.py @@ -9,5 +9,6 @@ setup( packages = ['sos', 'sos.plugins'], scripts = [], package_dir = {'': 'lib',}, - data_files = [('/usr/sbin', ['sosreport']), ('/usr/share/man/man1', ['sosreport.1']) ] + data_files = [ ('/usr/sbin', ['sosreport']), ('/usr/share/man/man1', ['sosreport.1']), ('/usr/share/locale/en', []), ('/usr/share/locale/it', []), ('/usr/share/locale/en/LC_MESSAGES', ['locale/en/LC_MESSAGES/sos.mo']), ('/usr/share/locale/it/LC_MESSAGES', ['locale/it/LC_MESSAGES/sos.mo']) + ] ) diff --git a/src/sos.spec b/src/sos.spec index 17b2b6ae..4b4237d7 100644 --- a/src/sos.spec +++ b/src/sos.spec @@ -4,6 +4,8 @@ %define version 1.7 %define release 1 +%define _localedir %_datadir/locale + Summary: A set of tools to gather troubleshooting information from a system Name: %{name} Version: %{version} @@ -44,6 +46,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_sbindir}/sosreport %{python_sitelib}/sos/ %{_mandir}/man1/sosreport.1* +%{_localedir}/*/LC_MESSAGES/sos.mo %doc README TODO LICENSE ChangeLog %changelog |