Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > e6d12e677f54b250893a8921e7a8ee5f > files > 2

mozilla-firefox-fr-1.0.2-2mdk.src.rpm

%define language fr-FR
%define locale %(echo %language|sed -e 's/-.*//g')
%define langname French
%define name mozilla-firefox-%{locale}
%define version 1.0.2
%define release 2mdk
%define _buildroot %{_tmppath}/%{name}-buildroot
%define firefox_version 1.0.2
%define mozillalibdir %{_libdir}/mozilla-firefox-%{firefox_version}
%define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{firefox_version}/linux-i686/xpi/

Summary: %{langname} interface for Firefox 
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{xpidir}/%language.xpi
License: GPL
Group: Networking/WWW
Url: http://www.mozilla.org/products/firefox/
BuildRoot: %{_buildroot}
BuildRequires: mozilla-firefox
PreReq: mozilla-firefox = %{firefox_version}
Requires: locales-%{locale}

%description
%{langname} localisation for Firefox

%prep
%setup -q -c

%build

%install
rm -rf %buildroot
# Jar for the translation
mkdir -p %buildroot%{mozillalibdir}/chrome/
cp chrome/%language.jar %buildroot%{mozillalibdir}/chrome/
# installed-chrome.txt addition
mkdir -p %buildroot%{mozillalibdir}/chrome/rc.d/
cat << EOF > %buildroot%{mozillalibdir}/chrome/rc.d/10_%name.txt
locale,install,url,jar:resource:/chrome/embed-sample.jar!/locale/%language/embed/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/global/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/global-region/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/global-platform/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/inspector/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/necko/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/mozapps/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/passwordmgr/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/pippki/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/pipnss/
locale,install,url,jar:resource:/chrome/%{language}.jar!/locale/help/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/%language/autoconfig/
locale,install,url,jar:resource:/chrome/inspector.jar!/locale/%language/inspector/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/browser/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/browser-region/
locale,install,url,jar:resource:/chrome/%language.jar!/locale/cookie/
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root)
%_libdir/mozilla-firefox-%{firefox_version}/chrome/%language.jar
%_libdir/mozilla-firefox-%{firefox_version}/chrome/rc.d/10_%name.txt

%post -p %{mozillalibdir}/mozilla-rebuild-databases.pl

%postun -p %{mozillalibdir}/mozilla-rebuild-databases.pl

%changelog
* Sat Apr 09 2005 Nicolas Lécureuil <neoclust@mandrake.org> 1.0.2-2mdk
- Really rebuild for 1.0.2

* Thu Mar 24 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.2-1mdk
- rebuild for Firefox 1.0.2

* Tue Mar 22 2005 Nicolas Lécureuil <neoclust@mandrake.org> 1.0.1-2mdk
- Fix arch

* Sat Mar 05 2005 Sebastien Savarin <plouf@mandrake.org> 1.0.1-1mdk
- rebuild for 1.0.1

* Thu Feb 17 2005 Stefan van der Eijk <stefan@eijk.nu> 1.0-4mdk
- fix bug #6574

* Wed Dec 15 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-3mdk
- fix rc file

* Wed Dec 15 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-2mdk
- add fixes from the it package

* Tue Nov 16 2004 Jean-Michel Dault <jmdault@revolutionlinux.com> 1.0-1mdk
- 1.0 final

* Mon Oct 11 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.10.1-1mdk
- update to mozilla-firefox 0.10.1

* Wed Apr 21 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-11mdk
- Use the new rc.d extension for the installed-chrome.txt modifications

* Sun Apr 04 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-10mdk
- Mozilla has been patched to launch the good langagei -> cleanup the
  installed-chrome.txt 

* Thu Mar 31 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-9mdk
- Fix the duplicate info in installed-chrome.txt (ticket #3)

* Mon Mar 29 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-8mdk
- Correct the permissions for the files distributed
- Fix the uninstall script

* Sun Mar 28 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-7mdk
- Correct the permissions for the files distributed

* Sun Mar 28 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-6mdk
- Use the jar files and the method from Jean-Michel Dault

* Thu Mar 25 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-5mdk
- Do not alter the chrome registry (alternate method suggested by frenchmozilla.org)

* Mon Mar 21 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-4mdk
- Do some grepping and cating to be cleaner (only if no fr-FR version has been installed)

* Mon Mar 21 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-3mdk
- Install the chrome registry in the post-install script in order to avoid a conflict

* Mon Mar 21 2004 Benoit des Ligneris <bdesligneris@revolutionlinux.com> 0.8-2mdk
- Require mozilla-firefox (instead fo firefox) for easy install

* Sun Mar  14 2004 Dominic Duval <dd@revolutionlinux.com> 0.8-1mdk
- Created mozilla-firefox-i10n-fr package

# end of file