mozilla-xulrunner192/mozilla-xulrunner192.spec
changeset 11 32afe3be5990
parent 7 18af63e87953
child 14 3042f63da3b6
equal deleted inserted replaced
10:1920f0ff04a3 11:32afe3be5990
    36 BuildRequires:  libiw-devel
    36 BuildRequires:  libiw-devel
    37 #BuildRequires:  libproxy-devel
    37 #BuildRequires:  libproxy-devel
    38 %else
    38 %else
    39 BuildRequires:  wireless-tools
    39 BuildRequires:  wireless-tools
    40 %endif
    40 %endif
    41 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
    41 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    42 Version:        1.9.2b4
    42 Version:        1.9.2b4
    43 Release:        1
    43 Release:        1
    44 %define         releasedate 2009112600
    44 %define         releasedate 2009112600
    45 %define         version_internal 1.9.2b4
    45 %define         version_internal 1.9.2b4
    46 %define         apiversion 1.9.2
    46 %define         apiversion 1.9.2
    47 %define         uaweight 191999
    47 %define         uaweight 191999
    48 Summary:        Mozilla Runtime Environment 1.9.2
    48 Summary:        Mozilla Runtime Environment 1.9.2
    49 Url:            http://www.mozilla.org
    49 Url:            http://www.mozilla.org
    50 Group:          Productivity/Other
    50 Group:          Productivity/Other
    51 Provides:       gecko192
    51 Provides:       gecko192
       
    52 %if %suse_version >= 1110
       
    53 # this is needed to match this package with the kde4 helper package without the main package
       
    54 # having a hard requirement on the kde4 package
       
    55 %define kde_helper_version 6
       
    56 Provides:       mozilla-xulrunner191-kde4-version = %{kde_helper_version}
       
    57 %endif
    52 %ifarch %ix86
    58 %ifarch %ix86
    53 Provides:       mozilla-xulrunner192-32bit = %{version}-%{release}
    59 Provides:       mozilla-xulrunner192-32bit = %{version}-%{release}
    54 %endif
    60 %endif
    55 Source:         xulrunner-source-%{version}.tar.bz2
    61 Source:         xulrunner-source-%{version}.tar.bz2
    56 Source1:        l10n-%{version}.tar.bz2
    62 Source1:        l10n-%{version}.tar.bz2
    61 Source6:        create-tar.sh
    67 Source6:        create-tar.sh
    62 Patch1:         toolkit-download-folder.patch
    68 Patch1:         toolkit-download-folder.patch
    63 Patch2:         mozilla-libproxy.patch
    69 Patch2:         mozilla-libproxy.patch
    64 Patch3:         mozilla-pkgconfig.patch
    70 Patch3:         mozilla-pkgconfig.patch
    65 Patch4:         idldir.patch
    71 Patch4:         idldir.patch
    66 Patch7:         mozilla-nongnome-proxies.patch
    72 Patch5:         mozilla-nongnome-proxies.patch
    67 Patch8:         mozilla-helper-app.patch
    73 Patch6:         mozilla-helper-app.patch
    68 Patch12:        mozilla-prefer_plugin_pref.patch
    74 Patch7:         mozilla-prefer_plugin_pref.patch
       
    75 Patch8:         mozilla-shared-nss-db.patch
       
    76 Patch9:         mozilla-startup-notification.patch
       
    77 Patch10:        mozilla-kde.patch
    69 # PATCH-FEATURE-SLED FATE#302023, FATE#302024 - hfiguiere@novell.com
    78 # PATCH-FEATURE-SLED FATE#302023, FATE#302024 - hfiguiere@novell.com
    70 # --- disabled for now
    79 # --- disabled for now
    71 Patch16:        gconf-backend.patch.bz2
    80 Patch16:        gconf-backend.patch.bz2
    72 Patch17:        gecko-lockdown.patch
    81 Patch17:        gecko-lockdown.patch
    73 Patch18:        toolkit-ui-lockdown.patch
    82 Patch18:        toolkit-ui-lockdown.patch
    74 # ---
    83 # ---
    75 Patch22:        mozilla-shared-nss-db.patch
       
    76 Patch23:        mozilla-kde.patch
       
    77 Patch24:        mozilla-startup-notification.patch
       
    78 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    84 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    79 PreReq:         update-alternatives coreutils
    85 PreReq:         update-alternatives coreutils
    80 ### build configuration ###
    86 ### build configuration ###
    81 %define has_system_nspr  0
    87 %define has_system_nspr  0
    82 %define has_system_nss   0
    88 %define has_system_nss   0
   109 multiple XUL+XPCOM applications that are as rich as Firefox and
   115 multiple XUL+XPCOM applications that are as rich as Firefox and
   110 Thunderbird.
   116 Thunderbird.
   111 
   117 
   112 
   118 
   113 %package devel
   119 %package devel
   114 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   120 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   115 Summary:        XULRunner/Gecko SDK 1.9.2
   121 Summary:        XULRunner/Gecko SDK 1.9.2
   116 Group:          Development/Libraries/Other
   122 Group:          Development/Libraries/Other
   117 %if %has_system_nspr
   123 %if %has_system_nspr
   118 Requires:       mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) 
   124 Requires:       mozilla-nspr-devel >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr-devel) 
   119 %endif
   125 %endif
   125 %description devel
   131 %description devel
   126 Software Development Kit to embed XUL or Gecko into other applications.
   132 Software Development Kit to embed XUL or Gecko into other applications.
   127 
   133 
   128 
   134 
   129 %package translations-common
   135 %package translations-common
   130 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   136 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   131 Summary:        Common translations for XULRunner 1.9.2
   137 Summary:        Common translations for XULRunner 1.9.2
   132 Group:          System/Localization
   138 Group:          System/Localization
   133 PreReq:         %{name} = %{version}
   139 PreReq:         %{name} = %{version}
   134 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)
   140 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)
   135 Obsoletes:      %{name}-translations < %{version}-%{release}
   141 Obsoletes:      %{name}-translations < %{version}-%{release}
   142 This package contains the most common languages but en-US which is
   148 This package contains the most common languages but en-US which is
   143 delivered in the main package.
   149 delivered in the main package.
   144 
   150 
   145 
   151 
   146 %package translations-other
   152 %package translations-other
   147 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   153 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   148 Summary:        Extra translations for XULRunner 1.9.2
   154 Summary:        Extra translations for XULRunner 1.9.2
   149 Group:          System/Localization
   155 Group:          System/Localization
   150 PreReq:         %{name} = %{version}
   156 PreReq:         %{name} = %{version}
   151 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)
   157 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)
   152 Provides:       locale(%{name}:af;as;be;bg;bn_BD;bn_IN;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;th;tr;uk;vi)
   158 Provides:       locale(%{name}:af;as;be;bg;bn_BD;bn_IN;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;th;tr;uk;vi)
   159 
   165 
   160 This package contains rarely used languages.
   166 This package contains rarely used languages.
   161 
   167 
   162 
   168 
   163 %package gnomevfs
   169 %package gnomevfs
   164 License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
   170 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   165 Summary:        XULRunner components depending on gnome-vfs
   171 Summary:        XULRunner components depending on gnome-vfs
   166 Group:          Productivity/Other
   172 Group:          Productivity/Other
   167 PreReq:         %{name} = %{version}-%{release}
   173 PreReq:         %{name} = %{version}-%{release}
   168 
   174 
   169 %description gnomevfs
   175 %description gnomevfs
   174 
   180 
   175 
   181 
   176 %prep
   182 %prep
   177 %setup -n mozilla -q -b 1
   183 %setup -n mozilla -q -b 1
   178 %patch1 -p1
   184 %patch1 -p1
   179 #%patch2 -p1
   185 %patch2 -p1
   180 %patch3 -p1
   186 %patch3 -p1
   181 %patch4 -p1
   187 %patch4 -p1
       
   188 %patch5 -p1
       
   189 %patch6 -p1
   182 %patch7 -p1
   190 %patch7 -p1
   183 %patch8 -p1
   191 %patch8 -p1
   184 %patch12 -p1
   192 %patch9 -p1
       
   193 %patch10 -p1
   185 # BEGIN lockdown - currently broken (see bnc#508611)
   194 # BEGIN lockdown - currently broken (see bnc#508611)
   186 #%patch16 -p1
   195 #%patch16 -p1
   187 #%patch17
   196 #%patch17
   188 #%patch18 -p1
   197 #%patch18 -p1
   189 # END lockdown
   198 # END lockdown
   190 %patch22 -p1
       
   191 %patch24 -p1
       
   192 
   199 
   193 %build
   200 %build
       
   201 %if %suse_version >= 1110
       
   202 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
       
   203 if test "$kdehelperversion" != %{kde_helper_version}; then
       
   204   echo fix kde helper version in the .spec file
       
   205   exit 1
       
   206 fi
       
   207 %endif
   194 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   208 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   195 export MOZ_BUILD_DATE=%{releasedate}
   209 export MOZ_BUILD_DATE=%{releasedate}
   196 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   210 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   197 %ifarch ppc64
   211 %ifarch ppc64
   198 export CFLAGS="$CFLAGS -mminimal-toc"
   212 export CFLAGS="$CFLAGS -mminimal-toc"