mozilla-xulrunner192/mozilla-xulrunner192.spec
changeset 41 fb795017b95f
parent 38 343296cfecd2
child 42 6ee6583389c7
equal deleted inserted replaced
40:200b8b027989 41:fb795017b95f
     1 #
     1 #
     2 # spec file for package mozilla-xulrunner192 (Version 1.9.2b5)
     2 # spec file for package mozilla-xulrunner192 (Version 1.9.2b5)
     3 #
     3 #
     4 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
     4 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
     5 # Copyright (c) 2006-2009 Wolfgang Rosenauer
     5 #               2006-2009 Wolfgang Rosenauer
     6 #
     6 #
     7 # All modifications and additions to the file contributed by third parties
     7 # All modifications and additions to the file contributed by third parties
     8 # remain the property of their copyright owners, unless otherwise agreed
     8 # remain the property of their copyright owners, unless otherwise agreed
     9 # upon. The license for this file, and modifications and additions to the
     9 # upon. The license for this file, and modifications and additions to the
    10 # file, is the same license as for the pristine package itself (unless the
    10 # file, is the same license as for the pristine package itself (unless the
    86 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    86 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    87 PreReq:         update-alternatives coreutils
    87 PreReq:         update-alternatives coreutils
    88 ### build configuration ###
    88 ### build configuration ###
    89 %ifarch %ix86
    89 %ifarch %ix86
    90 %define crashreporter    1
    90 %define crashreporter    1
       
    91 %else
       
    92 %define crashreporter    0
    91 %endif
    93 %endif
    92 %define has_system_nspr  0
    94 %define has_system_nspr  0
    93 %define has_system_nss   0
    95 %define has_system_nss   0
    94 %define has_system_cairo 0
    96 %define has_system_cairo 0
    95 %define localize 1
    97 %define localize 1
   181 rely on the gnome-vfs subsystem to be installed. They are recommended
   183 rely on the gnome-vfs subsystem to be installed. They are recommended
   182 for full desktop integration but not mandatory for small disk footprint
   184 for full desktop integration but not mandatory for small disk footprint
   183 KDE installations for example.
   185 KDE installations for example.
   184 
   186 
   185 
   187 
   186 %if 0%{?crashreporter}
   188 %if %crashreporter
   187 %package buildsymbols
   189 %package buildsymbols
   188 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   190 License:        GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
   189 Summary:        Breakpad buildsymbols for %{name}
   191 Summary:        Breakpad buildsymbols for %{name}
   190 Group:          Development/Debug
   192 Group:          Development/Debug
   191 
   193 
   223 fi
   225 fi
   224 %endif
   226 %endif
   225 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   227 MOZ_APP_DIR=%{_libdir}/xulrunner-%{version_internal}
   226 export MOZ_BUILD_DATE=%{releasedate}
   228 export MOZ_BUILD_DATE=%{releasedate}
   227 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   229 export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
   228 %if 0%{?crashreporter}
   230 %if %crashreporter
   229 export CFLAGS="$CFLAGS -gstabs+"
   231 export CFLAGS="$CFLAGS -gstabs+"
   230 %endif
   232 %endif
   231 %ifarch ppc64
   233 %ifarch ppc64
   232 export CFLAGS="$CFLAGS -mminimal-toc"
   234 export CFLAGS="$CFLAGS -mminimal-toc"
   233 %endif
   235 %endif
   383 %if %suse_version > 1020
   385 %if %suse_version > 1020
   384 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
   386 %fdupes $RPM_BUILD_ROOT%{_includedir}/xulrunner-%{version_internal}/
   385 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
   387 %fdupes $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/
   386 %endif
   388 %endif
   387 # create breakpad debugsymbols
   389 # create breakpad debugsymbols
   388 %if 0%{?crashreporter}
   390 %if %crashreporter
   389 make buildsymbols
   391 make buildsymbols
   390 if [ -e dist/*.crashreporter-symbols.zip ]; then
   392 if [ -e dist/*.crashreporter-symbols.zip ]; then
   391   mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
   393   mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/
   392   cp dist/*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
   394   cp dist/*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_datadir}/mozilla/
   393 fi
   395 fi
   471 %{_libdir}/xulrunner-%{version_internal}/xulrunner
   473 %{_libdir}/xulrunner-%{version_internal}/xulrunner
   472 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
   474 %{_libdir}/xulrunner-%{version_internal}/xulrunner-bin
   473 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
   475 %{_libdir}/xulrunner-%{version_internal}/xulrunner-stub
   474 %{_libdir}/xulrunner-%{version_internal}/platform.ini
   476 %{_libdir}/xulrunner-%{version_internal}/platform.ini
   475 # crashreporter files
   477 # crashreporter files
   476 %if 0%{?crashreporter}
   478 %if %crashreporter
   477 %{_libdir}/xulrunner-%{version_internal}/crashreporter
   479 %{_libdir}/xulrunner-%{version_internal}/crashreporter
   478 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
   480 %{_libdir}/xulrunner-%{version_internal}/crashreporter.ini
   479 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
   481 %{_libdir}/xulrunner-%{version_internal}/Throbber-small.gif
   480 %endif
   482 %endif
   481 # ghosts
   483 # ghosts
   512 
   514 
   513 %files translations-other -f %{_tmppath}/translations.other
   515 %files translations-other -f %{_tmppath}/translations.other
   514 %defattr(-,root,root)
   516 %defattr(-,root,root)
   515 %endif
   517 %endif
   516 
   518 
   517 %if 0%{?crashreporter}
   519 %if %crashreporter
   518 %files buildsymbols
   520 %files buildsymbols
   519 %defattr(-,root,root)
   521 %defattr(-,root,root)
   520 %{_datadir}/mozilla/
   522 %{_datadir}/mozilla/
   521 %endif
   523 %endif
   522 
   524