Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37806938
en ru br
Репозитории ALT
5.1: 3.6.15-alt0.20110308.M50P.1
www.altlinux.org/Changes

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

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

#set_verify_elf_method relaxed

%def_without debug
%def_with    svg
%def_with    branding
%def_with    sqlite
%def_with    libxul

%if_with debug
%set_strip_method none
%endif # debug

%define firefox_version                3.6.15
%define firefox_prefix                 %_libdir/firefox
%define firefox_datadir                %_datadir/firefox
%define firefox_arch_extensionsdir     %firefox_prefix/extensions
%define firefox_noarch_extensionsdir   %firefox_datadir/extensions

Summary:        The Mozilla Firefox project is a redesign of Mozilla's browser
Name:           firefox-3.6
Version:        3.6.15
Release:       alt0.20110308.M50P.1
License:        MPL/GPL/LGPL
Group:          Networking/WWW
URL:            http://www.mozilla.org/projects/firefox/

Packager: Alexey Gladkov <legion 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
Patch12: firefox-prefs.patch
Patch14: firefox-fix-install.patch
Patch15: firefox-fix-linkage.patch
Patch16: firefox-cross-desktop.patch

Patch100: lp185622_system_path_default_browser.patch
Patch101: bzXXX_reload_new_plugins.patch
Patch102: mozilla-sqlite.patch
Patch103: 469648-browsercheck3.patch

BuildRequires(pre): rpm-build-mozilla.org

BuildRequires: bzlib-devel doxygen gcc-c++ imake libXext-devel libXt-devel
BuildRequires: libgtk+2-devel libjpeg-devel makedepend
BuildRequires: python-modules-compiler python-modules-logging
BuildRequires: libalsa-devel xorg-cf-files zip unzip chrpath libIDL-devel
BuildRequires: zip unzip chrpath libIDL-devel libwireless-devel
BuildRequires: rpm-macros-alternatives browser-plugins-npapi-devel
BuildRequires: libnotify-devel
BuildRequires: libcairo-devel libpixman-devel

BuildRequires: libsqlite3-devel    >= 3.7.2-alt0.M50P.1
BuildRequires: libnspr-devel       >= 4.8.7-alt0.M50P.1
BuildRequires: libnss-devel        >= 3.12.9.0-alt0.M50P.1
BuildRequires: xulrunner-devel     >= 1.9.2.15-alt0.20110308.M50P.1

BuildRequires: autoconf_2.13
%set_autoconf_version 2.13

Obsoletes: firefox
Provides: firefox = %version-%release

Provides: webclient
Requires: url_handler >= 0.2.1-alt2

Requires: libsqlite3    >= 3.7.2-alt0.M50P.1
Requires: libnspr       >= 4.8.7-alt0.M50P.1
Requires: libnss        >= 3.12.9.0-alt0.M50P.1
Requires: xulrunner     >= 1.9.2.15-alt0.20110308.M50P.1

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.

%package -n rpm-build-firefox
Summary: RPM helper macros to rebuild firefox packages
Group: Development/Other
BuildArch: noarch

Requires: rpm-build-mozilla.org

%description -n rpm-build-firefox
These helper macros provide possibility to rebuild
firefox packages by some Alt Linux Team Policy compatible way.

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

%patch5 -p1 -b .fix5
%patch6 -p1 -b .fix6
%patch12 -p1 -b .fix12
%patch14 -p1 -b .fix14
%patch15 -p1 -b .fix15
%patch16 -p1 -b .fix16
#patch17 -p1 -b .fix17

#patch100 -p1 -b .fix100

#patch101 -p1 -b .fix101
#patch102 -p1 -b .fix102
%patch103 -p1 -b .fix103

echo %firefox_version > browser/config/version.txt

%build
%add_optflags %optflags_shared

sed -i -e '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 \
--disable-xprint \
--disable-dbus \
--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 branding
--enable-branding \
--enable-official-branding \
%endif
%if_with libxul
--enable-libxul \
%endif # libxul
%if_with sqlite
--enable-system-sqlite \
%endif # sqlite
\
--without-system-png \
--disable-system-lcms \
\
--enable-places \
--enable-storage \
--enable-system-cairo \
--with-system-nspr \
--with-system-nss \
--with-system-jpeg \
--with-system-zlib \
--with-system-bz2 \
--with-pthreads \
--with-libxul-sdk=%xulr_develdir \
#

%make_build

%__cc %optflags \
-DMOZ_PLUGIN_PATH=\"%browser_plugins_path\" \
-DXUL_APP_FILE=\"%firefox_prefix/application.ini\" \
rpm/firefox.c -o rpm/firefox

%install
%__mkdir_p \
%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/firefox.png
%__install -D -m 644 firefox-icons/mozicon32.png %buildroot/%_niconsdir/firefox.png
%__install -D -m 644 firefox-icons/mozicon16.png %buildroot/%_miconsdir/firefox.png

# searchplugins

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

# install rpm-build-firefox

mkdir -p -- \
%buildroot/%_sysconfdir/rpm/macros.d \
%buildroot/%_rpmlibdir

cp -a -- \
rpm/rpm-build/rpm.macros.firefox.standalone \
%buildroot/%_sysconfdir/rpm/macros.d/firefox

cp -at %buildroot/%_rpmlibdir -- \
rpm/rpm-build/firefox.req*

install -m755 rpm/firefox %buildroot/%_bindir/firefox

cd %buildroot

sed -i \
-e 's, at firefox_version at ,%version,' \
-e 's, at firefox_release at ,%release,' \
./%_sysconfdir/rpm/macros.d/firefox

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

sed -i \
-e 's,__VENDOR_EXTRA__,ALTLinux/Sisyphus/%version-%release,g' \
./%firefox_prefix/defaults/preferences/firefox.js

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

# install menu file

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

# Move configuration

mkdir -p -- ./%_sysconfdir/mozilla/firefox/default
mv -f -- \
./%firefox_prefix/defaults \
./%firefox_prefix/browserconfig.properties \
./%_sysconfdir/mozilla/firefox/default/

ln -s -- default ./%_sysconfdir/mozilla/firefox/current
for n in defaults browserconfig.properties; do
ln -s -- %_sysconfdir/mozilla/firefox/current/$n ./%firefox_prefix/$n
done

# Add alternatives

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

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

%files
%_altdir/firefox
%_altdir/firefox-settings
%_sysconfdir/mozilla/firefox
%exclude %_sysconfdir/mozilla/firefox/current
%_bindir/firefox
%firefox_prefix
%firefox_datadir
%_datadir/applications/firefox.desktop
%_liconsdir/firefox.png
%_niconsdir/firefox.png
%_miconsdir/firefox.png

%files -n rpm-build-firefox
%_rpmlibdir/*
%_sysconfdir/rpm/macros.d/firefox

%changelog

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

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