Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1578166
 поиск   регистрация   авторизация 
 
Группа :: Сети/WWW
Пакет: mozilla

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

%define sub_release 1
%define rel %(case `cat /etc/altlinux-release | awk '{print $4}'` in (2.3) echo "M23" ;; (2.4) echo "M24" ;; (3.0) echo "M30" ;; (*) echo "none";; esac)

%define rel M24

%if %rel == "none"
%define release_tag %nil
%else
%define release_tag .%rel.%sub_release
%endif

%define mozilla_home  %_libdir/mozilla
%define build_enigmail 1
%define src_name mozilla

Name: mozilla
Summary: Web browser and mail reader
Version: 1.7.12
Release: alt1%release_tag
License: MPL/NPL
Packager: Eugene Ostapets <eostapets at altlinux.ru>

Source0: %src_name-%version-source.tar.bz2
Source2: mozilla-alt-images.tar.bz2
#Source5: mozilla-1.2-other-licenses.tar.bz2
Source7: mozilla-1.4-instchrome.add
Source14: mozilla-copy-package-files.sh
Source20: mozilla-1.6-spellcheck.tar.bz2
#Source21: mozilla-alt-enigmail-0.91.tar.bz2
Source21: enigmail-0.92.0.tar.gz
Source22: mozilla-searchplugins.tar.bz2
Source25: mozilla-userChrome.css
Source26: mozilla-1.7.1-alt-bookmarks-en.html
Source30: mozilla.firsttime
Source31: mozilla-rebuild-databases.sh
Source32: rpm.macros.mozilla
Source33: mozilla-1.7.1-alt-ssl-addon-certs.txt
Source34: mozilla-alt-menu-desktop.tar.bz2
Source35: mozilla-make-package.pl
Source36: ipc-1.1.3.tar.gz
Source37: mozilla-enigmail-prefs.js

Patch7: mozilla-home-page.patch

# ALT patches

Patch113: mozilla-1.7-alt-add-plugins-dir.patch
Patch114: mozilla-1.7-alt-run-mozilla.patch
Patch115: mozilla-1.7-alt-configure_in.patch
#Patch116: mozilla-0.9.7-fonts.patch
Patch117: mozilla-1.2b-l10nru.patch
Patch122: mozilla-0.9.9-l10n_uk_de.patch
Patch124: mozilla-1.0-pack.patch
Patch128: mozilla-alt-calendar.patch
#Patch129: mozilla-1.3b-calendar_nodebug.patch
Patch131: mozilla-alt-enigmail.patch

#RH patch

Patch150: mozilla-default-plugin-less-annoying.patch

#Mandrake patches

# (fc) 1.7-2mdk fix frame loading in gecko (Fedora) (Mozilla bug #195078)
Patch160:  mozilla-1.6-frameload.patch.bz2
# (fc) 1.6-10mdk fix separator key (Mozilla bug #108170)
Patch161:  mozilla-1.6-separator.patch.bz2
Patch162: mozilla-1.7.12-extensions-p3p-makefile.patch  

Group: Networking/WWW
PreReq: urw-fonts mozilla-plugins-common
Requires: freetype2 >= 2.1.2-alt2
#temporary!
Obsoletes: mozilla-xmlterm, mozilla-de, mozilla-nspr
Obsoletes: mozilla-ipc
Obsoletes: mozilla-be
Provides: mozilla-xpcom, mozilla-gtkmozembed, mozilla-nspr

# Automatically added by buildreq on Fri Jun 04 2004

BuildRequires: XFree86-devel XFree86-libs doxygen fontconfig-devel freetype2-devel gcc-c++
BuildRequires: glib2-devel less libIDL-devel libatk-devel libgtk+2-devel libpango-devel
BuildRequires: libstdc++-devel pkgconfig shared-mime-info unzip vim-minimal zip zlib-devel
BuildRequires: libpng3-devel libjpeg-devel tcsh chrpath cairo-devel libpixman-devel
BuildRequires: menu-devel

#BuildRequires: altlinux-release libXft-devel libexpat libqt3 tcsh


%description
Mozilla is an open-source web browser, designed for standards
compliance, performance and portability.

