]> git.pld-linux.org Git - packages/firefox.git/blobdiff - mozilla-firefox.spec
- initial, NFY
[packages/firefox.git] / mozilla-firefox.spec
index 401a18fea3e8dc9e267b0fecf6aa4008782577fb..034c70d394a73849c7c8a04d447e263f4f62d11f 100644 (file)
@@ -1,25 +1,25 @@
 #
-# TODO: amd64 port (problably easy basing on mozilla-amd64 patch)
-#
 # Conditional build:
 %bcond_with    tests   # enable tests (whatever they check)
 #
 Summary:       Mozilla Firefox web browser
 Summary(pl):   Mozilla Firefox - przeglĀ±darka WWW
 Name:          mozilla-firefox
-Version:       0.8
-Release:       2.1
+Version:       0.9.2
+Release:       1
 License:       MPL/LGPL
 Group:         X11/Applications/Networking
-Source0:       http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/firefox-source-%{version}.tar.bz2
-# Source0-md5: cdc85152f4219bf3e3f1a8dc46e04654
+Source0:       http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/firefox-%{version}-source.tar.bz2
+# Source0-md5: eb6edaa488fb596b08d4ba50072546e1
 Source1:       %{name}.desktop
 Patch0:                %{name}-alpha-gcc3.patch
 Patch1:                %{name}-nspr.patch
 Patch2:                %{name}-nss.patch
+Patch3:                %{name}-lib_path.patch
 URL:           http://www.mozilla.org/projects/firefox/
+BuildRequires: automake
 BuildRequires: gtk+2-devel >= 2.0.0
-BuildRequires:  libIDL-devel >= 0.8.0
+BuildRequires: libIDL-devel >= 0.8.0
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libpng-devel >= 1.2.0
 BuildRequires: libstdc++-devel
@@ -65,17 +65,18 @@ Angloj
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-export CFLAGS="%{optflags}"
-export CXXFLAGS="%{optflags}"
+export CFLAGS="%{rpmcflags}"
+export CXXFLAGS="%{rpmcflags}"
 export MOZ_PHOENIX="1"
 
 cp -f /usr/share/automake/config.* build/autoconf
 cp -f /usr/share/automake/config.* nsprpub/build/autoconf
 cp -f /usr/share/automake/config.* directory/c-sdk/config/autoconf
 %configure2_13 \
-%if %{with debug}
+%if %{?debug:1}0
        --enable-debug \
        --enable-debug-modules \
 %else
@@ -97,7 +98,7 @@ cp -f /usr/share/automake/config.* directory/c-sdk/config/autoconf
        --enable-crypto \
        --enable-freetype2 \
        --enable-mathml \
-       --enable-optimize="%{optflags}" \
+       --enable-optimize="%{rpmcflags}" \
        --enable-plaintext-editor-only \
        --enable-reorder \
        --enable-strip \
@@ -146,6 +147,20 @@ rm -rf $RPM_BUILD_ROOT
 umask 022
 cat %{_firefoxdir}/chrome/*-installed-chrome.txt >%{_firefoxdir}/chrome/installed-chrome.txt
 
+cat << EOF
+
+ ****************************************************
+ *                                                  *
+ *  NOTE:                                           *
+ *  After upgrade from 0.9 you have to              *
+ *  manually remove ~/.phoenix dir, and answer:     *
+ *  "don't import anything" when asked about        *
+ *  importing settings                              *
+ *                                                  *
+ ****************************************************
+
+EOF
+
 %postun
 if [ "$1" != "0" ]; then
        umask 022
This page took 0.036342 seconds and 4 git commands to generate.