/[packages]/cauldron/xulrunner/current/SPECS/xulrunner.spec
ViewVC logotype

Diff of /cauldron/xulrunner/current/SPECS/xulrunner.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 43414 by erwan, Thu Jan 27 21:27:51 2011 UTC revision 43415 by dmorgan, Sat Jan 29 12:57:08 2011 UTC
# Line 34  Line 34 
34  # (tpg) various directory defines  # (tpg) various directory defines
35  %define mozappdir %{_libdir}/%{name}-%{version_internal}  %define mozappdir %{_libdir}/%{name}-%{version_internal}
36    
 # (salem) ugly but avoids hardcoding package versions (#42745)  
 # TODO: needs a better solution. (%__isa macro)?  
 %define hunspellver %(rpm -q --whatprovides libhunspell --queryformat %{NAME})  
37  %define nss_libname %mklibname nss 3  %define nss_libname %mklibname nss 3
38  %define nspr_libname %mklibname nspr 4  %define nspr_libname %mklibname nspr 4
39    
# Line 75  Patch20:       xulrunner-1.9.2-helper-app.patc Line 72  Patch20:       xulrunner-1.9.2-helper-app.patc
72  Patch21:        xulrunner-1.9.2-kde-integration.patch  Patch21:        xulrunner-1.9.2-kde-integration.patch
73  Patch25:        xulrunner-1.9.2-realpath.patch  Patch25:        xulrunner-1.9.2-realpath.patch
74  Patch26:        mozilla-1.9.2-gtk2.diff  Patch26:        mozilla-1.9.2-gtk2.diff
75  Patch27:         xulrunner-2.0b4-missing-linking-libraries.patch  Patch27:        xulrunner-2.0b4-missing-linking-libraries.patch
76    # Patch from fedora: fix build
77    Patch28:        xulrunner-2.0-system-cairo.patch
78    Patch29:        xulrunner-2.0-system-cairo-tee.patch
79    Patch30:        xulrunner-2.0-os2cc.patch
80    
81  BuildRequires:  zlib-devel  BuildRequires:  zlib-devel
82  BuildRequires:  bzip2-devel  BuildRequires:  bzip2-devel
83  BuildRequires:  libpng-devel >= 1.2.25-2  BuildRequires:  libpng-devel >= 1.2.25-2
# Line 84  BuildRequires: libhunspell-devel Line 86  BuildRequires: libhunspell-devel
86  %endif  %endif
87  BuildRequires:  libIDL2-devel  BuildRequires:  libIDL2-devel
88  BuildRequires:  gtk+2-devel  BuildRequires:  gtk+2-devel
89    BuildRequires:  libxt-devel
90    BuildRequires:  libevent-devel
91  BuildRequires:  startup-notification-devel  BuildRequires:  startup-notification-devel
92  BuildRequires:  dbus-glib-devel  BuildRequires:  dbus-glib-devel
93  BuildRequires:  libsqlite3-devel >= 3.7.0.1-2  BuildRequires:  libsqlite3-devel >= 3.7.4
94    BuildRequires:  autoconf2.1
95  BuildRequires:  libgnome-vfs2-devel  BuildRequires:  libgnome-vfs2-devel
96  BuildRequires:  libgnome2-devel  BuildRequires:  libgnome2-devel
97  BuildRequires:  libgnomeui2-devel  BuildRequires:  libgnomeui2-devel
# Line 98  BuildRequires: makedepend Line 103  BuildRequires: makedepend
103  BuildRequires:  valgrind  BuildRequires:  valgrind
104  BuildRequires:  rootcerts  BuildRequires:  rootcerts
105  BuildRequires:  python  BuildRequires:  python
 BuildRequires:  python-devel  
