MozillaFirefox/MozillaFirefox.spec
author Wolfgang Rosenauer <wr@rosenauer.org>
Wed, 09 May 2018 22:06:26 +0200
branchfirefox60
changeset 1047 847ae61baab6
parent 1046 75893a3d8fbe
child 1048 a6a2360bc1bd
permissions -rw-r--r--
Firefox 60.0 release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     1
#
236
a4f5954df3a3 update for 2.0/4.0rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 230
diff changeset
     2
# spec file for package MozillaFirefox
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     3
#
1016
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1015
diff changeset
     4
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1015
diff changeset
     5
#               2006-2018 Wolfgang Rosenauer
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     6
#
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     7
# All modifications and additions to the file contributed by third parties
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     8
# remain the property of their copyright owners, unless otherwise agreed
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
     9
# upon. The license for this file, and modifications and additions to the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    10
# file, is the same license as for the pristine package itself (unless the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    11
# license for the pristine package is not an Open Source License, in which
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    12
# case the license is the MIT License). An "Open Source License" is a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    13
# license that conforms to the Open Source Definition (Version 1.9)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    14
# published by the Open Source Initiative.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    15
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    17
#
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    18
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    19
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    20
# changed with every update
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
    21
%define major 60
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
    22
%define mainver %major.0
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
    23
%define update_channel release
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
    24
%define branding 1
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
    25
%define releasedate 20180503143129
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
    26
%define source_prefix firefox-%{mainver}
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
    27
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
    28
# PIE, full relro (x86_64 for now)
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
    29
%define build_hardened 1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    30
982
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    31
# Firefox only supports i686
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    32
%ifarch %ix86
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    33
ExclusiveArch:  i586 i686
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    34
BuildArch:      i686
982
53443ffb496a Firefox 54.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 979
diff changeset
    35
