]> git.pld-linux.org Git - packages/firefox.git/blobdiff - mozilla-firefox.spec
- rel 6
[packages/firefox.git] / mozilla-firefox.spec
index ea239f22e89b71f0e663f14948be6e5c33b56b91..4a954c15468a35aa3da801f5fac7f805e49ef01a 100644 (file)
@@ -5,24 +5,30 @@
 # - make it more pld-like (bookmarks, default page etc..)
 #
 # Conditional build:
-%bcond_with    tests   # enable tests (whatever they check)
-%bcond_without gnome   # disable all GNOME components (gnomevfs, gnome, gnomeui)
-%bcond_with    tidy    # enable htmlvalidator extension (tidy)
+%bcond_with    tests           # enable tests (whatever they check)
+%bcond_without gnomeui         # disable gnomeui support
+%bcond_without gnomevfs        # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext.
+%bcond_without gnome           # disable all GNOME components (gnome+gnomeui+gnomevfs)
+%bcond_with    tidy            # htmlvalidator extension (tidy)
 #
-%define                tidy_ver        0.8.3.9
-%define                firefox_ver     2.0.0.4
+%if %{without gnome}
+%undefine      with_gnomeui
+%undefine      with_gnomevfs
+%endif
+%define                tidy_ver        0.8.4.1
+%define                firefox_ver     2.0.0.6
 #
 Summary:       Firefox Community Edition web browser
 Summary(pl.UTF-8):     Firefox Community Edition - przeglądarka WWW
 Name:          mozilla-firefox
-Version:       2.0.0.4
-Release:       1
-License:       MPL/LGPL
+Version:       %{firefox_ver}
+Release:       6
+License:       MPL 1.1 or GPL v2+ or LGPL v2.1+
 Group:         X11/Applications/Networking
 Source0:       ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}-source.tar.bz2
-# Source0-md5: 99c14794976b2532addfcd2d836c6bb2
+# Source0-md5: 16fb252fb7b0371894f7101b88fd9076
 Source1:       http://users.skynet.be/mgueury/mozilla/tidy_08x_source.zip
-# Source1-md5: ad63736e9d57de3e6c69696319b34b3b
+# Source1-md5: 2cab81118267fc87c9ebbfa6fb44b113
 Source2:       %{name}.desktop
 Source3:       %{name}.sh
 Patch0:                mozilla-install.patch
@@ -30,20 +36,20 @@ Patch1:             %{name}-lib_path.patch
 Patch2:                %{name}-addon-tidy.patch
 Patch3:                %{name}-nopangoxft.patch
 Patch5:                %{name}-fonts.patch
-Patch69:       %{name}-agent.patch
+Patch6:                %{name}-agent.patch
 Patch7:                %{name}-myspell.patch
 # if ac rebuild is needed...
 #PatchX:               %{name}-ac.patch
 URL:           http://www.mozilla.org/projects/firefox/
-%{?with_gnome:BuildRequires:   GConf2-devel >= 1.2.1}
+%{?with_gnomevfs:BuildRequires:        GConf2-devel >= 1.2.1}
 BuildRequires: automake
 BuildRequires: cairo-devel >= 1.0.0
-%{?with_gnome:BuildRequires:   gnome-vfs2-devel >= 2.0}
+%{?with_gnomevfs:BuildRequires:        gnome-vfs2-devel >= 2.0}
 BuildRequires: gtk+2-devel >= 1:2.0.0
 BuildRequires: krb5-devel
 BuildRequires: libIDL-devel >= 0.8.0
-%{?with_gnome:BuildRequires:   libgnome-devel >= 2.0}
-%{?with_gnome:BuildRequires:   libgnomeui-devel >= 2.2.0}
+%{?with_gnomevfs:BuildRequires:        libgnome-devel >= 2.0}
+%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libpng-devel >= 1.2.7
 BuildRequires: libstdc++-devel
@@ -103,25 +109,13 @@ Firefox Community Edition shared libraries.
 %description libs -l pl.UTF-8
 Biblioteki współdzielone przeglądarki Firefox Community Edition.
 
-%package lang-en
-Summary:       English resources for Firefox Community Edition
-Summary(pl.UTF-8):     Anglojęzyczne zasoby dla przeglądarki Firefox Community Edition
-Group:         X11/Applications/Networking
-Requires:      %{name} = %{version}-%{release}
-Provides:      %{name}-lang-resources = %{version}-%{release}
-
-%description lang-en
-English resources for Firefox Community Edition.
-
-%description lang-en -l pl.UTF-8
-Anglojęzyczne zasoby dla przeglądarki Firefox Community Edition.
-
 %package addon-tidy
 Summary:       HTML Validator for Firefox
 Summary(pl.UTF-8):     Narzędzie do sprawdzania poprawności HTML-a dla Firefoksa
 Version:       %{tidy_ver}
 License:       GPL
 Group:         X11/Applications/Networking
