From 4461a74403a3e931f5ca6f7a101ca66ff77d78e1 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Tue, 9 Feb 2010 13:14:25 -0500 Subject: Add support for building internationalized translations. A new directory install/po has been added which contains all the translations for all files in IPA. The build has been agumented to build these files. Also the autogen.sh script was mostly replaced by autoreconf, the preferred method. The old autogen.sh sript also had some serious bugs in the way it compared versions which caused it to run old versions of some of the tools, using standared autoreconf is much better. --- ipa.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipa.spec.in') diff --git a/ipa.spec.in b/ipa.spec.in index c264de143..3de1a2a7f 100644 --- a/ipa.spec.in +++ b/ipa.spec.in @@ -9,6 +9,7 @@ %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %global POLICYCOREUTILSVER 1.33.12-1 +%global gettext_domain ipa Name: ipa Version: __VERSION__ @@ -44,6 +45,7 @@ BuildRequires: python-setuptools BuildRequires: python-krbV BuildRequires: xmlrpc-c-devel BuildRequires: libcurl-devel +BuildRequires: gettext %endif %description @@ -251,6 +253,8 @@ cd .. %else make client-install DESTDIR=%{buildroot} %endif +%find_lang %{gettext_domain} + %if ! %{ONLY_CLIENT} # Remove .la files from libtool - we don't want to package @@ -461,7 +465,7 @@ fi %{_sysconfdir}/bash_completion.d %endif -%files python +%files python -f %{gettext_domain}.lang %doc LICENSE README %defattr(-,root,root,-) %dir %{python_sitelib}/ipapython -- cgit