%{expand:%%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic}
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    36
%endif
943
ace605efe50f latest beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 942
diff changeset
    37
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    38
# general build definitions
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    39
%define progname firefox
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    40
%define pkgname  MozillaFirefox
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    41
%define appname  Firefox
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    42
%define progdir %{_prefix}/%_lib/%{progname}
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    43
%define gnome_dir     %{_prefix}
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    44
%define desktop_file_name %{progname}
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    45
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
1030
cd02d400c081 correct requires and provides handling (boo#1076907)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1029
diff changeset
    46
%define __provides_exclude ^lib.*\\.so.*$
cd02d400c081 correct requires and provides handling (boo#1076907)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1029
diff changeset
    47
%define __requires_exclude ^(libmoz.*|liblgpllibs.*|libxul.*)$
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    48
%define localize 1
932
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    49
%ifarch %ix86 x86_64
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    50
%define crashreporter 1
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
    51
%else
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    52
%define crashreporter 0
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
    53
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
    54
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
    55
Name:           %{pkgname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    56
BuildRequires:  Mesa-devel
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    57
BuildRequires:  alsa-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    58
BuildRequires:  autoconf213
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    59
BuildRequires:  dbus-1-glib-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    60
BuildRequires:  fdupes
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    61
%if 0%{?suse_version} <= 1320
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
    62
BuildRequires:  gcc7-c++
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    63
%else
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    64
BuildRequires:  gcc-c++
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
    65
%endif
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    66
BuildRequires:  cargo
895
b0e57b478b1b merge change from mozilla:Factory (libXcomposite-devel requirement)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 894
diff changeset
    67
BuildRequires:  libXcomposite-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    68
BuildRequires:  libcurl-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    69
BuildRequires:  libidl-devel
835
e7e5b3d0f1b3 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 832
diff changeset
    70
BuildRequires:  libiw-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    71
BuildRequires:  libnotify-devel
835
e7e5b3d0f1b3 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 832
diff changeset
    72
BuildRequires:  libproxy-devel
716
cef565f1c325 update to Firefox 29.0b7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 715
diff changeset
    73
BuildRequires:  makeinfo
1044
142a0c92607c merge latest from 59.x
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1043
diff changeset
    74
BuildRequires:  mozilla-nspr-devel >= 4.19
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
    75
BuildRequires:  mozilla-nss-devel >= 3.36.1
740
2d2a5e176fa7 require python-devel not only python
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 738
diff changeset
    76
BuildRequires:  python-devel
1012
0c59a30173da several changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1011
diff changeset
    77
BuildRequires:  python2-xml
1044
142a0c92607c merge latest from 59.x
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1043
diff changeset
    78
BuildRequires:  rust >= 1.24
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    79
BuildRequires:  rust-std
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    80
BuildRequires:  startup-notification-devel
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    81
BuildRequires:  unzip
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    82
BuildRequires:  update-desktop-files
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
    83
BuildRequires:  xorg-x11-libXt-devel
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    84
BuildRequires:  yasm
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
    85
BuildRequires:  zip
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    86
BuildRequires:  pkgconfig(gconf-2.0)
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    87
BuildRequires:  pkgconfig(gdk-x11-2.0)
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    88
BuildRequires:  pkgconfig(glib-2.0) >= 2.22
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
    89
BuildRequires:  pkgconfig(gobject-2.0)
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    90
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.18.0
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
    91
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    92
BuildRequires:  pkgconfig(gtk+-unix-print-2.0)
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
    93
BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
996
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    94
BuildRequires:  pkgconfig(libffi)
84d25951c2db - Drop libgnomeui-devel, and replace it with pkgconfig(gconf-2.0),
zaitor@opensuse.org
parents: 995
diff changeset
    95
BuildRequires:  pkgconfig(libpulse)
998
6c6109948e35 enable stylo (Quantum CSS) for TW
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 996
diff changeset
    96
%if 0%{?suse_version} > 1320
6c6109948e35 enable stylo (Quantum CSS) for TW
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 996
diff changeset
    97
BuildRequires:  llvm-clang-devel >= 3.9.0
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
    98
%else
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
    99
# this covers the workaround to compile on Leap 42 in OBS
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   100
BuildRequires:  clang4-devel
998
6c6109948e35 enable stylo (Quantum CSS) for TW
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 996
diff changeset
   101
%endif
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   102
# libavcodec is required for H.264 support but the
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   103
# openSUSE version is currently not able to play H.264
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   104
# therefore the Packman version is required
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   105
# minimum version of libavcodec is 53
919
6838f0c032f8 -------------------------------------------------------------------
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 916
diff changeset
   106
Recommends:     libavcodec-full >= 0.10.16
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   107
Version:        %{mainver}
375
d75cd0dac058 final 10.0 updates (changelog)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 373
diff changeset
   108
Release:        0
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   109
%if "%{name}" == "MozillaFirefox"
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   110
Provides:       firefox = %{mainver}
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   111
Provides:       firefox = %{version}-%{release}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   112
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   113
Provides:       web_browser
884
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 883
diff changeset
   114
Provides:       appdata()
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 883
diff changeset
   115
Provides:       appdata(firefox.appdata.xml)
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   116
# this is needed to match this package with the kde4 helper package without the main package
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   117
# having a hard requirement on the kde4 package
538
be682f8c9361 revert API version change for kmozillahelper
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 536
diff changeset
   118
%define kde_helper_version 6
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   119
Provides:       mozilla-kde4-version = %{kde_helper_version}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   120
Summary:        Mozilla %{appname} Web Browser
456
7b9ab7747a11 License change to MPL-2.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 447
diff changeset
   121
License:        MPL-2.0
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   122
Group:          Productivity/Networking/Web/Browsers
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   123
Url:            http://www.mozilla.org/
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   124
Source:         http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   125
Source1:        MozillaFirefox.desktop
86
f2a830880862 Install as firefox4 in parallel to unversioned
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 84
diff changeset
   126
Source2:        MozillaFirefox-rpmlintrc
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   127
Source3:        mozilla.sh.in
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   128
Source5:        source-stamp.txt
12
1f7c3dc01e1c Prepare MozillaFirefox for KDE integration
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 5
diff changeset
   129
Source6:        kde.js
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
   130
Source7:        l10n-%{version}.tar.xz
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   131
Source8:        firefox-mimeinfo.xml
543
24c3eafd49a1 fixed kde.js preferences
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 541
diff changeset
   132
Source9:        firefox.js
699
f810fbe5fece update to 27.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 696
diff changeset
   133
Source10:       compare-locales.tar.xz
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   134
Source11:       firefox.1
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   135
Source12:       mozilla-get-app-id
781
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   136
Source13:       spellcheck.js
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   137
Source14:       create-tar.sh
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   138
Source15:       firefox-appdata.xml
853
cf7e96afbe3a Firefox 38.0.5
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 852
diff changeset
   139
Source16:       MozillaFirefox.changes
992
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   140
# Set up API keys, see http://www.chromium.org/developers/how-tos/api-keys
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   141
# Note: these are for the openSUSE Firefox builds ONLY. For your own distribution,
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   142
# please get your own set of keys.
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
   143
Source18:       mozilla-api-key
992
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   144
Source19:       google-api-key
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   145
Source20:       http://ftp.mozilla.org/pub/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz.asc
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   146
Source21:       mozilla.keyring
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   147
# Gecko/Toolkit
885
ee3c462047d5 42 beta cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 884
diff changeset
   148
Patch1:         mozilla-nongnome-proxies.patch
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   149
Patch2:         mozilla-kde.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   150
Patch3:         mozilla-ntlm-full-path.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   151
Patch4:         mozilla-openaes-decl.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   152
Patch5:         mozilla-no-stdcxx-check.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   153
Patch6:         mozilla-reduce-files-per-UnifiedBindings.patch
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   154
Patch7:         mozilla-aarch64-startup-crash.patch
1032
8220ea23b47d remove obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1031
diff changeset
   155
Patch8:         mozilla-bmo256180.patch
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
   156
Patch9:         mozilla-i586-DecoderDoctorLogger.patch
1045
f645c886d36b rebased
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1044
diff changeset
   157
Patch10:        mozilla-i586-domPrefs.patch
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
   158
Patch11:        mozilla-enable-csd.patch
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   159
# Firefox/browser
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   160
Patch101:       firefox-kde.patch
1032
8220ea23b47d remove obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1031
diff changeset
   161
Patch102:       firefox-branded-icons.patch
926
6ab8b16f232c merge latest changes from Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 925
diff changeset
   162
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   163
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   164
Requires(post):   coreutils shared-mime-info desktop-file-utils
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   165
Requires(postun): shared-mime-info desktop-file-utils
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   166
%if %branding
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   167
Requires:       %{name}-branding > 44.0
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   168
%endif
1012
0c59a30173da several changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1011
diff changeset
   169
Requires:       mozilla-nspr >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nspr)
0c59a30173da several changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1011
diff changeset
   170
Requires:       mozilla-nss >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nss)
412
aa28c4f2962a recommend having libcanberra0 has it's used also for nsISound::Play() (instead of libesd) now
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 410
diff changeset
   171
Recommends:     libcanberra0
703
c4aab80e472f Firefox 28.0beta1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 699
diff changeset
   172
Recommends:     libpulse0
819
5a18bd66e46c [Bug 908892] Updated Firefox (33.0-1.90.1 -> 34.0.5-1.94.3) crashes in tracker-miner-firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 818
diff changeset
   173
# addon leads to startup crash (bnc#908892)
5a18bd66e46c [Bug 908892] Updated Firefox (33.0-1.90.1 -> 34.0.5-1.94.3) crashes in tracker-miner-firefox
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 818
diff changeset
   174
Obsoletes:      tracker-miner-firefox < 0.15
565
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   175
# libproxy's mozjs pacrunner crashes FF (bnc#759123)
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   176
%if 0%{?suse_version} < 1220
565
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   177
Obsoletes:      libproxy1-pacrunner-mozjs <= 0.4.7
f6d567a99b67 bring back libproxy mozjs obsoletes for old distributions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 563
diff changeset
   178
%endif
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
   179
##BuildArch:      i686 x86_64 aarch64 ppc64le
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   180
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   181
%description
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   182
Mozilla Firefox is a standalone web browser, designed for standards
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   183
compliance and performance.  Its functionality can be enhanced via a
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   184
plethora of extensions.
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   185
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   186
%package devel
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   187
Summary:        Devel package for %{appname}
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   188
Group:          Development/Tools/Other
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   189
Provides:       firefox-devel = %{version}-%{release}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   190
Requires:       %{name} = %{version}
401
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 400
diff changeset
   191
Requires:       perl(Archive::Zip)
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   192
Requires:       perl(XML::Simple)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   193
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   194
%description devel
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   195
Development files for %{appname} to make packaging of addons easier.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   196
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   197
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   198
%package translations-common
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   199
Summary:        Common translations for %{appname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   200
Group:          System/Localization
672
2268d308dc15 minor polishing
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 669
diff changeset
   201
Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;el;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)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   202
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   203
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   204
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   205
%description translations-common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   206
This package contains several common languages for the user interface
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   207
of %{appname}.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   208
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   209
%package translations-other
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   210
Summary:        Extra translations for %{appname}
363
48596576f932 update to 9.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 361
diff changeset
   211
Group:          System/Localization
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   212
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;ne-NP;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;te;th;tr;uk;uz;vi;xh)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   213
Requires:       %{name} = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   214
Obsoletes:      %{name}-translations < %{version}-%{release}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   215
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   216
%description translations-other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   217
This package contains rarely used languages for the user interface
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   218
of %{appname}.
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   219
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   220
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   221
%if %branding
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   222
%package branding-upstream
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   223
Summary:        Upstream branding for %{appname}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   224
Group:          Productivity/Networking/Web/Browsers
648
6fd0ed97283f fix upstream version provides
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 647
diff changeset
   225
Provides:       %{name}-branding = %{version}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   226
Conflicts:      otherproviders(%{name}-branding)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   227
Supplements:    packageand(%{name}:branding-upstream)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   228
#BRAND: Provide three files -
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   229
#BRAND: /usr/lib/firefox/browserconfig.properties that contains the
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   230
#BRAND: default homepage and some other default configuration options
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   231
#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   232
#BRAND: the list of default bookmarks
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   233
#BRAND: It's also possible to create a file
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   234
#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   235
#BRAND: custom preference overrides.
871
4c6e8495720b beta update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 869
diff changeset
   236
#BRAND: It's also possible to drop files in /usr/lib/firefox/distribution/searchplugins/common/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   237
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   238
%description branding-upstream
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   239
This package provides upstream look and feel for %{appname}.
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   240
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   241
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   242
%if %crashreporter
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   243
%package buildsymbols
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   244
Summary:        Breakpad buildsymbols for %{appname}
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   245
Group:          Development/Debug
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   246
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   247
%description buildsymbols
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   248
This subpackage contains the Breakpad created and compatible debugging
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   249
symbols meant for upload to Mozilla's crash collector database.
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   250
%endif
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   251
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   252
%prep
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   253
%if %localize
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   254
%setup -q -n %{source_prefix} -b 7 -b 10
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   255
%else
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   256
%setup -q -n %{source_prefix}
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   257
%endif
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   258
cd $RPM_BUILD_DIR/%{source_prefix}
198
447791e42c9b Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 196
diff changeset
   259
%patch1 -p1
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   260
%patch2 -p1
885
ee3c462047d5 42 beta cycle
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 884
diff changeset
   261
