Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37489591
en ru br
Репозитории ALT
S:118.0-alt1
4.1: 3.0.9-alt0.M41.1
+updates:3.0.4-alt0.M41.2
4.0: 2.0.0.18-alt0.M40.1
3.0: 1.0.7-alt3
+updates:1.0.8-alt0.M30.1
www.altlinux.org/Changes

Группа :: Сети/WWW
Пакет: firefox

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

#set_verify_elf_method relaxed

%define xulr_name xulrunner
%define xulr_develdir %_libdir/%xulr_name-devel
%define xulr_sysconfdir %_sysconfdir/mozilla

%define firefox_name firefox
%define firefox_version 3.0.9
%define firefox_release alt0.M41.1

%define firefox_fullname %firefox_name-%firefox_version

%define firefox_prefix %_libdir/%firefox_name
%define firefox_datadir %_datadir/%firefox_name
%define firefox_sysconfdir %_sysconfdir/%firefox_name

%define firefox_arch_extensionsdir %firefox_prefix/extensions
%define firefox_noarch_extensionsdir %firefox_datadir/extensions
%define firefox_extensionsdir %firefox_arch_extensionsdir

%define firefox_bindir %_libdir/%firefox_name
%define firefox_libdir %_libdir/%firefox_name

%define firefox_exec %_bindir/firefox
%define firefox_bin %firefox_bindir/firefox-bin
%define firefox_run %firefox_bindir/run-mozilla.sh

%def_without debug
%def_with svg
%def_without xprint
%def_with branding
%def_with nspr
%def_with nss
%def_with sqlite
%def_with libxul

%if_with debug
%set_strip_method none
%endif # debug

Summary:        The Mozilla Firefox project is a redesign of Mozilla's browser
Name:           %firefox_name
Version:        %firefox_version
Release: %firefox_release
License:        MPL/GPL/LGPL
Group:          Networking/WWW
URL:            http://www.mozilla.org/projects/firefox/

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Source0: firefox-source.tar
Source1: firefox-icons.tar
Source2: firefox.desktop
Source3: firefox.sh
Source4: searchplugins.tar

Patch5: firefox3-alt-rpath-link.patch
Patch6: firefox3-alt-disable-werror.patch
Patch7: firefox3-default-mimetypes.patch
Patch12: firefox-prefs.patch
Patch13: firefox-fix-version.patch
Patch14: firefox-fix-install.patch

Patch100: lp185622_system_path_default_browser.patch
Patch101: bzXXX_reload_new_plugins.patch

BuildRequires(pre): rpm-build-firefox browser-plugins-npapi-devel

BuildRequires: bzlib-devel doxygen gcc-c++ imake libXext-devel libXt-devel libgtk+2-devel
BuildRequires: libjpeg-devel libnss-devel makedepend nss-utils python-modules-compiler
BuildRequires: unzip xorg-cf-files zip chrpath alternatives libdbus-glib-devel libIDL-devel
BuildRequires: liblcms-devel libcairo-devel libsqlite3-devel xulrunner-devel >= 1.9

BuildRequires: autoconf_2.13
%set_autoconf_version 2.13

Conflicts: firefox < 1.5
Requires: url_handler >= 0.2.1-alt2
Provides: webclient

Obsoletes: firefox-switch-locales
Provides: firefox-switch-locales

%description
The Mozilla Firefox project is a redesign of Mozilla's browser component,
written using the XUL user interface language and designed to be
cross-platform.

%prep
%setup -q -n %name-%version -c
%setup -q -n %name-%version/mozilla -T -D -a1
%setup -q -n %name-%version/mozilla -T -D -a4

%patch5 -p1 -b .fix5
%patch6 -p1 -b .fix6
%patch7 -p1 -b .fix7
%patch12 -p1 -b .fix12
#patch13 -p1 -b .fix13
%patch14 -p1 -b .fix14

%patch100 -p1 -b .fix100
%patch101 -p1 -b .fix101

%build
%add_optflags %optflags_shared

%__subst 's#AC_CONFIG_AUX_DIR(\${srcdir}/build/autoconf)#AC_CONFIG_AUX_DIR(build/autoconf)#' configure.in
%__autoconf

# Add fake RPATH

export LIBIDL_CONFIG=/usr/bin/libIDL-config-2