%package devel
Summary: Development files for Mozilla
Group: Development/Other
Requires: mozilla = %version-%release

%description devel
Development header files for mozilla.

%package mail
Summary: Mozilla-based mail system
Group: Networking/Mail
Requires: mozilla = %version-%release coreutils

%description mail
Mail/news client based on the Mozilla web browser.  The mail/news
client supports IMAP, POP, and NNTP and has an easy to use interface.

%package psm
Summary: Personal Security Manager
Group: Networking/WWW
PreReq: coreutils mozilla = %version-%release
Obsoletes: mozilla-nss
Provides: mozilla-nss

%description psm
The Personal Security Manager is a set of libraries that allow Mozilla
to talk to the Network Security Services layer.  It allows Mozilla to
access SSL web sites and manage cryptographic keys.

%package irc
Summary: IRC support for Mozilla
Group: Networking/IRC
PreReq: mozilla = %version-%release

%description irc
irc support for Mozilla.

%package js-debugger
Summary: JavaScript debugger for use with Mozilla
Group: Networking/WWW
PreReq: coreutils mozilla = %version-%release

%description js-debugger
JavaScript debugger for use with Mozilla.

%package dom-inspector
Summary: A tool for inspecting the DOM of pages in Mozilla
Group: Networking/WWW
PreReq: coreutils mozilla = %version-%release

%description dom-inspector
This is a tool that allows you to inspect the DOM for web pages in
Mozilla.  This is of great use to people who are doing Mozilla chrome
development or web page development.

%package spellchecker
Summary: Spellchecker for Mozilla
Group: Networking/WWW
License: LGPL
PreReq: coreutils mozilla = %version-%release

%description spellchecker
Spellchecker package for Mozilla.
%if %build_enigmail
%package enigmail
Summary: GPG/PGP integration in Mozilla
Group: Networking/WWW
PreReq: coreutils mozilla = %version-%release mozilla-mail = %version-%release gnupg

%description enigmail
GPG/PGP integration in Mozilla
%endif
%package calendar
Summary: Mozilla Calendar
Group: Networking/WWW
PreReq: coreutils mozilla = %version-%release

%description calendar
Mozilla Calendar

%package plugins-common
Summary: Mozilla Plugins Common
Group: Networking/WWW

%description plugins-common
Mozilla Plugins Common

%prep
%setup -n mozilla
%setup -T -D -q -n mozilla/extensions -a21
%setup -T -D -q -n mozilla/extensions -a36
%setup -T -D -q -n mozilla/extensions -a20
%setup -T -D -n mozilla -a2
%setup -T -D -n mozilla -a34

%patch7 -p1 -b .home-page
#patch13 -p1

# ALT

%patch113 -p1
%patch114 -p1
%patch115 -p1
#patch116 -p1
%patch117 -p1
%patch122 -p1
%patch124 -p1
%patch128 -p1
#patch129 -p1
#patch130 -p1
%patch131 -p1

# RH

%patch150 -p1

# MDK

%patch160 -p1
%patch161 -p1
%patch162 -p1
#patch163 -p1

# additional CA certificates

cd %_builddir/mozilla/security/nss/lib/ckfw/builtins
cat %SOURCE33 >> certdata.txt
%make generate

%build
unset MOZ_INTERNAL_LIBART_LGPL
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export MOZ_CALENDAR=1

# Add fake RPATH

rpath="/$(printf %%s '%mozilla_home' |tr '[:print:]' '_')"
export LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"

# build mozilla

%configure \
   --prefix=%_prefix \
   \
   --disable-timeline \
   --disable-debug \
   --disable-debug-modules \
   --disable-debugger-info-modules \
   --disable-tests \
   --disable-xprint  \
   --disable-pedantic \
   --disable-freetype2 \
   --disable-short-wchar \
   --disable-logging \
   \
   --without-system-nspr \
   \
   --disable-svg \
   --enable-calendar \
   --enable-default-toolkit=gtk2 \
   --enable-crypto \
   --enable-nspr-autoconf \
   --enable-mathml \
   --enable-bidi \
   --enable-optimize="-O3" \
   --enable-reorder \
   --enable-strip-libs \
   --enable-cpp-rtti \
   --enable-cpp-exceptions \
   --enable-xft \
   \
   --with-system-jpeg \
   --with-system-png \
   --with-system-zlib \
   --with-default-mozilla-five-home=%mozilla_home

