Firefox
Maciej Witaszek
maciek2w at gmail.com
Mon Oct 17 01:21:00 CEST 2005
Hi,
I attach a SPEC file that build firefox rpm package from binary version from
firefox.pl. It builds polish version, but it's easy to change language in
source url. Package provides "mozilla-firefox" for firefox plugins.
It should conflicts with "mozilla-firefox", but unfortunately it's
unable to install package that has the same "Provides" and "Conflicts".
So it conflicts with "mozilla-firefox-lang-resources" that
is required to install mozilla-firefox.
Maybe this help you, when compiled version doesn't work.
Best regards,
Maciek
-------------- next part --------------
# $Revision:$, $Date:$
Summary: Mozilla Firefox web browser - binary version from firefox.pl
Summary(pl): Mozilla Firefox - przeglądarka WWW - wersja binarna z firefox.pl
Name: mozilla-firefox-bin
%define _realname mozilla-firefox
Version: 1.0.7
Release: 0.1
Epoch: 0
License: MPL/LGPL
Group: Applications
Source0: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0.7/linux-i686/pl-PL/firefox-%{version}.tar.gz
# Source0-md5: 531ef6a13082f524d7eb8143ee2a3d69
Source1: %{_realname}.desktop
Source2: %{_realname}.sh
URL: http://firefox.pl/
Conflicts: mozilla-firefox-lang-resources
Provides: mozilla-firefox
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreq libgkgfx.so libgtkembedmoz.so libgtkxtbin.so libjsj.so libmozjs.so libxpcom.so libxpcom_compat.so libgssapi_krb5.so liblinc.so
%define _noautoprovfiles libplc4.so libplds4.so
%description
Mozilla Firefox is an open-source web browser, designed for standards
compliance, performance and portability.
%description -l pl
Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
myślą o zgodności ze standardami, wydajnością i przenośnością.
%prep
%setup -q -n firefox
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/%{_realname}
install -d $RPM_BUILD_ROOT%{_desktopdir}
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_pixmapsdir}
cp -R * $RPM_BUILD_ROOT%{_libdir}/%{_realname}
install icons/mozicon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox.png
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{_realname}
%clean
rm -rf $RPM_BUILD_ROOT
%post
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
%postun
umask 022
[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
%files
%defattr(644,root,root,755)
%doc LICENSE README.txt
%dir %{_libdir}/%{_realname}
%{_libdir}/%{_realname}/browserconfig.properties
%{_libdir}/%{_realname}/components.ini
%{_libdir}/%{_realname}/libsoftokn3.chk
%{_libdir}/%{_realname}/chrome/*
%{_libdir}/%{_realname}/components/*
%{_libdir}/%{_realname}/defaults/*
%{_libdir}/%{_realname}/extensions/*
%{_libdir}/%{_realname}/greprefs/*
%{_libdir}/%{_realname}/icons/*
%{_libdir}/%{_realname}/plugins/*
%{_libdir}/%{_realname}/res/*
%{_libdir}/%{_realname}/searchplugins/*
%{_desktopdir}/*
%{_pixmapsdir}/mozilla-firefox.png
%attr(755,root,root) %{_libdir}/%{_realname}/*.so
%attr(755,root,root) %{_libdir}/%{_realname}/*.sh
%attr(755,root,root) %{_libdir}/%{_realname}/m*
%attr(755,root,root) %{_libdir}/%{_realname}/f*
#%attr(755,root,root) %{_libdir}/%{name}/reg*
%attr(755,root,root) %{_libdir}/%{_realname}/x*
#%attr(755,root,root) %{_libdir}/%{name}/T*
%attr(755,root,root) %{_bindir}/%{_realname}
%exclude %{_libdir}/%{_realname}/init.d
%exclude %{_libdir}/%{_realname}/LICENSE
%exclude %{_libdir}/%{_realname}/README.txt
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$
More information about the pld-devel-en
mailing list