SUNWfirefox.spec
author davelam
Fri, 28 Dec 2007 07:08:34 +0000
changeset 11357 64f1ad2d3149
parent 11355 d88df8a86e26
child 11427 524ae7c62cd7
permissions -rw-r--r--
Changed to deliver .autoreg no matter apoc enabled or not
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWfirefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): firefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
     6
# Copyright 2007 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
# Owner:davelam
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
# DO NOT REMOVE NEXT LINE
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
# use --without-apoc-adapter to disable building apoc adapter 
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    17
# default: not build apoc adapter
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    18
%define with_apoc_adapter %{?_with_apoc_adapter:1}%{?!_with_apoc_adapter:0}
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    19
# use --without-moz-nss-nspr to not devlier Mozilla bundled nss, nspr libs
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    20
# default: without Mozilla bundled nss, nspr libs
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    21
%define without_moz_nss_nspr %{?!_with_moz_nss_nspr:1}%{?_with_moz_nss_nspr:0}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
%use firefox = firefox.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
##   Package Information Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Name:          SUNWfirefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Summary:       Mozilla Firefox Web browser
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Version:       %{firefox.version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Source:        %{name}-manpages-0.1.tar.gz
9622
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
    32
Source1:       staroffice-mime.types.in
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
    33
Source2:       staroffice-mailcap.in
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
SUNW_BaseDir:  %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
SUNW_Category: FIREFOX,application,%{jds_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
SUNW_Copyright:firefox-copyright.txt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
##  Package Requirements Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Requires: SUNWjdsrm
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
Requires: SUNWj5rt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
Requires: SUNWgnome-base-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
Requires: SUNWdtbas
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
Requires: SUNWfontconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
Requires: SUNWfreetype2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
Requires: SUNWgnome-config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
Requires: SUNWgnome-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
Requires: SUNWgnome-vfs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
Requires: SUNWlibC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
Requires: SUNWtls
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
Requires: SUNWlibmsr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
BuildRequires: SUNWzip
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
BuildRequires: SUNWgtar
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
BuildRequires: SUNWgnome-config-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
BuildRequires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
BuildRequires: SUNWgnome-vfs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
BuildRequires: SUNWgnome-component-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
BuildRequires: SUNWgnome-base-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
Requires: SUNWpostrun
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
    65
%if %option_with_sun_branding
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
Requires: SUNWsolaris-devel-docs
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
    67
%endif
10683
410f49dcbe7d 2007-10-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10650
diff changeset
    68
%if %option_with_indiana_branding
410f49dcbe7d 2007-10-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10650
diff changeset
    69
Requires: SUNWgetting-started-guide
410f49dcbe7d 2007-10-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10650
diff changeset
    70
%endif
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    71
%if %without_moz_nss_nspr
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    72
Requires: SUNWpr
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
    73
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
##   Package Description Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
Summary:       %{summary} - development files
9622
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
    81
SUNW_BaseDir:  %{_basedir}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
Requires:      SUNWfirefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%if %with_apoc_adapter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%package apoc-adapter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
Summary:       %{summary} - Apoc Adapter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
SUNW_BaseDir:  %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
Requires:      SUNWfirefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
##   Package Preparation Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
mkdir -p %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%firefox.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
cd %{_builddir}/%name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
gzcat %SOURCE0 | tar xf -
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
##      Package Build Section      ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
#####################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
export PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   110
LDFLAGS="-z ignore -L/usr/lib -L/usr/sfw/lib"
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   111
%if %without_moz_nss_nspr
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   112
LDFLAGS="$LDFLAGS -R%{_libdir}/mps"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%endif
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   114
export LDFLAGS
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   115
export CFLAGS="-xlibmopt"
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   116
export CXXFLAGS="-xlibmil -xlibmopt -lCrun -lCstd"
10649
5bcec618ba4d 2007-10-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10572
diff changeset
   117
%if %option_with_fox
10650
laca
parents: 10649
diff changeset
   118
export CFLAGS="$CFLAGS -I/usr/X11/include"
10649
5bcec618ba4d 2007-10-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10572
diff changeset
   119
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%firefox.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
%firefox.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
11357
64f1ad2d3149 Changed to deliver .autoreg no matter apoc enabled or not
davelam
parents: 11355
diff changeset
   126
# creat file list for SUNWfirefox to separate .autoreg(marked as 'v')
64f1ad2d3149 Changed to deliver .autoreg no matter apoc enabled or not
davelam
parents: 11355
diff changeset
   127
# and maybe libmozapoc.so if apoc enabled
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
cd $RPM_BUILD_ROOT%{_libdir}
11357
64f1ad2d3149 Changed to deliver .autoreg no matter apoc enabled or not
davelam
parents: 11355
diff changeset
   129
find firefox ! -type d | egrep -v "(libmozapoc.so|\.autoreg)" | \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
  sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
    >  %{_builddir}/%name-%version/%{name}.list
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   132
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
rm -rf $RPM_BUILD_ROOT%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
cd %{_builddir}/%name-%version/sun-manpages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
#########################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
##  Package Post[Un] Install Section   ##
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
#########################################
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
  echo '/usr/bin/update-desktop-database'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
test -x $BASEDIR/lib/postrun || exit 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
  echo '/usr/bin/update-desktop-database'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
) | $BASEDIR/lib/postrun -b -u -c JDS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   157
%if %with_apoc_adapter
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   158
%post apoc-adapter
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   159
PKGCOND=/usr/bin/pkgcond
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   160
test -x $PKGCOND || exit 0
10354
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   161
if $PKGCOND is_path_writable $BASEDIR/lib/firefox > /dev/null 2>&1 ; then
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   162
  touch $BASEDIR/lib/firefox/.autoreg
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   163
fi
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   164
10354
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   165
exit 0
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   166
%postun apoc-adapter
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   167
PKGCOND=/usr/bin/pkgcond
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   168
test -x $PKGCOND || exit 0
10354
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   169
if $PKGCOND is_path_writable $BASEDIR/lib/firefox > /dev/null 2>&1 ; then
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   170
  touch $BASEDIR/lib/firefox/.autoreg
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   171
fi
10354
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   172
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   173
exit 0
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   174
%endif
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   175
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   176
%files -f SUNWfirefox.list
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   177
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9706
diff changeset
   178
%defattr(-, root, bin)
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   179
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   180
%{_bindir}/firefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   181
%dir %attr (0755, root, bin) %{_libdir}
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   182
%ghost %{_libdir}/firefox/.autoreg
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   183
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   184
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   185
%dir %attr (0755, root, other) %{_datadir}/applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   186
%{_datadir}/applications/firefox.desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   187
%dir %attr (0755, root, other) %{_datadir}/pixmaps
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   188
%{_datadir}/pixmaps/firefox-icon.png
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   189
%dir %attr (0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   190
%dir %attr (0755, root, bin) %{_mandir}/man1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   191
%{_mandir}/man1/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   192
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   193
%files devel
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9706
diff changeset
   194
%defattr(-, root, bin)
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   195
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   196
%{_includedir}/firefox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   197
%dir %attr (0755, root, sys) %{_datadir}
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   198
%{_datadir}/idl/firefox
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   199
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   200
%if %with_apoc_adapter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   201
%files apoc-adapter
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9706
diff changeset
   202
%defattr(-, root, bin)
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   203
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   204
%{_libdir}/firefox/components/libmozapoc.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   205
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   206
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   207
%changelog
11357
64f1ad2d3149 Changed to deliver .autoreg no matter apoc enabled or not
davelam
parents: 11355
diff changeset
   208
* Fri Dec 28 2007 - [email protected]
64f1ad2d3149 Changed to deliver .autoreg no matter apoc enabled or not
davelam
parents: 11355
diff changeset
   209
- deliver .autoreg no matter apoc enabled or not
11355
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   210
* Thu Dec 27 2007 - [email protected]
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   211
- move to 3.0 beta2
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   212
- set not building apoc adapter as default
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   213
- remove SUNWfirefox-root pkg
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   214
- disable apoc adapter since it's not available for 3.0
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   215
* Thu Dec 27 2007 - [email protected]
d88df8a86e26 Bumped to 3.0 beta2. Obsoleted SUNWfirefox-root. Set not building apoc adapter as default. Disabe apoc adapter since it's not available for 3.0 yet
davelam
parents: 10683
diff changeset
   216
- set no apoc-adapter as default
10683
410f49dcbe7d 2007-10-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10650
diff changeset
   217
* Sat Oct 20 2007 - [email protected]
410f49dcbe7d 2007-10-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10650
diff changeset
   218
- add indiana getting started guide dependency
10649
5bcec618ba4d 2007-10-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10572
diff changeset
   219
* Fri Oct 12 2007 - [email protected]
5bcec618ba4d 2007-10-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10572
diff changeset
   220
- add /usr/X11/include to CFLAGS if built with FOX
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
   221
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
   222
- delete Nevada X deps
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10354
diff changeset
   223
- disable developer guide dep if sun branding is not requested
10354
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   224
* Tue Aug 21 2007 - [email protected]
bdfd85b2aa18 made postremove/postinstall script more robust(CR#6594606)
davelam
parents: 9783
diff changeset
   225
- made postremove/postinstall script more robust(CR#6594606)
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9706
diff changeset
   226
* Tue Apr 24 2007 - [email protected]
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9706
diff changeset
   227
- s/0755/-/ in defattr so that files are not made all executable
9706
1246c2e0b12b remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root since it caused CR#6530982 fixed failed(see details in bugster)
davelam
parents: 9622
diff changeset
   228
* Tue Apr 10 2007 - [email protected]
1246c2e0b12b remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root since it caused CR#6530982 fixed failed(see details in bugster)
davelam
parents: 9622
diff changeset
   229
- remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root
1246c2e0b12b remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root since it caused CR#6530982 fixed failed(see details in bugster)
davelam
parents: 9622
diff changeset
   230
  since it caused CR#6530982 fixed failed(see details in bugster)
9622
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
   231
* Mon Mar 26 2007 - [email protected]
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
   232
- add new package SUNWfirefox-root to fix bug CR#6530982, the package 
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
   233
  would just add staroffice entries in /etc/mime.types /etc/mailcap 
d4a0583ab67b add new package SUNWfirefox-root to fix bug CR#6530982, the package would just add staroffice entries in /etc/mime.types /etc/mailcap in postinstall
davelam
parents: 9588
diff changeset
   234
  in postinstall
9588
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   235
* Tue Mar 20 2007 - [email protected]
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   236
- fix bug CR#6521792
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   237
    part1: add file ".autoreg" and add postinstall/postremove scripts in
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   238
           SUNWfirefox-apoc-adapter
34417bcd888f Fix bug CR#CR6521792,
davelam
parents: 9397
diff changeset
   239
    part2: add patch firefox-12-regenerate-compreg-file.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   240
* Thu Dec 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   241
- remove %preun to fix bug CR#6502253
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   242
* Fri Dec  8 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   243
- add SUNWsolaris-devel-docs dependency
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   244
* Tue Nov 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   245
- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   246
  default: enable apoc adapter, use --without-apoc-adapter to disable it
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   247
* Mon Nov 27 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   248
- enable apoc adapter(SUNWfirefox-apoc-adapter), CR#6478680
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   249
* Tue Sep 05 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   250
- New Manpage tarball
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   251
* Thu Jul 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   252
- Remove 'aclocal' dir from %files as it is now empty.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   253
* Fri Jul 14 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   254
- update %post/%postun/etc scripts to support diskless client setup,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   255
  part of 6448317
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   256
* Thu Jul 13 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   257
- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   258
* Thu Jun 29 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   259
- update postrun scripts
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   260
* Tue Jun 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   261
- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   262
* Mon Jun 12 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   263
- changed to let firefox use nss,nspr in /usr/lib/mps required by ARC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   264
- remove -R%{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   265
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   266
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   267
* Fri Jun 09 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   268
- Uncomment man page lines in %files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   269
* Thu Jun 08 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   270
- add man page prepared by Leon Sha
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   271
* Thu Apr 13 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   272
- changed installation location from "/usr/sfw/lib" to "/usr/lib"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   273
* Fri Feb 24 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   274
- Changed package category to FIREFOX
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   275
- Improved preremove script, using ${BASEDIR} instead of absolute path
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   276
* Mon Feb 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   277
- Update Build/Requires after running check-deps.pl script.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   278
* Thu Jan 19 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   279
- Add BuildRequires SUNWgnome-base-libs-devel.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   280
* Sat Dec  3 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   281
- add %post script that runs update-desktop-database
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   282
* Fri Dec 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   283
- Add .autoreg file introduced in 1.5.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   284
* Mon Oct 31 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   285
- Merge share pkgs into base
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   286
* Mon Oct 24 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   287
- Add BuildRequires SUNWgtar because source tarball needs GNU tar.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   288
* Mon Sep 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   289
- Change version same with linux verion.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   290
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   291
- Correct ownership of %{_libdir}/pkgconfig directory.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   292
* Fri Aug 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   293
- initial version of the spec file created