SPECS: mozilla-firefox-bin.spec (NEW) - first draft

shadzik shadzik at pld-linux.org
Mon Oct 30 18:24:47 CET 2006


Author: shadzik                      Date: Mon Oct 30 17:24:47 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- first draft

---- Files affected:
SPECS:
   mozilla-firefox-bin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mozilla-firefox-bin.spec
diff -u /dev/null SPECS/mozilla-firefox-bin.spec:1.1
--- /dev/null	Mon Oct 30 18:24:47 2006
+++ SPECS/mozilla-firefox-bin.spec	Mon Oct 30 18:24:42 2006
@@ -0,0 +1,103 @@
+# $Revision$, $Date$
+%define		realname	firefox
+Summary:	Mozilla Firefox web browser
+Summary(pl):	Mozilla Firefox - przeglądarka WWW
+Name:		mozilla-firefox-bin
+Version:	2.0
+Release:	1
+License:	MPL/LGPL
+Group:		X11/Applications/Networking
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0/linux-i686/pl/%{realname}-%{version}.tar.gz
+# Source0-md5:	22330d74779d1b9b98d3dbc92a82628f
+Source1:	%{name}.desktop
+URL:		http://www.mozilla.org/projects/firefox/
+BuildRequires:	automake
+BuildRequires:	perl-modules
+BuildRequires:	zip
+Requires:	nspr >= 1:4.6-0.20041030.1
+Requires:	nss >= 3.8
+Provides:	wwwbrowser
+Obsoletes:	mozilla-firebird
+Conflicts:	mozilla-firefox
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_firefoxdir	%{_libdir}/%{name}
+# mozilla and firefox provide their own versions
+%define		_noautoreqdep		libgkgfx.so libgtkembedmoz.so libgtkxtbin.so libjsj.so libmozjs.so libxpcom.so libxpcom_compat.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 %{realname}
+
+%build
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d \
+	$RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
+	$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_firefoxdir}} \
+	$RPM_BUILD_ROOT{%{_includedir}/%{name}/idl,%{_pkgconfigdir}}
+
+cp -r * $RPM_BUILD_ROOT%{_firefoxdir}
+ln -s %{_firefoxdir}/firefox $RPM_BUILD_ROOT%{_bindir}/firefox
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun
+if [ "$1" == "0" ]; then
+	rm -rf %{_firefoxdir}/chrome/overlayinfo
+	rm -f  %{_firefoxdir}/chrome/*.rdf
+	rm -rf %{_firefoxdir}/components
+	rm -rf %{_firefoxdir}/extensions
+fi
+
+%files
+%defattr(644,root,root,755)
+%{_firefoxdir}/libsoftokn3.chk
+%attr(755,root,root) %{_bindir}/firefox
+%dir %{_firefoxdir}
+%{_firefoxdir}/res
+%dir %{_firefoxdir}/components
+%attr(755,root,root) %{_firefoxdir}/components/*.so
+%{_firefoxdir}/components/*.js
+%{_firefoxdir}/components/*.xpt
+%{_firefoxdir}/plugins
+%{_firefoxdir}/searchplugins
+%{_firefoxdir}/icons
+%{_firefoxdir}/defaults
+%{_firefoxdir}/greprefs
+%{_firefoxdir}/browserconfig.properties
+%{_firefoxdir}/dictionaries
+%attr(755,root,root) %{_firefoxdir}/*.so
+%attr(755,root,root) %{_firefoxdir}/*.sh
+%attr(755,root,root) %{_firefoxdir}/m*
+%attr(755,root,root) %{_firefoxdir}/f*
+%attr(755,root,root) %{_firefoxdir}/x*
+#%{_pixmapsdir}/*
+%{_desktopdir}/*
+
+%dir %{_firefoxdir}/chrome
+%{_firefoxdir}/chrome/*
+%dir %{_firefoxdir}/chrome/icons
+%{_firefoxdir}/chrome/icons/default
+
+%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$
+Revision 1.1  2006/10/30 17:24:42  shadzik
+- first draft
+
================================================================


More information about the pld-cvs-commit mailing list