%make_build

%if %build_enigmail
cd extensions/ipc
./makemake -r
%make_build
cd -

cd extensions/enigmail
./makemake -r
%make_build
cd -
%endif

%__cp %SOURCE25 %_builddir/mozilla/dist/bin/defaults/profile/chrome/
%__cp %SOURCE26 %_builddir/mozilla/dist/bin/defaults/profile/

%install
BUILD_OFFICIAL=1 MOZILLA_OFFICIAL=1 MOZ_CALENDAR=1 DESTDIR=%buildroot \
%make install

cd %buildroot/%_libdir
%__mv  mozilla-%version mozilla
%__ln_s mozilla mozilla-%version
cd -

cd %buildroot/%_includedir
%__mv  mozilla-%version mozilla
%__ln_s mozilla mozilla-%version
cd -

cd %buildroot/%_datadir/idl
%__mv  mozilla-%version mozilla
%__ln_s mozilla mozilla-%version
cd -

%__mkdir_p      %buildroot/%_includedir/nspr \
               %buildroot/%_includedir/nss  \
               %buildroot/%_includedir/mozilla/idl  \
               %buildroot/%_sysconfdir/firsttime.d  \
               %buildroot/%_sysconfdir/rpm/macros.d \
               %buildroot/%_usrsrc/%name-%version \
               %buildroot/%mozilla_home/icons


cd %buildroot/%_libdir
# copy nspr
%__cp -s \
 %name/libnspr4.so %name/libplc4.so %name/libplds4.so \
 ./
# copy nss
%__cp -s \
 %name/libnss3.so %name/libsmime3.so %name/libsoftokn3.so %name/libssl3.so \
 ./
# copy system libs
%__cp -s \
 %name/libgkgfx.so %name/libjsj.so %name/libmozjs.so %name/libgtkembedmoz.so %name/libgtkxtbin.so \
 ./

%__cp -s %name/libxpcom*.so   ./
%__cp -s %name/libmsgbase*.so ./
%__cp -s %name/lib*ldap50.so  ./

# libnssckbi.so must be in both places

%__cp -s %name/libnssckbi.so ./
cd -

# copy searchplugins

cd %buildroot/%mozilla_home
 %__tar jxf %SOURCE22
cd -