%configure \
--disable-ldap \
--disable-mailnews \
--disable-composer \
--disable-tests \
--disable-installer \
--disable-updater \
--disable-crashreporter \
--disable-gtktest \
--disable-mochitest \
--disable-universalchardet \
--enable-application=browser \
--enable-necko-protocols=default \
--enable-extensions=default \
--enable-safe-browsing \
--enable-url-classifier \
--enable-crypto \
--enable-default-toolkit=cairo-gtk2 \
--enable-shared \
--enable-canvas \
--enable-optimize="-O2" \
%if_with debug
--disable-strip \
--enable-debug \
--enable-debug-modules \
--enable-logrefcnt \
--enable-debugger-info-modules \
--enable-detect-webshell-leaks \
%else
--enable-strip \
--enable-install-strip \
--disable-debug \
%endif # debug
%if_with svg
--enable-svg \
--enable-svg-renderer=cairo \
%endif # svg
%if_with xprint
--enable-xprint \
--disable-postscript \
%else
--disable-xprint \
%endif # xprint
%if_with branding
--enable-branding \
--enable-official-branding \
%endif
%if_with libxul
--enable-libxul \
%endif # libxul
%if_with nspr
--with-system-nspr \
%endif # nspr
%if_with nss
--with-system-nss \
%endif # nss
%if_with sqlite
--enable-system-sqlite \
%endif # sqlite
\
--without-system-png \
\
--enable-places \
--enable-storage \
--enable-system-cairo \
--enable-system-lcms \
--with-system-jpeg \
--with-system-zlib \
--with-system-bz2 \
--with-pthreads \
--with-libxul-sdk=%xulr_develdir \
#

%make_build

%install
%__mkdir_p \
%buildroot/%firefox_prefix/init.d \
%buildroot/%firefox_prefix/plugins \
%buildroot/%firefox_arch_extensionsdir \
%buildroot/%firefox_noarch_extensionsdir \
#

%makeinstall \
   mozappdir=%buildroot/%firefox_prefix \
   #

# icons

%__install -D -m 644 firefox-icons/mozicon48.png %buildroot/%_liconsdir/%name.png
%__install -D -m 644 firefox-icons/mozicon32.png %buildroot/%_niconsdir/%name.png
%__install -D -m 644 firefox-icons/mozicon16.png %buildroot/%_miconsdir/%name.png

# searchplugins

cp -a -- searchplugins/* %buildroot/%firefox_prefix/searchplugins/

cd %buildroot

rm -f \
./%firefox_exec \
./%firefox_prefix/removed-files \
./%firefox_prefix/libjemalloc.so \
./%firefox_prefix/run-mozilla.sh \
./%firefox_prefix/README.txt \
./%firefox_prefix/firefox

install -m755 %SOURCE3 ./%firefox_exec
sed -i \
-e 's, at NAME at ,%firefox_name,g' \
-e 's, at PREFIX at ,%firefox_prefix,g' \
-e 's, at PLUGIN_PATH at ,%browser_plugins_path,g' \
./%firefox_exec

sed -i \
-e 's,\(MinVersion\)=.*,\1=1.9.0*,g' \
-e 's,\(MaxVersion\)=.*,\1=1.9.9*,g' \
./%firefox_prefix/application.ini

# install menu file

%__install -D -m 644 %SOURCE2 ./%_datadir/applications/%name.desktop

# Move configuration

mkdir -p -- ./%xulr_sysconfdir/%name/default
mv -f -- \
./%firefox_prefix/defaults \
./%firefox_prefix/old-homepage-default.properties \
./%firefox_prefix/browserconfig.properties \
./%xulr_sysconfdir/%name/default/

ln -s -- default ./%xulr_sysconfdir/%name/current
for n in defaults old-homepage-default.properties browserconfig.properties; do
ln -s -- %xulr_sysconfdir/%name/current/$n ./%firefox_prefix/$n
done

# Add alternatives

mkdir -p ./%_altdir
printf '%_bindir/xbrowser\t%_bindir/firefox\t100\n' >./%_altdir/%name
printf '%xulr_sysconfdir/%name/current\t%xulr_sysconfdir/%name/default\t1\n' >./%_altdir/%name-settings

%pre
for f in defaults browserconfig.properties old-homepage-default.properties; do
[ -L "%firefox_prefix/$f" ] || rm -rf -- "%firefox_prefix/$f"
done

%post
%register_alternatives %name
%register_alternatives %name-settings
%update_menus

%preun
[ $1 = 0 ] || exit 0
%unregister_alternatives %name
%unregister_alternatives %name-settings
%clean_menus

%files
%_altdir/%name
%_altdir/%name-settings
%xulr_sysconfdir/%name
%exclude %xulr_sysconfdir/%name/current
%firefox_exec
%firefox_libdir
%firefox_datadir
%_datadir/applications/%name.desktop
%_liconsdir/%name.png
%_niconsdir/%name.png
%_miconsdir/%name.png

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin