MozillaFirefox/MozillaFirefox.spec
changeset 12 1f7c3dc01e1c
parent 5 17b1dd932700
child 18 c4da314d7975
equal deleted inserted replaced
11:32afe3be5990 12:1f7c3dc01e1c
    29 %if %suse_version > 1110
    29 %if %suse_version > 1110
    30 BuildRequires:  libiw-devel
    30 BuildRequires:  libiw-devel
    31 %else
    31 %else
    32 BuildRequires:  wireless-tools
    32 BuildRequires:  wireless-tools
    33 %endif
    33 %endif
    34 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
    34 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    35 Provides:       web_browser
    35 Provides:       web_browser
    36 Provides:       firefox
    36 Provides:       firefox
    37 Version:        3.6b4
    37 Version:        3.6b4
    38 Release:        1
    38 Release:        1
    39 %define         releasedate 2009112600
    39 %define         releasedate 2009112600
    45 Source2:        %{name}-rpmlintrc
    45 Source2:        %{name}-rpmlintrc
    46 Source3:        mozilla.sh.in
    46 Source3:        mozilla.sh.in
    47 Source4:        find-external-requires.sh
    47 Source4:        find-external-requires.sh
    48 # this needs to be shipped when lockdown changes are back
    48 # this needs to be shipped when lockdown changes are back
    49 Source5:        firefox.schemas
    49 Source5:        firefox.schemas
       
    50 Source6:        kde.js
    50 Source7:        l10n-%{version}.tar.bz2
    51 Source7:        l10n-%{version}.tar.bz2
    51 Source8:        firefox-mimeinfo.xml
    52 Source8:        firefox-mimeinfo.xml
    52 Source16:       firefox.1
    53 Source16:       firefox.1
    53 Source17:       firefox-suse-default-prefs.js
    54 Source17:       firefox-suse-default-prefs.js
    54 Patch1:         firefox-libxul-sdk.patch
    55 Patch1:         firefox-libxul-sdk.patch
    55 Patch2:         firefox-credits.patch
    56 Patch2:         firefox-credits.patch
    56 Patch3:         toolkit-download-folder.patch
    57 Patch3:         toolkit-download-folder.patch
    57 Patch4:         firefox-linkorder.patch
    58 Patch4:         firefox-linkorder.patch
    58 Patch5:         firefox-browser-css.patch
    59 Patch5:         firefox-browser-css.patch
    59 Patch6:         firefox-cross-desktop.patch
    60 Patch6:         firefox-cross-desktop.patch
    60 #Patch7:         firefox-kde.patch
    61 Patch7:         firefox-no-gnomevfs.patch
    61 Patch8:         firefox-no-gnomevfs.patch
    62 Patch8:         firefox-appname.patch
    62 Patch17:        firefox-appname.patch
    63 Patch9:         firefox-kde.patch
    63 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    64 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    64 PreReq:         coreutils /bin/sh shared-mime-info desktop-file-utils
    65 PreReq:         coreutils /bin/sh shared-mime-info desktop-file-utils
    65 Requires:       %{xulrunner} >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
    66 Requires:       %{xulrunner} >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
    66 %requires_eq    %{xulrunner}
    67 %requires_eq    %{xulrunner}
    67 %ifarch %ix86
    68 %ifarch %ix86
    92 
    93 
    93 
    94 
    94 %if %localize
    95 %if %localize
    95 %package translations-common
    96 %package translations-common
    96 Summary:        Common translations for MozillaFirefox
    97 Summary:        Common translations for MozillaFirefox
    97 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
    98 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    98 Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW)
    99 Provides:       locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW)
    99 Group:          System/Localization
   100 Group:          System/Localization
   100 PreReq:         %{name} = %{version}
   101 PreReq:         %{name} = %{version}
   101 Requires:       %{xulrunner}-translations-common
   102 Requires:       %{xulrunner}-translations-common
   102 Obsoletes:      %{name}-translations < %{version}-%{release}
   103 Obsoletes:      %{name}-translations < %{version}-%{release}
   105 This package contains several common languages for the user interface
   106 This package contains several common languages for the user interface
   106 of MozillaFirefox.
   107 of MozillaFirefox.
   107 
   108 
   108 %package translations-other
   109 %package translations-other
   109 Summary:        Extra translations for MozillaFirefox
   110 Summary:        Extra translations for MozillaFirefox
   110 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   111 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   111 Provides:       locale(%{name}:be;bn_BD;cy;el;eo;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;id;is;kk;kn;lt;lv;mk;ml;mr;nn_NO;or;pa_IN;rm;ro;si;sk;sl;sq;ta;ta_LK;te;tr;uk)
   112 Provides:       locale(%{name}:be;bn_BD;cy;el;eo;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;id;is;kk;kn;lt;lv;mk;ml;mr;nn_NO;or;pa_IN;rm;ro;si;sk;sl;sq;ta;ta_LK;te;tr;uk)
   112 Group:          System/Localization
   113 Group:          System/Localization
   113 PreReq:         %{name} = %{version}
   114 PreReq:         %{name} = %{version}
   114 Requires:       %{xulrunner}-translations-other
   115 Requires:       %{xulrunner}-translations-other
   115 Obsoletes:      %{name}-translations < %{version}-%{release}
   116 Obsoletes:      %{name}-translations < %{version}-%{release}
   119 of MozillaFirefox.
   120 of MozillaFirefox.
   120 
   121 
   121 %endif
   122 %endif
   122 
   123 
   123 %package branding-upstream
   124 %package branding-upstream
   124 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   125 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   125 Summary:        Upstream branding for MozillaFirefox
   126 Summary:        Upstream branding for MozillaFirefox
   126 Group:          Productivity/Networking/Web/Browsers
   127 Group:          Productivity/Networking/Web/Browsers
   127 Provides:       %{name}-branding = 3.5
   128 Provides:       %{name}-branding = 3.5
   128 Conflicts:      otherproviders(%{name}-branding)
   129 Conflicts:      otherproviders(%{name}-branding)
   129 Supplements:    packageand(%{name}:branding-upstream)
   130 Supplements:    packageand(%{name}:branding-upstream)
   148 cd $RPM_BUILD_DIR/mozilla
   149 cd $RPM_BUILD_DIR/mozilla
   149 %patch1 -p1
   150 %patch1 -p1
   150 %patch2 -p1
   151 %patch2 -p1
   151 %patch3 -p1
   152 %patch3 -p1
   152 %patch4 -p1
   153 %patch4 -p1
   153 #%patch5 -p1 # FIXME
   154 %patch5 -p1
   154 %patch6 -p1
   155 %patch6 -p1
       
   156 %patch7 -p1
   155 %patch8 -p1
   157 %patch8 -p1
   156 %patch17 -p1
   158 %if %suse_version >= 1110
       
   159 %patch9 -p1
       
   160 # install kde.js
       
   161 install -m 644 %{SOURCE6} browser/app/profile/kde.js
       
   162 %endif
   157 
   163 
   158 %build
   164 %build
   159 export MOZ_BUILD_DATE=%{releasedate}
   165 export MOZ_BUILD_DATE=%{releasedate}
   160 export MOZILLA_OFFICIAL=1
   166 export MOZILLA_OFFICIAL=1
   161 export BUILD_OFFICIAL=1
   167 export BUILD_OFFICIAL=1