/[packages]/updates/1/firefox/current/SPECS/firefox.spec
ViewVC logotype

Diff of /updates/1/firefox/current/SPECS/firefox.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20612 by blino, Sun Jan 16 22:32:37 2011 UTC revision 42265 by erwan, Thu Jan 27 20:42:05 2011 UTC
# Line 26  Line 26 
26  # this seems fragile, so require the exact version or later (#58754)  # this seems fragile, so require the exact version or later (#58754)
27  %define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)  %define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
28    
 %if %mdkversion >= 200900  
29  %define _use_syshunspell 1  %define _use_syshunspell 1
 %else  
 %define _use_syshunspell 0  
 %endif  
30    
 %if %mandriva_branch == Cooker  
 # Cooker  
31  %define release %mkrel -c %prel 1  %define release %mkrel -c %prel 1
 %else  
 # Old distros  
 %define subrel 1  
 %define release %mkrel 0  
 %endif  
32    
33  Summary:        Next generation web browser  Summary:        Next generation web browser
34  Name:           firefox  Name:           firefox
# Line 73  BuildRequires: gtk+2-devel Line 62  BuildRequires: gtk+2-devel
62  BuildRequires:  libx11-devel  BuildRequires:  libx11-devel
63  BuildRequires:  unzip  BuildRequires:  unzip
64  BuildRequires:  zip  BuildRequires:  zip
 #(tpg) older versions doesn't support apng extension  
 %if %mdkversion >= 200900  
65  BuildRequires:  libpng-devel >= 1.2.25-2  BuildRequires:  libpng-devel >= 1.2.25-2
 %endif  
66  BuildRequires:  libjpeg-devel  BuildRequires:  libjpeg-devel
67  BuildRequires:  zlib-devel  BuildRequires:  zlib-devel
68  BuildRequires:  glib2-devel  BuildRequires:  glib2-devel
# Line 87  BuildRequires: nspr-devel >= 2:4.8.7 Line 73  BuildRequires: nspr-devel >= 2:4.8.7
73  BuildRequires:  startup-notification-devel  BuildRequires:  startup-notification-devel
74  BuildRequires:  dbus-glib-devel  BuildRequires:  dbus-glib-devel
75  BuildRequires:  python  BuildRequires:  python
 # (fhimpe) Starting from Firefox 3.0.1, at least sqlite 3.5.9 is needed  
 # so only use system sqlite on Mandriva >= 2009.0  
 # (eugeni) Starting from Firefox 3.0.11, at least sqlite 3.6.7 is required  
 %if %mdkversion >= 200800  
76  Requires:       %{mklibname sqlite3_ 0} >= %{sqlite3_version}  Requires:       %{mklibname sqlite3_ 0} >= %{sqlite3_version}
 # (tpg) older releases does not have SQLITE_ENABLE_UNLOCK_NOTIFY enabled  
77  BuildRequires:  libsqlite3-devel >= 3.7.0.1-2  BuildRequires:  libsqlite3-devel >= 3.7.0.1-2
 %endif  
78  BuildRequires:  valgrind  BuildRequires:  valgrind
79  BuildRequires:  rootcerts  BuildRequires:  rootcerts
80  BuildRequires:  libxt-devel  BuildRequires:  libxt-devel
# Line 105  BuildRequires: doxygen Line 85  BuildRequires: doxygen
85  BuildRequires:  libgnome-vfs2-devel  BuildRequires:  libgnome-vfs2-devel
86  BuildRequires:  libgnome2-devel  BuildRequires:  libgnome2-devel
87  BuildRequires:  libgnomeui2-devel  BuildRequires:  libgnomeui2-devel
 %if %mdkversion >= 200900  
88  BuildRequires:  java-rpmbuild  BuildRequires:  java-rpmbuild
 %endif  
 %if %mdkversion < 200900  
 BuildRequires:  java-1.5.0-devel  
 %endif  
89  BuildRequires:  xulrunner-devel >= %xulrunner_version%{?prel:-0.%prel}  BuildRequires:  xulrunner-devel >= %xulrunner_version%{?prel:-0.%prel}
90  BuildRequires:  wget  BuildRequires:  wget
91  BuildRequires:  libnotify-devel  BuildRequires:  libnotify-devel
 %if %mdkversion >= 201000  