%patch3 -p1
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   262
%patch4 -p1
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   263
%patch5 -p1
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   264
%ifarch %ix86
339
db8b891eeb1e locale should always match the system one in a package environment
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 337
diff changeset
   265
%patch6 -p1
1008
77c890186192 removed obsolete patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1005
diff changeset
   266
%endif
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   267
%patch7 -p1
1027
7071f6ebfda6 CSD functionality
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1026
diff changeset
   268
%patch8 -p1
1045
f645c886d36b rebased
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1044
diff changeset
   269
%ifarch %ix86
1039
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1037
diff changeset
   270
%patch9 -p1
1040
246b98b59979 added i586 patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1039
diff changeset
   271
%patch10 -p1
246b98b59979 added i586 patches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1039
diff changeset
   272
%endif
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
   273
%patch11 -p1
715
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   274
# Firefox
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   275
%patch101 -p1
e1c226a4de34 AArch64 porting
Dirk M?ller <dmueller@suse.com>
parents: 714
diff changeset
   276
%patch102 -p1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   277
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   278
%build
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   279
# no need to add build time to binaries
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   280
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/MozillaFirefox.changes")"
276
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   281
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   282
TIME="\"$(date -d "${modified}" "+%%R")\""
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   283
find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 272
diff changeset
   284
#
398
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   285
kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   286
if test "$kdehelperversion" != %{kde_helper_version}; then
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   287
  echo fix kde helper version in the .spec file
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   288
  exit 1