106  BuildRequires:  nspr-devel >= 2:4.8.7  BuildRequires:  nspr-devel >= 2:4.8.7
107  BuildRequires:  nss-static-devel >= 2:3.12.7  BuildRequires:  nss-devel >= 2:3.12.9
108  BuildRequires:  pango-devel  BuildRequires:  pango-devel
109  BuildRequires:  libalsa-devel  BuildRequires:  libalsa-devel
110  BuildRequires:  libnotify-devel  BuildRequires:  libnotify-devel
# Line 130  Requires:      rootcerts Line 134  Requires:      rootcerts
134  # (tpg) manually pull dependancies on libnss3 and libnspr4, why ? see above  # (tpg) manually pull dependancies on libnss3 and libnspr4, why ? see above
135  Requires:       %{nss_libname} >= 2:%{nss_version}  Requires:       %{nss_libname} >= 2:%{nss_version}
136  Requires:       %{nspr_libname} >= 2:4.8.7  Requires:       %{nspr_libname} >= 2:4.8.7
 %if %_use_syshunspell  
 # (salem) fixes #42745  
 Requires:       %{hunspellver}  
 %endif  
137  # (salem) bug #42680 for noarch packages  # (salem) bug #42680 for noarch packages
138  Provides:       libxulrunner = %{version}-%{release}  Provides:       libxulrunner = %{version}-%{release}
139  Requires:       %{mklibname sqlite3_ 0} >= %{sqlite3_version}  Requires:       %{mklibname sqlite3_ 0} >= %{sqlite3_version}
# Line 175  Development files and headers for %{name Line 175  Development files and headers for %{name
175  %patch25 -p1  %patch25 -p1
176    
177  %patch27 -p0  %patch27 -p0
178    %patch28 -p1
179    %patch29 -p1
180    %patch30 -p1
181    
182    autoconf-2.13
183    
184  # needed to regenerate certdata.c  # needed to regenerate certdata.c
185  pushd security/nss/lib/ckfw/builtins  pushd security/nss/lib/ckfw/builtins
# Line 193  export CXXFLAGS="$CFLAGS" Line 198  export CXXFLAGS="$CFLAGS"
198  export LDFLAGS="%ldflags -Wl,-rpath,%{mozappdir}"  export LDFLAGS="%ldflags -Wl,-rpath,%{mozappdir}"
199    
200  # (tpg) don't use macro here  # (tpg) don't use macro here
201    # (fhimpe) Starting from Firefox 4.0b10, at least sqlite 3.6.4 is needed
202  ./configure --build=%{_target_platform} \  ./configure --build=%{_target_platform} \
203          --host=%_host --target=%_target_platform \          --host=%_host --target=%_target_platform \
204          --prefix=%{_prefix} \          --prefix=%{_prefix} \
# Line 206  export LDFLAGS="%ldflags -Wl,-rpath,%{mo Line 212  export LDFLAGS="%ldflags -Wl,-rpath,%{mo
212          --with-system-jpeg \          --with-system-jpeg \
213          --with-system-zlib \          --with-system-zlib \
214          --with-system-bz2 \          --with-system-bz2 \
215            --with-system-libevent \
216          --enable-system-png \          --enable-system-png \
217          --with-system-nspr \          --with-system-nspr \
218          --without-system-nss \          --with-system-nss \
219          --enable-system-sqlite \          --enable-system-sqlite \
220          --enable-system-cairo \          --enable-system-cairo \
221  %if %_use_syshunspell  %if %_use_syshunspell
# Line 259  export LDFLAGS="%ldflags -Wl,-rpath,%{mo Line 266  export LDFLAGS="%ldflags -Wl,-rpath,%{mo
266          --enable-gio \          --enable-gio \
267          --enable-dbus \          --enable-dbus \
268          --enable-libproxy \          --enable-libproxy \
269            --enable-chrome-format=jar \
270          --with-distribution-id=org.%{_vendor}          --with-distribution-id=org.%{_vendor}
271    
272  %__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl  %__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl
# Line 394  rm -rf %{buildroot} Line 402  rm -rf %{buildroot}
402  %{mozappdir}/run-mozilla.sh  %{mozappdir}/run-mozilla.sh
403  #%{mozappdir}/regxpcom  #%{mozappdir}/regxpcom
404  %{mozappdir}/greprefs.js  %{mozappdir}/greprefs.js
405  %{mozappdir}/*.chk  #%{mozappdir}/*.chk
406  %{mozappdir}/xulrunner  %{mozappdir}/xulrunner
407  %{mozappdir}/xulrunner-bin  %{mozappdir}/xulrunner-bin
408  %{mozappdir}/xulrunner-stub  %{mozappdir}/xulrunner-stub

Legend:
Removed from v.43414  
changed lines
  Added in v.43415

  ViewVC Help
Powered by ViewVC 1.1.28