summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@redhat.com>2011-03-22 08:35:06 -0700
committerChristopher Aillon <caillon@redhat.com>2011-03-22 08:35:06 -0700
commit59e26d3347cef4edff1af932dcbb54a1bd238003 (patch)
tree9347543634e60a4f4bd60f29ae7a4c5e93aa4e2f
parent4.0 RC 2 (diff)
downloadlibrewolf-fedora-ff-59e26d3347cef4edff1af932dcbb54a1bd238003.tar.gz
librewolf-fedora-ff-59e26d3347cef4edff1af932dcbb54a1bd238003.tar.bz2
librewolf-fedora-ff-59e26d3347cef4edff1af932dcbb54a1bd238003.zip
Use pre-versioning similar to XULRunner
-rw-r--r--firefox.spec26
1 files changed, 23 insertions, 3 deletions
diff --git a/firefox.spec b/firefox.spec
index c9b2e80..7ef6c57 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -10,9 +10,10 @@
%define firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%global firefox_dir_ver 4
-%global gecko_version 2.0-rc2
-%global pre_version rc2
-%global pre_tag .%{?pre_version}
+%global gecko_version 2.0
+%global alpha_version 0
+%global beta_version 0
+%global rc_version 2
%global mozappdir %{_libdir}/%{name}-%{firefox_dir_ver}
%global langpackdir %{mozappdir}/langpacks
@@ -22,6 +23,25 @@
%define build_langpacks 1
%define include_debuginfo 0
+%if %{alpha_version} > 0
+%global pre_version a%{alpha_version}
+%global pre_name alpha%{alpha_version}
+%endif
+%if %{beta_version} > 0
+%global pre_version b%{beta_version}
+%global pre_name beta%{beta_version}
+%endif
+%if %{rc_version} > 0
+%global pre_version rc%{rc_version}
+%global pre_name rc%{rc_version}
+%endif
+%if %{defined pre_version}
+%global gecko_verrel %{gecko_version}-%{pre_name}
+%global pre_tag .%{pre_version}
+%else
+%global gecko_verrel %{gecko_version}-1
+%endif
+
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 4.0
bgstack15