937669e1c537 ported and reenabled KDE integration (bnc#746591)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 395
diff changeset
   289
fi
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   290
source %{SOURCE5}
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   291
export MOZ_SOURCE_CHANGESET=$REV
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   292
export SOURCE_REPO=$REPO
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   293
export source_repo=$REPO
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   294
export MOZ_SOURCE_REPO=$REPO
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   295
export MOZ_BUILD_DATE=%{releasedate}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   296
export MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   297
export BUILD_OFFICIAL=1
344
880a90eb0f92 enable telemetry opt-in prompt
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 339
diff changeset
   298
export MOZ_TELEMETRY_REPORTING=1
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
   299
%if 0%{?suse_version} <= 1320
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
   300
export CC=gcc-7
953
6b282f295753 53.0b4 (complete)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 951
diff changeset
   301
%endif
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   302
export CFLAGS="%{optflags} -fno-strict-aliasing"
977
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   303
# boo#986541: add -fno-delete-null-pointer-checks for gcc6
921
4f801233e935 merge contributions from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 920
diff changeset
   304
%if 0%{?suse_version} > 1320
977
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   305
export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
921
4f801233e935 merge contributions from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 920
diff changeset
   306
%endif
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   307
%ifarch %arm
659
fa96cf6ffd14 Aurora 24 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 653
diff changeset
   308
export CFLAGS="${CFLAGS/-g / }"
806
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 805
diff changeset
   309
%endif
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 805
diff changeset
   310
%ifarch %arm %ix86
801
f5f6f5547c2b merge changes from OBS Factory submissions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 797
diff changeset
   311
# Limit RAM usage during link
802
6c8dd9468bcc 33.1 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 801
diff changeset
   312
export LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   313
%endif
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   314
%if 0%{?build_hardened}
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   315
%ifarch x86_64
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   316
export LDFLAGS="${LDFLAGS} -Wl,-z,relro,-z,now"
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   317
%endif
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   318
%endif
693
ac3e73b8c89d add missing changes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 692
diff changeset
   319
%ifarch ppc64 ppc64le
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   320
export CFLAGS="$CFLAGS -mminimal-toc"
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   321
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   322
export CXXFLAGS="$CFLAGS"
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   323
%ifarch %{arm}
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   324
export RUSTFLAGS="-Cdebuginfo=0"
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   325
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   326
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   327
cat << EOF > $MOZCONFIG
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   328
mk_add_options MOZILLA_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   329
mk_add_options BUILD_OFFICIAL=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   330
mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   331
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   332
. \$topsrcdir/browser/config/mozconfig
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   333
ac_add_options --prefix=%{_prefix}
925
05d175c5957e added upstream patch so system plugins/extensions are correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 923
diff changeset
   334
ac_add_options --libdir=%{_libdir}
05d175c5957e added upstream patch so system plugins/extensions are correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 923
diff changeset
   335
ac_add_options --includedir=%{_includedir}
767
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   336
ac_add_options --enable-release
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   337
ac_add_options --enable-default-toolkit=cairo-gtk3
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   338
%if 0%{?build_hardened}
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   339
ac_add_options --enable-pie
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   340
%endif
977
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   341
# gcc7 (boo#104105)
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   342
%if 0%{?suse_version} > 1320
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   343
ac_add_options --enable-optimize="-g -O2"
224d8137f02c remove -fno-inline-small-functions and explicitely optimize with
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 966
diff changeset
   344
%endif
801
f5f6f5547c2b merge changes from OBS Factory submissions
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 797
diff changeset
   345
%ifarch %ix86 %arm
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   346
%if 0%{?suse_version} > 1230
767
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   347
ac_add_options --disable-optimize
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   348
%endif
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 764
diff changeset
   349
%endif
1039
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1037
diff changeset
   350
%ifarch %arm
916
2f9f2e040647 Firefox 47.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 914
diff changeset
   351
ac_add_options --disable-elf-hack
777
f1c5ccf4d1a7 changelog
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 776
diff changeset
   352
%endif
568
2c74c5927ea2 first working Aurora 18 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 565
diff changeset
   353
ac_add_options --with-system-nspr
522
fdca14856f37 snapshot update (20120807)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 515
diff changeset
   354
ac_add_options --with-system-nss
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   355
%if %{localize}
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   356
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n
707
bfa2e0576454 update to 28.0b9
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 705
diff changeset
   357
%endif
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   358
#ac_add_options --with-system-jpeg    # libjpeg-turbo is used internally
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   359
#ac_add_options --with-system-png     # doesn't work because of missing APNG support
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   360
ac_add_options --with-system-zlib
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   361
ac_add_options --disable-updater
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   362
ac_add_options --disable-tests
945
7b1e775ff77a FF52 as released
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 944
diff changeset
   363
ac_add_options --enable-alsa
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   364
ac_add_options --disable-debug
283
418b5f502ff2 update to 5.0final
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 282
diff changeset
   365
ac_add_options --enable-startup-notification
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   366
#ac_add_options --enable-chrome-format=jar
409
ff30593d2daa switch to 12.0dev
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 408
diff changeset
   367
ac_add_options --enable-update-channel=%{update_channel}
964
218a4e337cfe use mozilla geolocation api instead of broken google one
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 960
diff changeset
   368
ac_add_options --with-mozilla-api-keyfile=%{SOURCE18}
992
b2ba34e0dc10 Firefox 55.0.3 and some other fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 991
diff changeset
   369
ac_add_options --with-google-api-keyfile=%{SOURCE19}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   370
%if %branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   371
ac_add_options --enable-official-branding
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   372
%endif
262
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   373
ac_add_options --enable-libproxy
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   374
%if ! %crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   375
ac_add_options --disable-crashreporter
b680975515e0 probably last working Firefox-on-xulrunner build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 252
diff changeset
   376
%endif
371
ead21d122ed0 introduce --disable-neon option and use on ARM
Joop Boonen <joop.boonen@opensuse.org>
parents: 370
diff changeset
   377
%ifarch %arm
908
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   378
ac_add_options --with-fpu=vfpv3-d16
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   379
ac_add_options --with-float-abi=hard
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   380
%ifarch armv6l armv6hl
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   381
ac_add_options --with-arch=armv6
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   382
%else
908
b29b47737173 sync from mozilla:Factory
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 907
diff changeset
   383
ac_add_options --with-arch=armv7-a
640
68ead6c93b7d Explicitly disable WebRTC support on non-x86, the configure script
schwab@linux-m68k.org
parents: 639
diff changeset
   384
%endif
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   385
%endif
932
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
   386
%ifarch %arm s390x
631
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 623
diff changeset
   387
ac_add_options --disable-webrtc
668
fc8c1da7ec06 minor specfile simplification
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 666
diff changeset
   388
%endif
708
f15494a6dc10 fix spec syntax
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 707
diff changeset
   389
EOF
1021
1307721d2345 fixed patches for FF58
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1020
diff changeset
   390
./mach build
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   391
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   392
%install
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   393
cd $RPM_BUILD_DIR/obj
279
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   394
source %{SOURCE5}
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   395
export MOZ_SOURCE_STAMP=$REV
eb9e33036fb4 update to 5.0b6
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 277
diff changeset
   396
export MOZ_SOURCE_REPO=$REPO
733
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   397
# need to remove default en-US firefox-l10n.js before it gets
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   398
# populated into browser's omni.ja; it only contains general.useragent.locale
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   399
# which should be loaded from each language pack (set in firefox.js)
b2202fea7983 manual forward merge from 29 and 30 branches
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 727
diff changeset
   400
rm dist/bin/browser/defaults/preferences/firefox-l10n.js
444
6525a220a096 fixed build with changed install directories (defaults/pref -> defaults/preferences)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 438
diff changeset
   401
make -C browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   402
#DEBUG (break the build if searchplugins are missing / temporary)
642
b30da62025bc 21 is now beta
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 637
diff changeset
   403
grep amazondotcom dist/firefox/browser/omni.ja
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   404
# copy tree into RPM_BUILD_ROOT
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   405
mkdir -p %{buildroot}%{progdir}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   406
cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* %{buildroot}%{progdir}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   407
mkdir -p %{buildroot}%{progdir}/distribution/extensions
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   408
mkdir -p %{buildroot}%{progdir}/browser/defaults/preferences/
781
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   409
# install gre prefs
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   410
install -m 644 %{SOURCE13} %{buildroot}%{progdir}/defaults/pref/
4ee017942f28 use /usr/share/myspell directly and remove add-plugins.sh
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 780
diff changeset
   411
# install browser prefs
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   412
install -m 644 %{SOURCE6} %{buildroot}%{progdir}/browser/defaults/preferences/kde.js
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   413
install -m 644 %{SOURCE9} %{buildroot}%{progdir}/browser/defaults/preferences/firefox.js
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   414
# install additional locales
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   415
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   416
rm -f %{_tmppath}/translations.*
83
d06e40a1d7de Firefox 3.7a building correctly
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 81
diff changeset
   417
touch %{_tmppath}/translations.{common,other}
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   418
for locale in $(cat $RPM_BUILD_DIR/%{source_prefix}/browser/locales/shipped-locales) ; do
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   419
  case $locale in
939
3604ed712e16 51.0 as submitted to official openSUSE
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 937
diff changeset
   420
   ja-JP-mac|en-US|'')
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   421
	;;
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   422
   *)
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   423
   	pushd $RPM_BUILD_DIR/compare-locales
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   424
	PYTHONPATH=lib \
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   425
	  scripts/compare-locales -m ../l10n-merged/$locale \
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   426
	  ../%{source_prefix}/browser/locales/l10n.ini ../l10n $locale
