mozilla-xulrunner20/mozilla-xulrunner20.spec
changeset 230 e4846f1b81c5
parent 229 298263f797be
child 232 156406e2b62d
equal deleted inserted replaced
229:298263f797be 230:e4846f1b81c5
     1 #
     1 #
     2 # spec file for package mozilla-xulrunner20
     2 # spec file for package mozilla-xulrunner20 (Version 2.0b12)
     3 #
     3 #
     4 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
     4 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
     5 #               2006-2011 Wolfgang Rosenauer
     5 #               2006-2011 Wolfgang Rosenauer
     6 #
     6 #
     7 # All modifications and additions to the file contributed by third parties
     7 # All modifications and additions to the file contributed by third parties
    18 
    18 
    19 # norootforbuild
    19 # norootforbuild
    20 
    20 
    21 
    21 
    22 Name:           mozilla-xulrunner20
    22 Name:           mozilla-xulrunner20
    23 BuildRequires:  Mesa-devel autoconf213 fdupes gcc-c++ hunspell-devel libcurl-devel libgnomeui-devel libidl-devel libnotify-devel nss-shared-helper-devel pkg-config python startup-notification-devel yasm zip
    23 BuildRequires:  autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python startup-notification-devel zip pkg-config fdupes hunspell-devel yasm Mesa-devel nss-shared-helper-devel
    24 # needed for brp-check-bytecode-version (jar, fastjar would do as well)
    24 # needed for brp-check-bytecode-version (jar, fastjar would do as well)
    25 BuildRequires:  unzip
    25 BuildRequires:  unzip
    26 %if %suse_version > 1110
    26 %if %suse_version > 1110
    27 BuildRequires:  libiw-devel
    27 BuildRequires:  libiw-devel
    28 BuildRequires:  libproxy-devel
    28 BuildRequires:  libproxy-devel
    29 %else
    29 %else
    30 BuildRequires:  wireless-tools
    30 BuildRequires:  wireless-tools
    31 %endif
    31 %endif
    32 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    32 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
    33 Version:        2.0b11
    33 Version:        2.0b12
    34 Release:        1
    34 Release:        1
    35 %define         releasedate 2011020300
    35 %define         releasedate 2011022200
    36 %define         version_internal 2.0b11
    36 %define         version_internal 2.0b12
    37 %define         apiversion 2.0
    37 %define         apiversion 2.0
    38 %define         uaweight 199900
    38 %define         uaweight 199900
    39 Summary:        Mozilla Runtime Environment 2.0
    39 Summary:        Mozilla Runtime Environment 2.0
    40 Url:            http://www.mozilla.org
    40 Url:            http://www.mozilla.org
    41 Group:          Productivity/Other
    41 Group:          Productivity/Other
   161 %package translations-other
   161 %package translations-other
   162 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   162 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   163 Summary:        Extra translations for XULRunner 2.0
   163 Summary:        Extra translations for XULRunner 2.0
   164 Group:          System/Localization
   164 Group:          System/Localization
   165 Requires:       %{name} = %{version}
   165 Requires:       %{name} = %{version}
   166 Provides:       locale(%{name}:af;as;be;bg;bn_BD;bn_IN;cy;el;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;hr;id;is;ka;kk;kn;ku;lt;lv;mk;ml;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi)
   166 Provides:       locale(%{name}:af;ak;ast;be;bg;bn_BD;br;bs;cy;el;en_ZA;eo;es_MX;et;eu;fy_NL;ga_IE;gd;gl;gu_IN;he;hi_IN;hr;hy_AM;id;is;kk;kn;ku;lg;lt;lv;mai;mk;ml;mr;nn_NO;nso;or;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;ta_LK;te;th;tr;uk;zu)
   167 Obsoletes:      %{name}-translations < %{version}-%{release}
   167 Obsoletes:      %{name}-translations < %{version}-%{release}
   168 
   168 
   169 %description translations-other
   169 %description translations-other
   170 XULRunner is a single installable package that can be used to bootstrap
   170 XULRunner is a single installable package that can be used to bootstrap
   171 multiple XUL+XPCOM applications that are as rich as Firefox and
   171 multiple XUL+XPCOM applications that are as rich as Firefox and
   187 for full desktop integration but not mandatory for small disk footprint
   187 for full desktop integration but not mandatory for small disk footprint
   188 KDE installations for example.
   188 KDE installations for example.
   189 
   189 
   190 
   190 
   191 %if %crashreporter
   191 %if %crashreporter
   192 
       
   193 %package buildsymbols
   192 %package buildsymbols
   194 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   193 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   195 Summary:        Breakpad buildsymbols for %{name}
   194 Summary:        Breakpad buildsymbols for %{name}
   196 Group:          Development/Debug
   195 Group:          Development/Debug
   197 
   196 
   356 %if %localize
   355 %if %localize
   357 rm -f %{_tmppath}/translations.*
   356 rm -f %{_tmppath}/translations.*
   358 touch %{_tmppath}/translations.{common,other}
   357 touch %{_tmppath}/translations.{common,other}
   359 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
   358 for locale in $(awk '{ print $1; }' ../mozilla/browser/locales/shipped-locales); do
   360   case $locale in
   359   case $locale in
   361    ja-JP-mac|en-US)
   360    ja-JP-mac|en-US|bn-IN)
   362       ;;
   361       ;;
   363    *)
   362    *)
   364       pushd $RPM_BUILD_DIR/compare-locales
   363       pushd $RPM_BUILD_DIR/compare-locales
   365       PYTHONPATH=lib \
   364       PYTHONPATH=lib \
   366         scripts/compare-locales -m ../l10n-merged/$locale \
   365         scripts/compare-locales -m ../l10n-merged/$locale \
   538 %if %suse_version <= 1130
   537 %if %suse_version <= 1130
   539 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
   538 %{_libdir}/xulrunner-%{version_internal}/components/libnkgnomevfs.so
   540 %endif
   539 %endif
   541 
   540 
   542 %if %localize
   541 %if %localize
   543 
       
   544 %files translations-common -f %{_tmppath}/translations.common
   542 %files translations-common -f %{_tmppath}/translations.common
   545 %defattr(-,root,root)
   543 %defattr(-,root,root)
   546 %dir %{_libdir}/xulrunner-%{version_internal}/
   544 %dir %{_libdir}/xulrunner-%{version_internal}/
   547 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   545 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   548 
   546 
   551 %dir %{_libdir}/xulrunner-%{version_internal}/
   549 %dir %{_libdir}/xulrunner-%{version_internal}/
   552 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   550 %dir %{_libdir}/xulrunner-%{version_internal}/chrome/
   553 %endif
   551 %endif
   554 
   552 
   555 %if %crashreporter
   553 %if %crashreporter
   556 
       
   557 %files buildsymbols
   554 %files buildsymbols
   558 %defattr(-,root,root)
   555 %defattr(-,root,root)
   559 %{_datadir}/mozilla/
   556 %{_datadir}/mozilla/
   560 %endif
   557 %endif
   561 
   558