MozillaFirefox/firefox-esr.spec
branchesr17
changeset 582 185659cb030f
parent 581 0e7d7fab8e47
child 593 0bf9876985d9
equal deleted inserted replaced
581:0e7d7fab8e47 582:185659cb030f
     1 #
     1 #
     2 # spec file for package MozillaFirefox
     2 # spec file for package firefox-esr
     3 #
     3 #
     4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
     4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
     5 #               2006-2012 Wolfgang Rosenauer
     5 #               2006-2012 Wolfgang Rosenauer
     6 #
     6 #
     7 # All modifications and additions to the file contributed by third parties
     7 # All modifications and additions to the file contributed by third parties
    19 
    19 
    20 %define major 17
    20 %define major 17
    21 %define mainver %major.0
    21 %define mainver %major.0
    22 %define update_channel release
    22 %define update_channel release
    23 
    23 
    24 Name:           MozillaFirefox
    24 Name:           firefox-esr
    25 BuildRequires:  Mesa-devel
    25 BuildRequires:  Mesa-devel
    26 BuildRequires:  autoconf213
    26 BuildRequires:  autoconf213
    27 BuildRequires:  dbus-1-glib-devel
    27 BuildRequires:  dbus-1-glib-devel
    28 BuildRequires:  fdupes
    28 BuildRequires:  fdupes
    29 BuildRequires:  gcc-c++
    29 BuildRequires:  gcc-c++
    53 BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
    53 BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
    54 %endif
    54 %endif
    55 Version:        %{mainver}
    55 Version:        %{mainver}
    56 Release:        0
    56 Release:        0
    57 %define         releasedate 2012111600
    57 %define         releasedate 2012111600
    58 Provides:       firefox = %{mainver}
    58 Provides:       firefox-esr = %{mainver}
    59 Provides:       firefox = %{version}-%{release}
       
    60 Provides:       web_browser
    59 Provides:       web_browser
    61 Provides:       browser(npapi)
    60 Provides:       browser(npapi)
    62 # this is needed to match this package with the kde4 helper package without the main package
    61 # this is needed to match this package with the kde4 helper package without the main package
    63 # having a hard requirement on the kde4 package
    62 # having a hard requirement on the kde4 package
    64 %define kde_helper_version 6
    63 %define kde_helper_version 6
    65 Provides:       mozilla-kde4-version = %{kde_helper_version}
    64 Provides:       mozilla-kde4-version = %{kde_helper_version}
    66 Summary:        Mozilla Firefox Web Browser
    65 Conflicts:      firefox
       
    66 # replace older MozillaFirefox packages for dists up to 11.2
       
    67 %if %suse_version < 1130
       
    68 Provides:       MozillaFirefox = %{version}
       
    69 Obsoletes:      MozillaFirefox < %{version}
       
    70 %else
       
    71 Conflicts:      MozillaFirefox
       
    72 %endif
       
    73 Summary:        Mozilla Firefox Web Browser ESR
    67 License:        MPL-2.0
    74 License:        MPL-2.0
    68 Group:          Productivity/Networking/Web/Browsers
    75 Group:          Productivity/Networking/Web/Browsers
    69 Url:            http://www.mozilla.org/
    76 Url:            http://www.mozilla.org/
    70 Source:         firefox-%{version}-source.tar.bz2
    77 Source:         firefox-%{version}-source.tar.bz2
    71 Source1:        MozillaFirefox.desktop
    78 Source1:        MozillaFirefox.desktop
   122 %global provfind sh -c "grep -v '.so' | %__find_provides"
   129 %global provfind sh -c "grep -v '.so' | %__find_provides"
   123 %global __find_provides %provfind
   130 %global __find_provides %provfind
   124 %define progname firefox
   131 %define progname firefox
   125 %define progdir %{_prefix}/%_lib/%{progname}
   132 %define progdir %{_prefix}/%_lib/%{progname}
   126 %define gnome_dir     %{_prefix}
   133 %define gnome_dir     %{_prefix}
   127 %if %suse_version > 1130
       
   128 %define desktop_file_name firefox
   134 %define desktop_file_name firefox
   129 %else
       
   130 %define desktop_file_name %{name}
       
   131 %endif
       
   132 ### build options
   135 ### build options
   133 %define branding 1
   136 %define branding 1
   134 %define localize 1
   137 %define localize 1
   135 %ifarch ppc ppc64 s390 s390x ia64 %arm
   138 %ifarch ppc ppc64 s390 s390x ia64 %arm
   136 %define crashreporter 0
   139 %define crashreporter 0
   156 Development files for Firefox to make packaging of addons easier.
   159 Development files for Firefox to make packaging of addons easier.
   157 
   160 
   158 %if %localize
   161 %if %localize
   159 
   162 
   160 %package translations-common
   163 %package translations-common
   161 Summary:        Common translations for MozillaFirefox
   164 Summary:        Common translations for Firefox
   162 Group:          System/Localization
   165 Group:          System/Localization
   163 Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW)
   166 Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW)
   164 Requires:       %{name} = %{version}
   167 Requires:       %{name} = %{version}
   165 Obsoletes:      %{name}-translations < %{version}-%{release}
   168 Obsoletes:      %{name}-translations < %{version}-%{release}
       
   169 %if %suse_version < 1130
       
   170 Provides:       MozillaFirefox-translations-common = %{version}
       
   171 Obsoletes:      MozillaFirefox-translations-common < %{version}
       
   172 %else
       
   173 Conflicts:      MozillaFirefox-translations-common
       
   174 %endif
   166 
   175 
   167 %description translations-common
   176 %description translations-common
   168 This package contains several common languages for the user interface
   177 This package contains several common languages for the user interface
   169 of MozillaFirefox.
   178 of MozillaFirefox.
   170 
   179 
   171 %package translations-other
   180 %package translations-other
   172 Summary:        Extra translations for MozillaFirefox
   181 Summary:        Extra translations for Firefox
   173 Group:          System/Localization
   182 Group:          System/Localization
   174 Provides:       locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;el;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;vi;zu)
   183 Provides:       locale(%{name}:ach;af;ak;as;ast;be;bg;bn_BD;bn_IN;br;bs;csb;cy;el;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;km;kn;ku;lg;lij;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;vi;zu)
   175 Requires:       %{name} = %{version}
   184 Requires:       %{name} = %{version}
   176 Obsoletes:      %{name}-translations < %{version}-%{release}
   185 Obsoletes:      %{name}-translations < %{version}-%{release}
       
   186 %if %suse_version < 1130
       
   187 Provides:       MozillaFirefox-translations-other = %{version}
       
   188 Obsoletes:      MozillaFirefox-translations-other < %{version}
       
   189 %else
       
   190 Conflicts:      MozillaFirefox-translations-other
       
   191 %endif
   177 
   192 
   178 %description translations-other
   193 %description translations-other
   179 This package contains rarely used languages for the user interface
   194 This package contains rarely used languages for the user interface
   180 of MozillaFirefox.
   195 of Firefox.
   181 %endif
   196 %endif
   182 
   197 
   183 %package branding-upstream
   198 %package branding-upstream
   184 Summary:        Upstream branding for MozillaFirefox
   199 Summary:        Upstream branding for Firefox
   185 Group:          Productivity/Networking/Web/Browsers
   200 Group:          Productivity/Networking/Web/Browsers
   186 Provides:       %{name}-branding = 5.0
   201 Provides:       %{name}-branding = 5.0
   187 Conflicts:      otherproviders(%{name}-branding)
   202 Conflicts:      otherproviders(%{name}-branding)
       
   203 Conflicts:      otherproviders(MozillaFirefox-branding)
   188 Supplements:    packageand(%{name}:branding-upstream)
   204 Supplements:    packageand(%{name}:branding-upstream)
   189 #BRAND: Provide three files -
   205 #BRAND: Provide three files -
   190 #BRAND: /usr/lib/firefox/browserconfig.properties that contains the
   206 #BRAND: /usr/lib/firefox/browserconfig.properties that contains the
   191 #BRAND: default homepage and some other default configuration options
   207 #BRAND: default homepage and some other default configuration options
   192 #BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
   208 #BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
   195 #BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
   211 #BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
   196 #BRAND: custom preference overrides.
   212 #BRAND: custom preference overrides.
   197 #BRAND: It's also possible to drop files in /usr/lib/firefox/searchplugins
   213 #BRAND: It's also possible to drop files in /usr/lib/firefox/searchplugins
   198 
   214 
   199 %description branding-upstream
   215 %description branding-upstream
   200 This package provides upstream look and feel for MozillaFirefox.
   216 This package provides upstream look and feel for Firefox.
   201 
   217 
   202 
   218 
   203 %if %crashreporter
   219 %if %crashreporter
   204 
   220 
   205 %package buildsymbols
   221 %package buildsymbols
   297 ac_add_options --disable-tests
   313 ac_add_options --disable-tests
   298 ac_add_options --disable-debug
   314 ac_add_options --disable-debug
   299 ac_add_options --enable-startup-notification
   315 ac_add_options --enable-startup-notification
   300 #ac_add_options --enable-chrome-format=jar
   316 #ac_add_options --enable-chrome-format=jar
   301 ac_add_options --enable-update-channel=%{update_channel}
   317 ac_add_options --enable-update-channel=%{update_channel}
   302 ac_add_options --disable-webrtc   # webrtc build is broken for system NSPR
   318 #ac_add_options --disable-webrtc   # webrtc build is broken for system NSPR
   303 EOF
   319 EOF
   304 %if %suse_version > 1130
   320 %if %suse_version > 1130
   305 cat << EOF >> $MOZCONFIG
   321 cat << EOF >> $MOZCONFIG
   306 ac_add_options --disable-gnomevfs
   322 ac_add_options --disable-gnomevfs
   307 ac_add_options --enable-gio
   323 ac_add_options --enable-gio