summaryrefslogtreecommitdiffstats
path: root/ipa.spec.in
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2010-02-09 13:14:25 -0500
committerRob Crittenden <rcritten@redhat.com>2010-02-09 22:07:18 -0500
commit4461a74403a3e931f5ca6f7a101ca66ff77d78e1 (patch)
tree86e03d45cae885a4484bf521a04c14826660aa4d /ipa.spec.in
parent0ce253fae4916a81310172798cce4433a600a862 (diff)
downloadfreeipa-4461a74403a3e931f5ca6f7a101ca66ff77d78e1.tar.gz
freeipa-4461a74403a3e931f5ca6f7a101ca66ff77d78e1.tar.xz
freeipa-4461a74403a3e931f5ca6f7a101ca66ff77d78e1.zip
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.
Diffstat (limited to 'ipa.spec.in')
-rw-r--r--ipa.spec.in6
1 files changed, 5 insertions, 1 deletions
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