xulrunner/xulrunner.spec
branchfirefox7
changeset 334 1256d8842872
parent 325 f5966ab369fb
child 336 32fed23c19f5
equal deleted inserted replaced
333:747f09b514d8 334:1256d8842872
    18 
    18 
    19 # norootforbuild
    19 # norootforbuild
    20 
    20 
    21 
    21 
    22 Name:           xulrunner
    22 Name:           xulrunner
    23 BuildRequires:  Mesa-devel autoconf213 dbus-1-glib-devel fdupes gcc-c++ hunspell-devel libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel unzip pkg-config yasm nss-shared-helper-devel zip
    23 BuildRequires:  Mesa-devel autoconf213 dbus-1-glib-devel fdupes gcc-c++ hunspell-devel libcurl-devel libgnomeui-devel libidl-devel libnotify-devel nss-shared-helper-devel pkg-config python startup-notification-devel unzip yasm zip
    24 %if %suse_version > 1110
    24 %if %suse_version > 1110
    25 BuildRequires:  libiw-devel
    25 BuildRequires:  libiw-devel
    26 BuildRequires:  libproxy-devel
    26 BuildRequires:  libproxy-devel
    27 %else
    27 %else
    28 BuildRequires:  wireless-tools
    28 BuildRequires:  wireless-tools
    29 %endif
    29 %endif
    30 BuildRequires:  mozilla-nspr-devel >= 4.8.8
    30 BuildRequires:  mozilla-nspr-devel >= 4.8.8
    31 BuildRequires:  mozilla-nss-devel >= 3.12.10
    31 BuildRequires:  mozilla-nss-devel >= 3.12.10
    32 License:        MPLv1.1 or GPLv2+ or LGPLv2+
    32 License:        MPLv1.1 or GPLv2+ or LGPLv2+
    33 Version:        6.99
    33 Version:        7.0
    34 Release:        1
    34 Release:        1
    35 %define         releasedate 2011091300
    35 %define         releasedate 2011092200
    36 %define         version_internal 7.0b5
    36 %define         version_internal 7.0
    37 %define         apiversion 7
    37 %define         apiversion 7
    38 %define         uaweight 700000
    38 %define         uaweight 700000
    39 Summary:        Mozilla Runtime Environment
    39 Summary:        Mozilla Runtime Environment
    40 Url:            http://www.mozilla.org/
    40 Url:            http://www.mozilla.org/
    41 Group:          Productivity/Other
    41 Group:          Productivity/Other
    55 Patch1:         toolkit-download-folder.patch
    55 Patch1:         toolkit-download-folder.patch
    56 Patch2:         mozilla-pkgconfig.patch
    56 Patch2:         mozilla-pkgconfig.patch
    57 Patch3:         idldir.patch
    57 Patch3:         idldir.patch
    58 Patch4:         mozilla-nongnome-proxies.patch
    58 Patch4:         mozilla-nongnome-proxies.patch
    59 Patch5:         mozilla-prefer_plugin_pref.patch
    59 Patch5:         mozilla-prefer_plugin_pref.patch
    60 Patch8:         mozilla-cairo-lcd.patch
       
    61 Patch9:         mozilla-language.patch
    60 Patch9:         mozilla-language.patch
    62 Patch10:        mozilla-cairo-return.patch
    61 Patch10:        mozilla-cairo-return.patch
    63 Patch11:        mozilla-ntlm-full-path.patch
    62 Patch11:        mozilla-ntlm-full-path.patch
    64 Patch12:        mozilla-dump_syms-static.patch
    63 Patch12:        mozilla-dump_syms-static.patch
    65 Patch13:        mozilla-sle11.patch
    64 Patch13:        mozilla-sle11.patch
   125 
   124 
   126 %description devel
   125 %description devel
   127 Software Development Kit to embed XUL or Gecko into other applications.
   126 Software Development Kit to embed XUL or Gecko into other applications.
   128 
   127 
   129 %if %localize
   128 %if %localize
       
   129 
   130 %package translations-common
   130 %package translations-common
   131 License:        MPLv1.1 or GPLv2+ or LGPLv2+
   131 License:        MPLv1.1 or GPLv2+ or LGPLv2+
   132 Summary:        Common translations for XULRunner
   132 Summary:        Common translations for XULRunner
   133 Group:          System/Localization
   133 Group:          System/Localization
   134 Requires:       %{name} = %{version}
   134 Requires:       %{name} = %{version}
   158 Thunderbird.
   158 Thunderbird.
   159 
   159 
   160 This package contains rarely used languages.
   160 This package contains rarely used languages.
   161 %endif
   161 %endif
   162 
   162 
   163 
       
   164 %if %crashreporter
   163 %if %crashreporter
       
   164 
   165 %package buildsymbols
   165 %package buildsymbols
   166 License:        MPLv1.1 or GPLv2+ or LGPLv2+
   166 License:        MPLv1.1 or GPLv2+ or LGPLv2+
   167 Summary:        Breakpad buildsymbols for %{name}
   167 Summary:        Breakpad buildsymbols for %{name}
   168 Group:          Development/Debug
   168 Group:          Development/Debug
   169 
   169 
   177 %patch1 -p1
   177 %patch1 -p1
   178 %patch2 -p1
   178 %patch2 -p1
   179 %patch3 -p1
   179 %patch3 -p1
   180 %patch4 -p1
   180 %patch4 -p1
   181 %patch5 -p1
   181 %patch5 -p1
   182 %patch8 -p1
       
   183 %patch9 -p1
   182 %patch9 -p1
   184 %patch10 -p1
   183 %patch10 -p1
   185 %patch11 -p1
   184 %patch11 -p1
   186 %patch12 -p1
   185 %patch12 -p1
   187 %if %suse_version < 1120
   186 %if %suse_version < 1120
   188 %patch13 -p1
   187 %patch13 -p1
   189 %endif
   188 %endif
   190 %patch14 -p1
   189 %patch14 -p1
   191 %patch15 -p1
   190 %patch15 -p1
   192 
       
   193 
   191 
   194 %build
   192 %build
   195 # no need to add build time to binaries
   193 # no need to add build time to binaries
   196 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
   194 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
   197 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
   195 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
   281 %install
   279 %install
   282 cd ../obj
   280 cd ../obj
   283 # preferences (to package in omni.jar)
   281 # preferences (to package in omni.jar)
   284 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js
   282 cp %{SOURCE4} dist/bin/defaults/pref/all-openSUSE.js
   285 %makeinstall STRIP=/bin/true
   283 %makeinstall STRIP=/bin/true
       
   284 # xpt.py is not executable
       
   285 chmod a+x $RPM_BUILD_ROOT%{_libdir}/xulrunner-devel-%{version_internal}/sdk/bin/xpt.py
   286 # remove some executable permissions
   286 # remove some executable permissions
   287 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
   287 find $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal} \
   288      -type f -perm -111 -exec chmod a-x {} \;
   288      -type f -perm -111 -exec chmod a-x {} \;
   289 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
   289 find $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/ \
   290      -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x
   290      -name "*.js" -o -name "*.xpm" -o -name "*.png" | xargs chmod a-x
   476 %attr(644,root,root) %{_libdir}/pkgconfig/*
   476 %attr(644,root,root) %{_libdir}/pkgconfig/*
   477 %{_includedir}/xulrunner-%{version_internal}/
   477 %{_includedir}/xulrunner-%{version_internal}/
   478 %{_datadir}/xulrunner-%{version_internal}/
   478 %{_datadir}/xulrunner-%{version_internal}/
   479 
   479 
   480 %if %localize
   480 %if %localize
       
   481 
   481 %files translations-common -f %{_tmppath}/translations.common
   482 %files translations-common -f %{_tmppath}/translations.common
   482 %defattr(-,root,root)
   483 %defattr(-,root,root)
   483 %dir %{_libdir}/xulrunner-%{version_internal}/
   484 %dir %{_libdir}/xulrunner-%{version_internal}/
   484 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   485 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   485 
   486 
   488 %dir %{_libdir}/xulrunner-%{version_internal}/
   489 %dir %{_libdir}/xulrunner-%{version_internal}/
   489 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   490 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   490 %endif
   491 %endif
   491 
   492 
   492 %if %crashreporter
   493 %if %crashreporter
       
   494 
   493 %files buildsymbols
   495 %files buildsymbols
   494 %defattr(-,root,root)
   496 %defattr(-,root,root)
   495 %{_datadir}/mozilla/
   497 %{_datadir}/mozilla/
   496 %endif
   498 %endif
   497 
   499