xulrunner/xulrunner.spec
branchesr24
changeset 698 8066b2bdabfb
parent 678 d0329e10d68c
child 701 ab93666f5ff7
equal deleted inserted replaced
690:9291d123ef2b 698:8066b2bdabfb
     1 #
     1 #
     2 # spec file for package xulrunner
     2 # spec file for package xulrunner
     3 #
     3 #
     4 # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
     4 # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
     5 #               2006-2013 Wolfgang Rosenauer
     5 #               2006-2014 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
     8 # remain the property of their copyright owners, unless otherwise agreed
     8 # remain the property of their copyright owners, unless otherwise agreed
     9 # upon. The license for this file, and modifications and additions to the
     9 # upon. The license for this file, and modifications and additions to the
    10 # file, is the same license as for the pristine package itself (unless the
    10 # file, is the same license as for the pristine package itself (unless the
    45 BuildRequires:  libiw-devel
    45 BuildRequires:  libiw-devel
    46 BuildRequires:  libproxy-devel
    46 BuildRequires:  libproxy-devel
    47 %else
    47 %else
    48 BuildRequires:  wireless-tools
    48 BuildRequires:  wireless-tools
    49 %endif
    49 %endif
    50 BuildRequires:  mozilla-nspr-devel >= 4.10
    50 BuildRequires:  mozilla-nspr-devel >= 4.10.2
    51 BuildRequires:  mozilla-nss-devel >= 3.15.2
    51 BuildRequires:  mozilla-nss-devel >= 3.15.3.1
    52 %if %suse_version > 1210
    52 %if %suse_version > 1210
    53 BuildRequires:  pkgconfig(gstreamer-%gstreamer_ver)
    53 BuildRequires:  pkgconfig(gstreamer-%gstreamer_ver)
    54 BuildRequires:  pkgconfig(gstreamer-app-%gstreamer_ver)
    54 BuildRequires:  pkgconfig(gstreamer-app-%gstreamer_ver)
    55 BuildRequires:  pkgconfig(gstreamer-plugins-base-%gstreamer_ver)
    55 BuildRequires:  pkgconfig(gstreamer-plugins-base-%gstreamer_ver)
    56 %endif
    56 %endif
    57 Version:        24.1.0
    57 Version:        24.2.0
    58 Release:        0
    58 Release:        0
    59 %define         releasedate 2013102400
    59 %define         releasedate 2013120700
    60 %define         version_internal 24.1.0
    60 %define         version_internal 24.2.0
    61 %define         apiversion 24
    61 %define         apiversion 24
    62 %define         uaweight 2401000
    62 %define         uaweight 2402000
    63 Summary:        Mozilla Runtime Environment
    63 Summary:        Mozilla Runtime Environment
    64 License:        MPL-2.0
    64 License:        MPL-2.0
    65 Group:          Productivity/Other
    65 Group:          Productivity/Other
    66 Url:            http://www.mozilla.org/
    66 Url:            http://www.mozilla.org/
    67 Provides:       gecko
    67 Provides:       gecko
    86 Patch6:         mozilla-language.patch
    86 Patch6:         mozilla-language.patch
    87 Patch7:         mozilla-ntlm-full-path.patch
    87 Patch7:         mozilla-ntlm-full-path.patch
    88 Patch9:         mozilla-sle11.patch
    88 Patch9:         mozilla-sle11.patch
    89 Patch10:        mozilla-ppc.patch
    89 Patch10:        mozilla-ppc.patch
    90 Patch11:        mozilla-libproxy-compat.patch
    90 Patch11:        mozilla-libproxy-compat.patch
       
    91 Patch12:        libffi-ppc64le.patch
       
    92 Patch13:        xpcom-ppc64le.patch
       
    93 Patch14:        ppc64le-support.patch
    91 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    94 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    92 Requires:       mozilla-js = %{version}
    95 Requires:       mozilla-js = %{version}
    93 Requires(post):  update-alternatives coreutils
    96 Requires(post):  update-alternatives coreutils
    94 Requires(preun): update-alternatives coreutils
    97 Requires(preun): update-alternatives coreutils
    95 Provides:       xulrunner-esr = %{version}
    98 Provides:       xulrunner-esr = %{version}
    96 Obsoletes:      xulrunner-esr < 24.0
    99 Obsoletes:      xulrunner-esr < 24.0
    97 ### build configuration ###
   100 ### build configuration ###
    98 %define has_system_nspr  1
   101 %define has_system_nspr  1
    99 %define has_system_nss   1
   102 %define has_system_nss   1
   100 %define has_system_cairo 0
   103 %define has_system_cairo 0
   101 %define localize 1
   104 %define localize 0
   102 %ifarch ppc ppc64 s390 s390x ia64 %arm
   105 %ifarch ppc ppc64 ppc64le s390 s390x ia64 %arm aarch64
   103 %define crashreporter    0
   106 %define crashreporter    0
   104 %else
   107 %else
   105 %define crashreporter    1
   108 %define crashreporter    1
   106 %endif
   109 %endif
   107 ### configuration end ###
   110 ### configuration end ###
   203 %if %suse_version < 1120
   206 %if %suse_version < 1120
   204 %patch9 -p1
   207 %patch9 -p1
   205 %endif
   208 %endif
   206 %patch10 -p1
   209 %patch10 -p1
   207 %patch11 -p1
   210 %patch11 -p1
       
   211 #%patch12 -p1
       
   212 #%patch13 -p1
       
   213 #%patch14 -p1
   208 
   214 
   209 %build
   215 %build
   210 # no need to add build time to binaries
   216 # no need to add build time to binaries
   211 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
   217 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
   212 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
   218 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
   214 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
   220 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
   215 #
   221 #
   216 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   222 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   217 export MOZ_BUILD_DATE=%{releasedate}
   223 export MOZ_BUILD_DATE=%{releasedate}
   218 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   224 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   219 %ifarch ppc64
   225 %ifarch ppc64 ppc64le
   220 export CFLAGS="$CFLAGS -mminimal-toc"
   226 export CFLAGS="$CFLAGS -mminimal-toc"
   221 %endif
   227 %endif
   222 export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
   228 export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
   223 %ifarch %arm
   229 %ifarch %arm
   224 # debug symbols require too much memory during build
   230 # debug symbols require too much memory during build