92  BuildRequires:  cairo-devel >= 1.8.8  BuildRequires:  cairo-devel >= 1.8.8
 %endif  
93  BuildRequires:  yasm  BuildRequires:  yasm
94  BuildRequires:  mesagl-devel  BuildRequires:  mesagl-devel
95  %if %{prel}  %if %{prel}
# Line 126  Provides:      webclient Line 99  Provides:      webclient
99  Requires:       indexhtml  Requires:       indexhtml
100  Requires:       xdg-utils  Requires:       xdg-utils
101  %define ff_deps myspell-en_US nspluginwrapper  %define ff_deps myspell-en_US nspluginwrapper
 %if %mdkversion >= 200810  
102  Suggests:       %{ff_deps}  Suggests:       %{ff_deps}
 %else  
 Requires:       %{ff_deps}  
 %endif  
103  Requires(post): desktop-file-utils  Requires(post): desktop-file-utils
104  Requires(postun):       desktop-file-utils  Requires(postun):       desktop-file-utils
105  # fixes bug #42096  # fixes bug #42096
106  Requires:       mailcap  Requires:       mailcap
 # ff3 now provides /usr/bin/firefox and mozilla-firefox  
 Conflicts:      mozilla-firefox < 2.0.0.16-2  
 Obsoletes:      mozilla-firefox-gnome-support  
 Obsoletes:      mozilla-firefox < 3.0  
107  Provides:       mozilla-firefox = %{epoch}:%{version}-%{release}  Provides:       mozilla-firefox = %{epoch}:%{version}-%{release}
 Obsoletes:      mozilla-firefox-theme-gnome  
 Obsoletes:      mozilla-firefox-theme-kdeff <= 0.4  
 # since 3.0.1-2 we do not have ff libification anymore  
 Obsoletes:      %{mklibname firefox 3} < 3.0.1-2  
 # (salem) while we dont have a better solution, we need to obsolete them all  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.1  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.3  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.4  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.6  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.8  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.11  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.12  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.13  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.14  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.15  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.16  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.17  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.18  
 Obsoletes:      %mklibname mozilla-firefox 2.0.0.19  
108  Requires:       xulrunner >= %{xulrunner_version}%{?prel:-0.%prel}  Requires:       xulrunner >= %{xulrunner_version}%{?prel:-0.%prel}
109  Requires:       %{mklibname xulrunner %xulrunner_version}  Requires:       %{mklibname xulrunner %xulrunner_version}
110  BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot  BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
# Line 215  perl ./certdata.perl < /etc/pki/tls/mozi Line 161  perl ./certdata.perl < /etc/pki/tls/mozi
161  popd  popd
162    
163  %build  %build
 %if %mdkversion >= 200900  
164  %setup_compile_flags  %setup_compile_flags
 %else  
 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;  
 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;  
 FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ;  
 %endif  
165  %serverbuild  %serverbuild
166  export PREFIX="%{_prefix}"  export PREFIX="%{_prefix}"
167  export LIBDIR="%{_libdir}"  export LIBDIR="%{_libdir}"
# Line 243  export BUILD_OFFICIAL=1 Line 183  export BUILD_OFFICIAL=1
183          --with-system-jpeg \          --with-system-jpeg \
184          --with-system-zlib \          --with-system-zlib \
185          --with-system-bz2 \          --with-system-bz2 \
 %if %mdkversion >= 200900  
186          --enable-system-png \          --enable-system-png \
 %else  
         --disable-system-png \  
 %endif  
187          --with-system-nspr \          --with-system-nspr \
188          --without-system-nss \          --without-system-nss \
189          --disable-ldap \          --disable-ldap \
# Line 276  export BUILD_OFFICIAL=1 Line 212  export BUILD_OFFICIAL=1
212          --enable-svg-renderer=cairo \          --enable-svg-renderer=cairo \
213          --enable-single-profile \          --enable-single-profile \
214          --enable-startup-notification \          --enable-startup-notification \
 %if %mdkversion >= 201000  
215          --enable-system-cairo \          --enable-system-cairo \
 %else  
         --disable-system-cairo \  
 %endif  
