MozillaFirefox/MozillaFirefox.spec
changeset 941 ff9e20146e8b
parent 940 f63a4ac0fe06
child 942 66115255ad6f
equal deleted inserted replaced
936:096e59808e91 941:ff9e20146e8b
    16 # Please submit bugfixes or comments via http://bugs.opensuse.org/
    16 # Please submit bugfixes or comments via http://bugs.opensuse.org/
    17 #
    17 #
    18 
    18 
    19 
    19 
    20 # changed with every update
    20 # changed with every update
    21 %define major 50
    21 %define major 51
    22 %define mainver %major.99
    22 %define mainver %major.99
    23 %define update_channel beta
    23 %define update_channel beta
    24 %define releasedate 20170117000000
    24 %define releasedate 20170111000000
    25 
    25 
    26 # PIE, full relro (x86_64 for now)
    26 # PIE, full relro (x86_64 for now)
    27 %define build_hardened 1
    27 %define build_hardened 1
    28 
    28 
    29 # general build definitions
    29 # general build definitions
    34 %else
    34 %else
    35 %define progname firefox-dev
    35 %define progname firefox-dev
    36 %define pkgname  firefox-dev-edition
    36 %define pkgname  firefox-dev-edition
    37 %define appname  Firefox Developer Edition
    37 %define appname  Firefox Developer Edition
    38 %endif
    38 %endif
    39 %if 0%{?suse_version} > 1315
    39 %if 0%{?suse_version} > 1320
    40 %define firefox_use_gtk3 1
    40 %define firefox_use_gtk3 1
    41 %endif
    41 %endif
    42 %define progdir %{_prefix}/%_lib/%{progname}
    42 %define progdir %{_prefix}/%_lib/%{progname}
    43 %define gnome_dir     %{_prefix}
    43 %define gnome_dir     %{_prefix}
    44 %define desktop_file_name %{progname}
    44 %define desktop_file_name %{progname}
    76 BuildRequires:  libiw-devel
    76 BuildRequires:  libiw-devel
    77 BuildRequires:  libnotify-devel
    77 BuildRequires:  libnotify-devel
    78 BuildRequires:  libproxy-devel
    78 BuildRequires:  libproxy-devel
    79 BuildRequires:  makeinfo
    79 BuildRequires:  makeinfo
    80 BuildRequires:  mozilla-nspr-devel >= 4.13.1
    80 BuildRequires:  mozilla-nspr-devel >= 4.13.1
    81 BuildRequires:  mozilla-nss-devel >= 3.28.1
    81 BuildRequires:  mozilla-nss-devel >= 3.28.2
    82 BuildRequires:  nss-shared-helper-devel
    82 BuildRequires:  nss-shared-helper-devel
    83 BuildRequires:  python-devel
    83 BuildRequires:  python-devel
    84 BuildRequires:  startup-notification-devel
    84 BuildRequires:  startup-notification-devel
    85 BuildRequires:  unzip
    85 BuildRequires:  unzip
    86 BuildRequires:  update-desktop-files
    86 BuildRequires:  update-desktop-files
   148 Patch10:        mozilla-no-stdcxx-check.patch
   148 Patch10:        mozilla-no-stdcxx-check.patch
   149 Patch11:        mozilla-reduce-files-per-UnifiedBindings.patch
   149 Patch11:        mozilla-reduce-files-per-UnifiedBindings.patch
   150 Patch13:        mozilla-check_return.patch
   150 Patch13:        mozilla-check_return.patch
   151 Patch14:        mozilla-skia-overflow.patch
   151 Patch14:        mozilla-skia-overflow.patch
   152 Patch17:        mozilla-binutils-visibility.patch
   152 Patch17:        mozilla-binutils-visibility.patch
       
   153 Patch18:        mozilla-skia-ppc-endianess.patch
       
   154 Patch19:        mozilla-disable-skia-be.patch
   153 # Firefox/browser
   155 # Firefox/browser
   154 Patch101:       firefox-kde.patch
   156 Patch101:       firefox-kde.patch
   155 Patch102:       firefox-no-default-ualocale.patch
   157 Patch102:       firefox-no-default-ualocale.patch
   156 Patch103:       firefox-branded-icons.patch
   158 Patch103:       firefox-branded-icons.patch
   157 # hotfix
   159 # hotfix
   203 of %{appname}.
   205 of %{appname}.
   204 
   206 
   205 %package translations-other
   207 %package translations-other
   206 Summary:        Extra translations for %{appname}
   208 Summary:        Extra translations for %{appname}
   207 Group:          System/Localization
   209 Group:          System/Localization
   208 Provides:       locale(%{name}:ach;af;an;as;ast;az;be;bg;bn_BD;bn_IN;br;bs;cak;cy;dsb;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gn;gu_IN;he;hi_IN;hr;hsb;hy_AM;id;is;kk;km;kn;lij;lt;lv;mai;mk;ml;mr;ms;nn_NO;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;te;th;tr;uk;uz;vi;xh)
   210 Provides:       locale(%{name}:ach;af;an;as;ast;az;bg;bn_BD;bn_IN;br;bs;cak;cy;dsb;en_ZA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gn;gu_IN;he;hi_IN;hr;hsb;hy_AM;id;is;ka;kab;kk;km;kn;lij;lt;lv;mai;mk;ml;mr;ms;nn_NO;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;te;th;tr;uk;uz;vi;xh)
   209 Requires:       %{name} = %{version}
   211 Requires:       %{name} = %{version}
   210 Obsoletes:      %{name}-translations < %{version}-%{release}
   212 Obsoletes:      %{name}-translations < %{version}-%{release}
   211 
   213 
   212 %description translations-other
   214 %description translations-other
   213 This package contains rarely used languages for the user interface
   215 This package contains rarely used languages for the user interface
   262 %patch10 -p1
   264 %patch10 -p1
   263 %patch11 -p1
   265 %patch11 -p1
   264 %patch13 -p1
   266 %patch13 -p1
   265 %patch14 -p1
   267 %patch14 -p1
   266 %patch17 -p1
   268 %patch17 -p1
       
   269 %patch18 -p1
       
   270 %patch19 -p1
   267 # Firefox
   271 # Firefox
   268 %patch101 -p1
   272 %patch101 -p1
   269 %patch102 -p1
   273 %patch102 -p1
   270 %patch103 -p1
   274 %patch103 -p1
   271 %patch200 -p1
   275 %patch200 -p1
   396 install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
   400 install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
   397 # install additional locales
   401 # install additional locales
   398 %if %localize
   402 %if %localize
   399 rm -f %{_tmppath}/translations.*
   403 rm -f %{_tmppath}/translations.*
   400 touch %{_tmppath}/translations.{common,other}
   404 touch %{_tmppath}/translations.{common,other}
   401 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
   405 for locale in $(awk '{ print $1; }' %{SOURCE17}); do
   402   case $locale in
   406   case $locale in
   403    ja-JP-mac|en-US)
   407    ja-JP-mac|en-US|'')
   404 	;;
   408 	;;
   405    *)
   409    *)
   406    	pushd $RPM_BUILD_DIR/compare-locales
   410    	pushd $RPM_BUILD_DIR/compare-locales
   407 	PYTHONPATH=lib \
   411 	PYTHONPATH=lib \
   408 	  scripts/compare-locales -m ../l10n-merged/$locale \
   412 	  scripts/compare-locales -m ../l10n-merged/$locale \