155
9a05844af634 use compare-locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 153
diff changeset
   427
	popd
172
78d410fd888a fixed compare-locales for toolkit locales
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 171
diff changeset
   428
	LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
171
49162ac3619c build complete langpacks to get install.rdf
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 170
diff changeset
   429
  	make -C browser/locales langpack-$locale
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   430
	cp -rL dist/xpi-stage/locale-$locale \
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   431
	       %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org
418
ecd5bb5744dc update to 12.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 414
diff changeset
   432
	# remove prefs, profile defaults, and hyphenation from langpack
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   433
	rm -rf %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/defaults
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   434
	rm -rf %{buildroot}%{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org/hyphenation
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   435
	# check against the fixed common list and sort into the right filelist
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   436
	_matched=0
672
2268d308dc15 minor polishing
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 669
diff changeset
   437
	for _match in ar ca cs da de en-GB el 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; do
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   438
	  [ "$_match" = "$locale" ] && _matched=1
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   439
	done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   440
	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   441
  	echo %{progdir}/browser/extensions/langpack-$locale@firefox.mozilla.org \
169
cba7c6321c84 snapshot 20101003; packaging langpacks
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 164
diff changeset
   442
	  >> %{_tmppath}/translations.$_l10ntarget
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   443
  esac
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   444
done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   445
%endif
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   446
# remove some executable permissions
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   447
find %{buildroot}%{progdir} \
342
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   448
     -name "*.js" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   449
     -name "*.jsm" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   450
     -name "*.rdf" -o \
fcf304737c81 remove x permissions from dtd and properties files
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 341
diff changeset
   451
     -name "*.properties" -o \
356
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   452
     -name "*.dtd" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   453
     -name "*.txt" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   454
     -name "*.xml" -o \
30a00f382aed version 9.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 355
diff changeset
   455
     -name "*.css" | xargs chmod a-x
541
830e50bbfc79 working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 540
diff changeset
   456
# remove mkdir.done files from installed base
1047
847ae61baab6 Firefox 60.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1046
diff changeset
   457
find %{buildroot}%{progdir} -name ".mkdir.done" | xargs rm || :
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   458
# overwrite the mozilla start-script and link it to /usr/bin
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   459
mkdir --parents %{buildroot}/usr/bin
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   460
sed "s:%%PREFIX:%{_prefix}:g
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   461
s:%%PROGDIR:%{progdir}:g
265
f9de3817b442 build fixes
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 264
diff changeset
   462
s:%%APPNAME:firefox:g
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   463
s:%%PROFILE:.mozilla/firefox:g" \
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   464
  %{SOURCE3} > %{buildroot}%{progdir}/%{progname}.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   465
chmod 755 %{buildroot}%{progdir}/%{progname}.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   466
ln -sf ../..%{progdir}/%{progname}.sh %{buildroot}%{_bindir}/%{progname}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   467
# desktop file
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   468
mkdir -p %{buildroot}%{_datadir}/applications
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   469
sed "s:%%NAME:%{appname}:g
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   470
s:%%EXEC:%{progname}:g
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   471
s:%%ICON:%{progname}:g" \
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   472
  %{SOURCE1} > %{buildroot}%{_datadir}/applications/%{desktop_file_name}.desktop
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   473
%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   474
# additional mime-types
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   475
mkdir -p %{buildroot}%{_datadir}/mime/packages
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   476
cp %{SOURCE8} %{buildroot}%{_datadir}/mime/packages/%{progname}.xml
774
f61bd1cd52c2 added basic appstream appdata information
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 773
diff changeset
   477
# appdata
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   478
mkdir -p %{buildroot}%{_datadir}/appdata
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   479
cp %{SOURCE15} %{buildroot}%{_datadir}/appdata/%{desktop_file_name}.appdata.xml
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   480
# install man-page
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   481
mkdir -p %{buildroot}%{_mandir}/man1/
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   482
cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   483
##########
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   484
# ADDONS
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   485
#
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   486
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   487
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   488
mkdir -p %{buildroot}/usr/share/pixmaps/
1034
c88f42fc1f36 fixed filelist
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1032
diff changeset
   489
ln -sf %{progdir}/browser/chrome/icons/default/default128.png %{buildroot}/usr/share/pixmaps/%{progname}.png
c88f42fc1f36 fixed filelist
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1032
diff changeset
   490
ln -sf %{progdir}/browser/chrome/icons/default/default128.png %{buildroot}/usr/share/pixmaps/%{progname}-gnome.png
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   491
%if %branding
1034
c88f42fc1f36 fixed filelist
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1032
diff changeset
   492
for size in 16 22 24 32 48 64 128 256; do
269
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   493
%else
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   494
for size in 16 32 48; do
9ec311cdd7c8 no official branding yet
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 265
diff changeset
   495
%endif
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   496
  mkdir -p %{buildroot}%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/
839
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 838
diff changeset
   497
  cp %{buildroot}%{progdir}/browser/chrome/icons/default/default$size.png \
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   498
         %{buildroot}%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/%{progname}.png
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   499
done
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   500
# excludes
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   501
rm -f %{buildroot}%{progdir}/updater.ini
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   502
rm -f %{buildroot}%{progdir}/removed-files
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   503
rm -f %{buildroot}%{progdir}/README.txt
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   504
rm -f %{buildroot}%{progdir}/old-homepage-default.properties
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   505
rm -f %{buildroot}%{progdir}/run-mozilla.sh
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   506
rm -f %{buildroot}%{progdir}/LICENSE
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   507
rm -f %{buildroot}%{progdir}/precomplete
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   508
rm -f %{buildroot}%{progdir}/dictionaries/en-US*
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   509
rm -f %{buildroot}%{progdir}/update-settings.ini
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   510
# devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   511
mkdir -p %{buildroot}%{_bindir}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   512
install -m 755 %SOURCE12 %{buildroot}%{_bindir}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   513
# inspired by mandriva
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   514
mkdir -p %{buildroot}%{_sysconfdir}/rpm
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   515
cat <<'FIN' >%{buildroot}%{_sysconfdir}/rpm/macros.%{progname}
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   516
# Macros from %{name} package
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   517
%%firefox_major              %{major}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   518
%%firefox_version            %{version}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   519
%%firefox_mainver            %{mainver}
238
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   520
%%firefox_mozillapath        %%{_libdir}/%{progname}
d537c4a65693 fixed rpm macros (bnc#679950)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 237
diff changeset
   521
%%firefox_pluginsdir         %%{_libdir}/browser-plugins
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   522
%%firefox_appid              \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   523
%%firefox_extdir             %%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   524
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   525
%%firefox_ext_install() \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   526
   extdir="%%{buildroot}%%{firefox_extdir}/`mozilla-get-app-id '%%1'`" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   527
   mkdir -p "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   528
   %%{__unzip} -q -d "$extdir" "%%1" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   529
   %%{nil}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   530
FIN
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   531
# just dumping an xpi file there doesn't work...
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   532
#%%firefox_ext_install() \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   533
#       extdir="%%{buildroot}%%{firefox_extdir}" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   534
#       mkdir -p "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   535
#       cp "%%1" "$extdir" \
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   536
#       %%{nil}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   537
# fdupes
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   538
%fdupes %{buildroot}%{progdir}
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   539
%fdupes %{buildroot}%{_datadir}
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   540
# create breakpad debugsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   541
%if %crashreporter
904
6a889427cd4f 45.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 903
diff changeset
   542
SYMBOLS_NAME="firefox-%{version}-` echo '%{release}' | sed 's@\.[^\.]\+$@@' `.%{_arch}-%{suse_version}-symbols"
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   543
make buildsymbols \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   544
  SYMBOL_INDEX_NAME="$SYMBOLS_NAME.txt" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   545
  SYMBOL_FULL_ARCHIVE_BASENAME="$SYMBOLS_NAME-full" \
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   546
  SYMBOL_ARCHIVE_BASENAME="$SYMBOLS_NAME"
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   547
if [ -e dist/*symbols.zip ]; then
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   548
  mkdir -p %{buildroot}%{_datadir}/mozilla/
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   549
  cp dist/*symbols.zip %{buildroot}%{_datadir}/mozilla/
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   550
fi
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   551
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   552
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   553
%clean
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   554
rm -rf %{buildroot}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   555
%if %localize
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   556
rm -rf %{_tmppath}/translations.*
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   557
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   558
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   559
%post
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   560
# update mime and desktop database
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   561
%mime_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   562
%desktop_database_post
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   563
%icon_theme_cache_post
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   564
exit 0
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   565
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   566
%postun
219
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   567
%icon_theme_cache_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   568
%desktop_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   569
%mime_database_postun
b20cf866bb49 use new post/postun macros for 11.4 and later
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 218
diff changeset
   570
exit 0
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   571
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   572
%files
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   573
%defattr(-,root,root)
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   574
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   575
%dir %{progdir}/browser/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   576
%dir %{progdir}/browser/chrome/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   577
%dir %{progdir}/browser/extensions/
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   578
%{progdir}/browser/defaults
904
6a889427cd4f 45.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 903
diff changeset
   579
%{progdir}/browser/features/
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   580
%{progdir}/browser/chrome/icons
904
6a889427cd4f 45.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 903
diff changeset
   581
%{progdir}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   582
%{progdir}/browser/blocklist.xml
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   583
%{progdir}/browser/chrome.manifest
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   584
%{progdir}/browser/omni.ja
647
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   585
%dir %{progdir}/distribution/
9d8bdcdd4d2a 21.0 release
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 645
diff changeset
   586
%{progdir}/distribution/extensions/
157
6f59409302d1 switching back to jar chrome format (instead of omni)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 155
diff changeset
   587
%{progdir}/defaults/
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   588
%{progdir}/dictionaries/
907
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   589
%dir %{progdir}/gtk2
3ccb278a9ceb prepare gtk3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 906
diff changeset
   590
%{progdir}/gtk2/libmozgtk.so
828
59013b3a51f5 update to 36.0b3
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 826
diff changeset
   591
%{progdir}/gmp-clearkey/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   592
%attr(755,root,root) %{progdir}/%{progname}.sh
464
1fd4a257e727 firefox is no shell wrapper anymore but rather (almost?) a copy of firefox-bin and therefore package it
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 462
diff changeset
   593
%{progdir}/firefox
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   594
%{progdir}/firefox-bin
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   595
%{progdir}/application.ini
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   596
%{progdir}/chrome.manifest
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   597
%{progdir}/dependentlibs.list
1046
75893a3d8fbe 60.0b16
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 1045
diff changeset
   598
#%{progdir}/icudt*.dat
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   599
%{progdir}/*.so
368
8891dd9439a1 finalized Firefox 10.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 367
diff changeset
   600
%{progdir}/omni.ja
932
a58cc7936ce7 Firefox 50.0
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 931
diff changeset
   601
%{progdir}/fonts/
983
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 982
diff changeset
   602
%{progdir}/pingsender
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   603
%{progdir}/platform.ini
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   604
%{progdir}/plugin-container
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   605
%if %crashreporter
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   606
%{progdir}/crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   607
%{progdir}/crashreporter.ini
270
785d28fc6d4d fix PPC build
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 269
diff changeset
   608
%{progdir}/Throbber-small.gif
942
66115255ad6f prepare FF51 (currently 51.0b5)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 941
diff changeset
   609
%{progdir}/minidump-analyzer
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   610
%{progdir}/browser/crashreporter-override.ini
117
565d666e22a1 handle other archs
Marcus Meissner <meissner@suse.de>
parents: 103
diff changeset
   611
%endif
213
b2978eba3a92 rename desktop file for 11.4 and above (bnc#664211)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 210
diff changeset
   612
%{_datadir}/applications/%{desktop_file_name}.desktop
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   613
%{_datadir}/mime/packages/%{progname}.xml
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   614
%{_datadir}/pixmaps/firefox*
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   615
%dir %{_datadir}/mozilla
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   616
%dir %{_datadir}/mozilla/extensions
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   617
%dir %{_datadir}/mozilla/extensions/%{firefox_appid}
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   618
%dir %{_libdir}/mozilla
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   619
%dir %{_libdir}/mozilla/extensions
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   620
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   621
%{gnome_dir}/share/icons/hicolor/
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   622
%{_bindir}/%{progname}
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   623
%doc %{_mandir}/man1/%{progname}.1.gz
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   624
%{_datadir}/appdata/
34
2d77a25d185f Add firefox-crashreporter.patch to fix Firefox' application.ini
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 33
diff changeset
   625
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   626
%files devel
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   627
%defattr(-,root,root)
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   628
%{_bindir}/mozilla-get-app-id
780
c20a07035a80 use Firefox default optimization flags instead of -Os
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 777
diff changeset
   629
%config %{_sysconfdir}/rpm/macros.%{progname}
225
5a7504b93699 Provide devel package with helper script and rpm macros for easier addon packaging. (patch submitted from Ludwig Nussel)
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 223
diff changeset
   630
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   631
%if %localize
334
1256d8842872 update to version 7
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 327
diff changeset
   632
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   633
%files translations-common -f %{_tmppath}/translations.common
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   634
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   635
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   636
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   637
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   638
%files translations-other -f %{_tmppath}/translations.other
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   639
%defattr(-,root,root)
46
c743908ffe6f Update to 1.9.2rc1/3.6rc1
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 36
diff changeset
   640
%dir %{progdir}
637
73640b76d6c3 first building version of FF21
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 634
diff changeset
   641
%dir %{progdir}/browser/extensions/
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   642
%endif
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   643
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   644
# this package does not need to provide files but is needed to fulfill
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   645
# requirements if no other branding package is to be installed
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   646
%if %branding
286
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   647
%files branding-upstream
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   648
%defattr(-,root,root)
b1d254616456 reenable branding-upstream package
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 285
diff changeset
   649
%dir %{progdir}
809
af47260a332c morphed Aurora packaging into Firefox Developer Edition
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 807
diff changeset
   650
%endif
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   651
263
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   652
%if %crashreporter
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   653
%files buildsymbols
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   654
%defattr(-,root,root)
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   655
%{_datadir}/mozilla/*.zip
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   656
%endif
64adf7ca3005 standalone firefox building now; runtime untested
Wolfgang Rosenauer <wr@rosenauer.org>
parents: 262
diff changeset
   657
5
17b1dd932700 Add MozillaFirefox package
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff changeset
   658
%changelog