216          --disable-javaxpcom \          --disable-javaxpcom \
217          --enable-optimize \          --enable-optimize \
218          --enable-safe-browsing \          --enable-safe-browsing \
# Line 311  export BUILD_OFFICIAL=1 Line 243  export BUILD_OFFICIAL=1
243          --disable-necko-wifi \          --disable-necko-wifi \
244          --disable-tests \          --disable-tests \
245          --disable-mochitest \          --disable-mochitest \
246          --with-distribution-id=com.mandriva \          --with-distribution-id=com.mageia \
247          --with-valgrind \          --with-valgrind \
248          --enable-jemalloc \          --enable-jemalloc \
 %if %mdkversion >= 200800  
249          --enable-system-sqlite \          --enable-system-sqlite \
 %else  
         --disable-system-sqlite \  
 %endif  
250          --with-system-libxul \          --with-system-libxul \
251          --with-libxul-sdk=`pkg-config --variable=sdkdir libxul` \          --with-libxul-sdk=`pkg-config --variable=sdkdir libxul` \
252          --with-java-include-path=%{java_home}/include \          --with-java-include-path=%{java_home}/include \
# Line 375  cp -f %{SOURCE5} %{buildroot}%{mozillali Line 303  cp -f %{SOURCE5} %{buildroot}%{mozillali
303  cp -f %{SOURCE6} %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  cp -f %{SOURCE6} %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml
304  cp -f %{SOURCE8} %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  cp -f %{SOURCE8} %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml
305    
 %if %mdkversion == 200900  
 sed -i 's/@DISTRO_VALUE@/101490/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDV20090/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 %if %mdkversion == 200810  
 sed -i 's/@DISTRO_VALUE@/1681/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDV20081/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 %if %mdkversion == 200800  
 sed -i 's/@DISTRO_VALUE@/1680/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDV20080/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 %if %mdkversion == 200710  
 sed -i 's/@DISTRO_VALUE@/1655/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDV20071/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 %if %mdkversion == 200700  
 sed -i 's/@DISTRO_VALUE@/101489/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDV20070/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 %if %mdkversion == 300  
 sed -i 's/@DISTRO_VALUE@/101471/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  
 sed -i 's/@DISTRO_VALUE@/MDVCorp/' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  
 %else  
 # default  
306  sed -i 's/@DISTRO_VALUE@/ffx/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml  sed -i 's/@DISTRO_VALUE@/ffx/' %{buildroot}%{mozillalibdir}/searchplugins/askcom.xml
307  sed -i 's/@DISTRO_VALUE@//' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml  sed -i 's/@DISTRO_VALUE@//' %{buildroot}%{mozillalibdir}/searchplugins/exalead.xml
 %endif #corp  
 %endif #200700  
 %endif #200710  
 %endif #200800  
 %endif #200810  
 %endif #200900  
308    
309  #ghost files  #ghost files
310  touch %{buildroot}%{mozillalibdir}/components/compreg.dat  touch %{buildroot}%{mozillalibdir}/components/compreg.dat
# Line 433  cat <<FIN >%{buildroot}%{_sys_macros_dir Line 330  cat <<FIN >%{buildroot}%{_sys_macros_dir
330  FIN  FIN
331    
332  %post  %post
 %if %mdkversion < 200900  
 %{update_menus}  
 %{update_desktop_database}  
 %endif  
333  unset DISPLAY  unset DISPLAY
334  %{mozillalibdir}/firefox-rebuild-databases.pl  %{mozillalibdir}/firefox-rebuild-databases.pl
335  if [ ! -r /etc/sysconfig/oem ]; then  if [ ! -r /etc/sysconfig/oem ]; then
# Line 448  if [ ! -r /etc/sysconfig/oem ]; then Line 341  if [ ! -r /etc/sysconfig/oem ]; then
341    ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark  %{mozillalibdir}/defaults/profile/bookmarks.html    ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark  %{mozillalibdir}/defaults/profile/bookmarks.html
342  fi  fi
343    
 %if %mdkversion < 200900  
 %postun  
 %{clean_menus}  
 %{clean_desktop_database}  
 %endif  
   
344  %clean  %clean
345  [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}  [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
346    

Legend:
Removed from v.20612  
changed lines
  Added in v.42265

  ViewVC Help
Powered by ViewVC 1.1.30