rpms/thunderbird/F-9 thunderbird.spec,1.115,1.116

Christopher Aillon (caillon) fedora-extras-commits at redhat.com
Mon Apr 7 22:33:51 UTC 2008


Author: caillon

Update of /cvs/extras/rpms/thunderbird/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17456/F-9

Modified Files:
	thunderbird.spec 
Log Message:
* Mon Apr  7 2008 Christopher Aillon <caillon at redhat.com> 2.0.0.12-4
- Add %lang attributes to langpacks



Index: thunderbird.spec
===================================================================
RCS file: /cvs/extras/rpms/thunderbird/F-9/thunderbird.spec,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- thunderbird.spec	15 Mar 2008 17:13:25 -0000	1.115
+++ thunderbird.spec	7 Apr 2008 22:29:55 -0000	1.116
@@ -8,7 +8,7 @@
 Summary:        Mozilla Thunderbird mail/newsgroup client
 Name:           thunderbird
 Version:        2.0.0.12
-Release:        3%{?dist}
+Release:        4%{?dist}
 URL:            http://www.mozilla.org/projects/thunderbird/
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -228,6 +228,7 @@
 %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
 
 # Install langpacks
+touch ../%{name}.lang
 %{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/extensions
 %{__tar} xjf %{SOURCE1}
 for langpack in `ls thunderbird-langpacks/*.xpi`; do
@@ -250,6 +251,10 @@
   %{__rm} -rf locale
   cd -
   %{__rm} -rf $tmpdir
+
+  language=`echo $language | sed -e 's/-/_/g'`
+  extensiondir=`echo $extensiondir | sed -e "s,^$RPM_BUILD_ROOT,,"`
+  echo "%%lang($language) $extensiondir" >> ../%{name}.lang
 done
 %{__rm} -rf thunderbird-langpacks
 
@@ -279,7 +284,7 @@
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 fi
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %attr(755,root,root) %{_bindir}/thunderbird
 %attr(644,root,root) %{_datadir}/applications/mozilla-thunderbird.desktop
@@ -295,7 +300,8 @@
 %attr(644,root,root) %{mozappdir}/components/*.js
 %{mozappdir}/defaults
 %{mozappdir}/dictionaries
-%{mozappdir}/extensions
+%dir %{mozappdir}/extensions
+%{mozappdir}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
 %{mozappdir}/greprefs
 %{mozappdir}/icons
 %{mozappdir}/init.d
@@ -323,6 +329,9 @@
 #===============================================================================
 
 %changelog
+* Mon Apr  7 2008 Christopher Aillon <caillon at redhat.com> 2.0.0.12-4
+- Add %%lang attributes to langpacks
+
 * Sat Mar 15 2008 Christopher Aillon <caillon at redhat.com> 2.0.0.12-3
 - Avoid conflict between gecko debuginfos
 




More information about the fedora-extras-commits mailing list