From b36f0b680ad77eeae4085137c2467f2c69e2a1a2 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 19 Oct 2009 08:51:10 -0400 Subject: Better detect installed language files --- contrib/sssd.spec.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 2f33e2f7..c79da9c9 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -87,6 +87,10 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +# Prepare language files +/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sss_daemon +/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sss_client + # Copy default sssd.conf file mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd install -m600 server/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf @@ -113,7 +117,7 @@ fi %clean rm -rf $RPM_BUILD_ROOT -%files -f locator.filelist +%files -f locator.filelist -f sss_daemon.lang %defattr(-,root,root,-) %doc COPYING %{_initrddir}/%{name} @@ -148,14 +152,12 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/sss_userdel.8* %{_mandir}/man8/sss_usermod.8* %{_mandir}/man8/sssd_krb5_locator_plugin.8* -%{_datadir}/locale/*/LC_MESSAGES/sss_client.mo -%{_datadir}/locale/*/LC_MESSAGES/sss_daemon.mo %{python_sitearch}/pysss.so %{python_sitelib}/*.py* %{?fedora:%{python_sitelib}/*.egg-info} -%files client +%files client -f sss_client.lang %defattr(-,root,root,-) /%{_lib}/libnss_sss.so.2 /%{_lib}/security/pam_sss.so @@ -182,6 +184,9 @@ if [ $1 -ge 1 ] ; then fi %changelog +* Mon Sep 28 2009 Sumit Bose - 0.6.0-0 +- New upstream release 0.6.0 + * Fri Sep 25 2009 Simo Sorce - 0.5.0-1 - Split package into server and clients components - Convert to new config file format -- cgit