+URL:           http://users.skynet.be/mgueury/mozilla/
 Requires:      %{name} = %{firefox_ver}-%{release}
 
 %description addon-tidy
@@ -134,6 +128,20 @@ HTML Validator to rozszerzenie Mozilli dodające sprawdzanie
 poprawności HTML-a w Firefoksie. Liczbę błędów na przeglądanej stronie
 HTML można zobaczyć w postaci ikony na pasku stanu.
 
+%package lang-en
+Summary:       English resources for Firefox Community Edition
+Summary(pl.UTF-8):     Anglojęzyczne zasoby dla przeglądarki Firefox Community Edition
+Version:       %{firefox_ver}
+Group:         X11/Applications/Networking
+Requires:      %{name} = %{firefox_ver}-%{release}
+Provides:      %{name}-lang-resources = %{firefox_ver}-%{release}
+
+%description lang-en
+English resources for Firefox Community Edition.
+
+%description lang-en -l pl.UTF-8
+Anglojęzyczne zasoby dla przeglądarki Firefox Community Edition.
+
 %prep
 %setup -qc %{?with_tidy:-a1}
 %if %{with tidy}
@@ -147,8 +155,8 @@ cd mozilla
 %{?with_tidy:%patch2 -p1}
 %patch3 -p1
 %patch5 -p1
+%patch6 -p1
 %patch7 -p1
-%patch69 -p1
 
 # use system
 #rm -rf mozilla/nsprpub mozilla/security/nss
@@ -195,13 +203,16 @@ ac_add_options --enable-tests
 %else
 ac_add_options --disable-tests
 %endif
-%if %{with gnome}
-ac_add_options --enable-gnomevfs
+%if %{with gnomeui}
 ac_add_options --enable-gnomeui
 %else
-ac_add_options --disable-gnomevfs
 ac_add_options --disable-gnomeui
 %endif
+%if %{with gnomevfs}
+ac_add_options --enable-gnomevfs
+%else
+ac_add_options --disable-gnomevfs
+%endif
 ac_add_options --disable-freetype2
 ac_add_options --disable-installer
 ac_add_options --disable-javaxpcom
@@ -354,17 +365,17 @@ fi
 %attr(755,root,root) %{_libdir}/%{name}/components/libgkplugin.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libhtmlpars.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libi18n.so
-%attr(755,root,root) %{_libdir}/%{name}/components/libimgicon.so
+%{?with_gnomeui:%attr(755,root,root) %{_libdir}/%{name}/components/libimgicon.so}
 %attr(755,root,root) %{_libdir}/%{name}/components/libimglib2.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libjar50.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libjsd.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libmork.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libmozfind.so
-%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so
+%{?with_gnomevfs:%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so}
 %attr(755,root,root) %{_libdir}/%{name}/components/libmyspell.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libnecko2.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libnecko.so
-%attr(755,root,root) %{_libdir}/%{name}/components/libnkgnomevfs.so
+%{?with_gnomevfs:%attr(755,root,root) %{_libdir}/%{name}/components/libnkgnomevfs.so}
 %attr(755,root,root) %{_libdir}/%{name}/components/libnsappshell.so
 %attr(755,root,root) %{_libdir}/%{name}/components/liboji.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libpermissions.so
@@ -451,7 +462,7 @@ fi
 %{_libdir}/%{name}/components/gksvgrenderer.xpt
 %{_libdir}/%{name}/components/history.xpt
 %{_libdir}/%{name}/components/htmlparser.xpt
-%{_libdir}/%{name}/components/imgicon.xpt
+%{?with_gnomeui:%{_libdir}/%{name}/components/imgicon.xpt}
 %{_libdir}/%{name}/components/imglib2.xpt
 %{_libdir}/%{name}/components/inspector.xpt
 %{_libdir}/%{name}/components/intl.xpt
@@ -625,6 +636,5 @@ fi
 %files addon-tidy
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/components/libnstidy.so
-%attr(755,root,root) %{_libdir}/%{name}/components/libtodel.so
 %{_libdir}/%{name}/components/nstidy.xpt
 %endif
This page took 0.044418 seconds and 4 git commands to generate.