%if %build_enigmail
%__cp -arL dist/bin/components/*enig*     %buildroot/%mozilla_home/components/
%__cp -arL dist/bin/components/*ipc*      %buildroot/%mozilla_home/components/
%__cp -arL dist/bin/chrome/enigmail*.jar  %buildroot/%mozilla_home/chrome/
%endif
# copy spellchecker
#cp -arL dist/bin/components/*spell*  %buildroot/%mozilla_home/components/

# create a list of all of the different package and the files that

# will hold them
%__rm -f %_tmppath/mozilla.list
%__rm -f %_tmppath/mozilla.list.shared
%__rm -f %_tmppath/mozilla.package
%SOURCE35 --package langenus --output-file %_tmppath/mozilla.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%SOURCE35 --package regus --output-file %_tmppath/mozilla.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%SOURCE35 --package deflenus --output-file %_tmppath/mozilla.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%SOURCE35 --package xpcom --output-file %_tmppath/mozilla.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%SOURCE35 --package browser --output-file %_tmppath/mozilla.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home
#    --exclude-file=%SOURCE11

%__rm -f %_tmppath/mozilla-mail.list
%__rm -f %_tmppath/mozilla-mail.list.shared
%__rm -f %_tmppath/mozilla-mail.package
%SOURCE35 --package mail --output-file %_tmppath/mozilla-mail.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%__rm -f %_tmppath/mozilla-psm.list
%__rm -f %_tmppath/mozilla-psm.list.shared
%__rm -f %_tmppath/mozilla-psm.package
%SOURCE35 --package psm --output-file %_tmppath/mozilla-psm.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%__rm -f %_tmppath/mozilla-chat.list
%__rm -f %_tmppath/mozilla-chat.list.shared
%__rm -f %_tmppath/mozilla-chat.package
%SOURCE35 --package chatzilla --output-file %_tmppath/mozilla-chat.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%__rm -f %_tmppath/mozilla-js-debugger.list
%__rm -f %_tmppath/mozilla-js-debugger.list.shared
%__rm -f %_tmppath/mozilla-js-debugger.package
%SOURCE35 --package venkman --output-file %_tmppath/mozilla-js-debugger.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%__rm -f %_tmppath/mozilla-dom-inspector.list
%__rm -f %_tmppath/mozilla-dom-inspector.list.shared
%__rm -f %_tmppath/mozilla-dom-inspector.package
%SOURCE35 --package inspector --output-file %_tmppath/mozilla-dom-inspector.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%__rm -f %_tmppath/mozilla-spellchecker.list
%__rm -f %_tmppath/mozilla-spellchecker.list.shared
%__rm -f %_tmppath/mozilla-spellchecker.package
%SOURCE35 --package spellcheck --output-file %_tmppath/mozilla-spellchecker.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%if %build_enigmail
%__rm -f %_tmppath/mozilla-enigmail.list
%__rm -f %_tmppath/mozilla-enigmail.list.shared
%__rm -f %_tmppath/mozilla-enigmail.package
%SOURCE35 --package enigmail --output-file %_tmppath/mozilla-enigmail.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home
%endif

%__rm -f %_tmppath/mozilla-calendar.list
%__rm -f %_tmppath/mozilla-calendar.list.shared
%__rm -f %_tmppath/mozilla-calendar.package
%SOURCE35 --package calendar --output-file %_tmppath/mozilla-calendar.list \
   --package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
   --install-dir %buildroot/%mozilla_home \
   --install-root /%mozilla_home

%if %build_enigmail
#hack for correct enigmail installation
%__cat << EOF >> %buildroot/%mozilla_home/chrome/installed-chrome.txt
content,install,url,jar:resource:/chrome/enigmail.jar!/content/enigmail/
locale,install,url,jar:resource:/chrome/enigmail.jar!/locale/en-US/enigmail/
locale,install,url,jar:resource:/chrome/enigmail-en-US.jar!/locale/en-US/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin-tbird.jar!/skin/classic/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin.jar!/skin/modern/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin.jar!/skin/classic/enigmail/
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/modern/enigmail/
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/classic/enigmail/
EOF
%__install -m 644 %SOURCE37 %buildroot%mozilla_home/defaults/pref/enigmail.js
%endif
# build our initial component and chrome registry
# we don't need to do this anymore

pushd `pwd`
 cd %buildroot/%mozilla_home
# __cat %SOURCE7 >> chrome/installed-chrome.txt
 %__rm -rf  %buildroot/%mozilla_home/components/xpti* %buildroot/%mozilla_home/component.reg
 # register our components
 LD_LIBRARY_PATH=%buildroot/%mozilla_home:%buildroot/%_libdir MOZILLA_FIVE_HOME=%buildroot/%mozilla_home ./regxpcom
 # set up the default skin and locale to trigger the generation of
 # the user-locales and users-skins.rdf
 echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt
 echo "locale,install,select,en-US" >> chrome/installed-chrome.txt
 # set up the chrome rdf files
 LD_LIBRARY_PATH=%buildroot/%mozilla_home:%buildroot/%_libdir MOZILLA_FIVE_HOME=%buildroot/%mozilla_home ./regchrome
 # fix permissions of the chrome directories
 find . -type d -perm 0700 -exec chmod 755 {} \; || :
popd

%__cp %buildroot/%mozilla_home/chrome/installed-chrome.txt  %buildroot/%mozilla_home/chrome/installed-chrome-orig.txt

# copy the nss files to the right place

/usr/bin/find security/nss/lib/ -name '*.h' -type f -exec cp {} \
%buildroot/%_includedir/nss/ \;

# copy the nspr files to the right place

%__cp -rL dist/include/nspr/*  \
    %buildroot/%_includedir/nspr/ || \
 %__cp -r dist/include/nspr/*   \
    %buildroot/%_includedir/nspr/

# copy include and idl files

%__cp -rL dist/include/* %buildroot/%_includedir/mozilla || \
%__cp -r dist/include/* %buildroot/%_includedir/mozilla

%__cp -rL dist/idl/* %buildroot/%_includedir/mozilla/idl || \
%__cp -r dist/idl/* %buildroot/%_includedir/mozilla/idl

# copy our devel tools

%__cp -rL dist/bin/xpcshell %buildroot/%mozilla_home || \
%__cp -r dist/bin/xpcshell %buildroot/%mozilla_home

%__cp -rL dist/bin/xpidl %buildroot/%mozilla_home || \
%__cp -r dist/bin/xpidl %buildroot/%mozilla_home

%__cp -rL dist/bin/xpt_dump %buildroot/%mozilla_home || \
%__cp -r dist/bin/xpt_dump %buildroot/%mozilla_home

%__cp -rL dist/bin/xpt_link %buildroot/%mozilla_home || \
%__cp -r dist/bin/xpt_link %buildroot/%mozilla_home

# put mozilla-xremote-client into the standard path

%__cp %_builddir/mozilla/dist/bin/mozilla-xremote-client \
       %buildroot/%_bindir

%__mkdir_p %buildroot/%_miconsdir %buildroot/%_liconsdir
%__cp alt-images/16/*.{png,xpm} %buildroot/%_miconsdir
%__cp alt-images/32/*.{png,xpm} %buildroot/%_iconsdir
%__cp alt-images/48/*.{png,xpm} %buildroot/%_liconsdir

%__cp %SOURCE30 %buildroot/%_sysconfdir/firsttime.d/%name
%__cp %SOURCE31 %buildroot/%mozilla_home/rebuild-databases.sh
%__cp %SOURCE32 %buildroot/%_sysconfdir/rpm/macros.d/%name

# Add real RPATH

chrpath -r %mozilla_home \
   %buildroot/%_bindir/mozilla-xremote-client \
   %buildroot/%mozilla_home/mozilla-bin \
   %buildroot/%mozilla_home/mozilla-xremote-client \
   %buildroot/%mozilla_home/regchrome \
   %buildroot/%mozilla_home/regxpcom

# install menu file

%__install -m 755 -d %buildroot/%_menudir \
                    %buildroot/%_datadir/applications

%__mv mozilla-alt-*.desktop %buildroot/%_datadir/applications

freedesktop2menu.pl \
mozilla \
       "Networking/WWW" \
%buildroot/%_datadir/applications/mozilla-alt-browser.desktop \
%buildroot/%_menudir/mozilla \
x11

freedesktop2menu.pl \
mozilla-mail \
       "Networking/Mail" \
%buildroot/%_datadir/applications/mozilla-alt-mail.desktop \
%buildroot/%_menudir/mozilla-mail \
x11

%post
%update_menus
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun
%postun_ldconfig
%clean_menus

%preun
if [ "$1" == "0" ]; then
   %__rm -rf %mozilla_home/chrome/overlayinfo
   %__rm -f %mozilla_home/chrome/*.rdf
   %__rm -f %mozilla_home/component.reg
   %__rm -f %mozilla_home/components/xpti*.dat
fi

%post mail
%update_menus
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun mail
%clean_menus
if [ "$1" == "0" ]; then
   %postun_ldconfig
   %mozilla_home/rebuild-databases.sh
fi

%post psm
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun psm
%postun_ldconfig
%mozilla_home/rebuild-databases.sh

%post irc
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun irc
if [ "$1" == "0" ]; then
   %postun_ldconfig
   %mozilla_home/rebuild-databases.sh
fi

%post js-debugger
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun js-debugger
%postun_ldconfig
%mozilla_home/rebuild-databases.sh

%post dom-inspector
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun dom-inspector
%postun_ldconfig
%mozilla_home/rebuild-databases.sh

%post spellchecker
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun spellchecker
%postun_ldconfig
%mozilla_home/rebuild-databases.sh

%if %build_enigmail
%post enigmail
%post_ldconfig
%mozilla_home/rebuild-databases.sh

%postun enigmail
%postun_ldconfig
%mozilla_home/rebuild-databases.sh

%endif

%files -f %_tmppath/mozilla.list
%_sysconfdir/firsttime.d/mozilla
%_bindir/mozilla
%_bindir/mozilla-xremote-client
%attr(755,root,root) %mozilla_home/rebuild-databases.sh
%_libdir/libgkgfx.so
%_libdir/libjsj.so
%_libdir/libmozjs.so
%_libdir/libxpcom*.so

%_libdir/libnspr4.so
%_libdir/libplc4.so
%_libdir/libplds4.so

#%_libdir/%name/libxpcom*.so

%_libdir/libgtkembedmoz.so
%_libdir/lib*ldap50.so
#_libdir/libgtksuperwin.so
%_libdir/libgtkxtbin.so
%_menudir/mozilla
%_datadir/applications/mozilla-alt-browser.desktop
%_miconsdir/%name.*
%_iconsdir/%name.*
%_liconsdir/%name.*
%dir %mozilla_home/defaults/pref
%dir %mozilla_home/defaults/profile/US
%dir %mozilla_home/defaults/profile
%dir %mozilla_home/defaults/wallet
%dir %mozilla_home/defaults
%dir %mozilla_home/chrome
%dir %mozilla_home/components
#dir mozilla_home/res/builtin
%dir %mozilla_home/res/html
%dir %mozilla_home/res/samples
%dir %mozilla_home/res/entityTables
%dir %mozilla_home/res/rdf
%dir %mozilla_home/res
%dir %mozilla_home/icons
%dir %mozilla_home/searchplugins
#dir %mozilla_home/plugins
#dir %mozilla_home
%dir %_libdir/mozilla-%version
%verify (not md5 mtime size) %mozilla_home/components/compreg.dat
%verify (not md5 mtime size) %mozilla_home/components/xpti.dat
%config (missingok)  %mozilla_home/chrome/overlayinfo/*
%config (missingok)  %mozilla_home/chrome/*.rdf
%verify (not md5 mtime size) %mozilla_home/chrome/installed-chrome.txt
%mozilla_home/chrome/installed-chrome-orig.txt
%_man1dir/*
%exclude %mozilla_home/plugins/*

%files plugins-common
%dir %mozilla_home
%dir %mozilla_home/plugins
%mozilla_home/plugins/*

%files devel
%_sysconfdir/rpm/macros.d/%name
%_includedir/nss
%_includedir/nspr
%_includedir/mozilla
%_includedir/mozilla-%version
%mozilla_home/xpcshell
%mozilla_home/xpidl
%mozilla_home/xpt_dump
%mozilla_home/xpt_link
%_libdir/pkgconfig/*
%_bindir/mozilla-config
%_datadir/aclocal/nspr.m4
%_datadir/idl/mozilla
%_datadir/idl/mozilla-%version

%files mail -f %_tmppath/mozilla-mail.list
%_libdir/libmsgbase*.so
%_menudir/mozilla-mail
%_datadir/applications/mozilla-alt-mail.desktop

%files psm -f %_tmppath/mozilla-psm.list
%_libdir/libnssckbi.so
%_libdir/libnss3.so
%_libdir/libsmime3.so
%_libdir/libsoftokn3.so
%_libdir/libssl3.so

%files irc -f %_tmppath/mozilla-chat.list
%files calendar -f %_tmppath/mozilla-calendar.list
%files spellchecker -f %_tmppath/mozilla-spellchecker.list
%files js-debugger -f %_tmppath/mozilla-js-debugger.list
%files dom-inspector -f %_tmppath/mozilla-dom-inspector.list

%if %build_enigmail
%files enigmail -f %_tmppath/mozilla-enigmail.list
%mozilla_home/chrome/enigmail*
%mozilla_home/defaults/pref/enigmail.js
%endif

%changelog

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

 
design & coding: Vladimir Lettiev aka crux © 2004-2005