forked from pool/MozillaFirefox
- use Firefox default optimization flags instead of -Os
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=405
This commit is contained in:
parent
159486ad08
commit
fd45b34aba
@ -1,7 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 19 12:59:28 UTC 2014 - vindex17@outlook.it
|
||||
|
||||
- restore the default "-O2" flag for x86_64 CPUs
|
||||
- use Firefox default optimization flags instead of -Os
|
||||
- specfile cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@ -17,11 +17,13 @@
|
||||
#
|
||||
|
||||
|
||||
# changed with every update
|
||||
%define major 33
|
||||
%define mainver %major.0
|
||||
%define update_channel release
|
||||
%define releasedate 2014101000
|
||||
|
||||
# general build definitions
|
||||
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires sh %{SOURCE4}
|
||||
@ -35,7 +37,14 @@
|
||||
%else
|
||||
%define desktop_file_name %{name}
|
||||
%endif
|
||||
### build options
|
||||
%if 0%{?suse_version} > 1210
|
||||
%if 0%{?suse_version} > 1310
|
||||
%define gstreamer_ver 1.0
|
||||
%define gstreamer 1
|
||||
%else
|
||||
%define gstreamer_ver 0.10
|
||||
%endif
|
||||
%endif
|
||||
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
|
||||
# Note: these are for the openSUSE Firefox builds ONLY. For your own distribution,
|
||||
# please get your own set of keys.
|
||||
@ -47,8 +56,6 @@
|
||||
%else
|
||||
%define crashreporter 1
|
||||
%endif
|
||||
### build options end
|
||||
|
||||
%if 0%{?suse_version} > 1210
|
||||
%if 0%{?suse_version} > 1310
|
||||
%define gstreamer_ver 1.0
|
||||
@ -285,11 +292,7 @@ export MOZILLA_OFFICIAL=1
|
||||
export BUILD_OFFICIAL=1
|
||||
export MOZ_TELEMETRY_REPORTING=1
|
||||
export MOZ_GOOGLE_API_KEY=%{_google_api_key}
|
||||
%ifarch x86_64
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
%else
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
|
||||
%endif
|
||||
%ifarch %arm
|
||||
export CFLAGS="${CFLAGS/-g / }"
|
||||
%endif
|
||||
@ -529,6 +532,12 @@ if [ -e dist/*symbols.zip ]; then
|
||||
fi
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%if %localize
|
||||
rm -rf %{_tmppath}/translations.*
|
||||
%endif
|
||||
|
||||
%post
|
||||
# update mime and desktop database
|
||||
%if 0%{?suse_version} > 1130
|
||||
|
Loading…
Reference in New Issue
Block a user