Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-media-player
      3 #
      4 # includes module(s): totem
      5 #
      6 # Copyright 2008 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: yippi
     11 #
     12 %include Solaris.inc
     13 
     14 %define makeinstall make install DESTDIR=$RPM_BUILD_ROOT
     15 %use totemparser = totem-pl-parser.spec
     16 %use totem = totem.spec
     17 %use rhythmbox = rhythmbox.spec
     18 
     19 Name:                    SUNWgnome-media-player
     20 Summary:                 GNOME media player 
     21 Version:                 %{default_pkg_version}
     22 Source:                  %{name}-manpages-0.1.tar.gz
     23 SUNW_BaseDir:            %{_prefix}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 
     27 %include default-depend.inc
     28 BuildRequires: SUNWgnome-media-devel
     29 BuildRequires: SUNWxorg-headers
     30 BuildRequires: SUNWgnome-panel-devel
     31 BuildRequires: SUNWiso-codes-devel
     32 BuildRequires: SUNWgnome-file-mgr
     33 BuildRequires: SUNWdbus-devel
     34 BuildRequires: SUNWgnome-config-devel
     35 BuildRequires: SUNWgnome-media-devel
     36 BuildRequires: SUNWgnome-vfs-devel
     37 BuildRequires: SUNWgnome-component-devel
     38 BuildRequires: SUNWgnome-cd-burner-devel
     39 BuildRequires: SUNWPython-devel
     40 BuildRequires: SUNWgnome-python-libs-devel
     41 BuildRequires: SUNWevolution-libs-devel
     42 BuildRequires: SUNWlibpopt-devel
     43 BuildRequires: SUNWmusicbrainz-devel
     44 BuildRequires: SUNWgnome-media-apps-devel
     45 BuildRequires: SUNWfirefox-devel
     46 BuildRequires: SUNWgnome-themes-devel
     47 BuildRequires: SUNWlibsoup-devel
     48 BuildRequires: SUNWgst-python
     49 Requires: SUNWgnome-libs
     50 Requires: SUNWgnome-base-libs
     51 Requires: SUNWgnome-file-mgr
     52 Requires: SUNWxorg-clientlibs
     53 Requires: SUNWgnome-panel
     54 Requires: SUNWiso-codes
     55 Requires: SUNWdbus
     56 Requires: SUNWgnome-config
     57 Requires: SUNWgnome-media
     58 Requires: SUNWgnome-vfs
     59 Requires: SUNWlibms
     60 Requires: SUNWlxml
     61 Requires: SUNWgnome-component
     62 Requires: SUNWgnome-cd-burner
     63 Requires: SUNWpostrun
     64 Requires: SUNWPython
     65 Requires: SUNWgnome-python-libs
     66 Requires: SUNWevolution-libs
     67 Requires: SUNWlibpopt
     68 Requires: SUNWmusicbrainz
     69 Requires: SUNWgnome-media-apps
     70 Requires: SUNWfirefox
     71 Requires: SUNWgnome-themes
     72 Requires: SUNWhal
     73 Requires: SUNWlibsoup
     74 Requires: SUNWgst-python
     75 
     76 %package root
     77 Summary:                 %{summary} - / filesystem
     78 SUNW_BaseDir:            /
     79 %include default-depend.inc
     80 Requires: SUNWpostrun-root
     81 Requires: SUNWgnome-config
     82 
     83 %package devel
     84 Summary:                 %{summary} - development files
     85 SUNW_BaseDir: %{_basedir}
     86 %include default-depend.inc
     87 
     88 %if %build_l10n
     89 %package l10n
     90 Summary:                 %{summary} - l10n files
     91 SUNW_BaseDir:            %{_basedir}
     92 %include default-depend.inc
     93 Requires:                %{name}
     94 %endif
     95 
     96 %prep
     97 rm -rf %name-%version
     98 mkdir %name-%version
     99 %totemparser.prep -d %name-%version
    100 %totem.prep -d %name-%version
    101 %rhythmbox.prep -d %name-%version
    102 cd %{_builddir}/%name-%version
    103 gzcat %SOURCE0 | tar xf -
    104 
    105 %build
    106 export CFLAGS="%optflags -D__EXTENSIONS__ -I%{_includedir} -I/usr/X11/include"
    107 export CXXFLAGS="%cxx_optflags -features=extensions -I/usr/X11/include"
    108 %if %cc_is_gcc
    109 %else
    110 export CXX="${CXX} -norunpath"
    111 %endif
    112 export RPM_OPT_FLAGS="$CFLAGS"
    113 export LDFLAGS="%{?arch_ldadd} -z ignore -Bdirect -z combreloc -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lX11"
    114 
    115 %ifarch sparc
    116 export x_includes="/usr/openwin/include"
    117 export x_libraries="/usr/openwin/lib"
    118 %endif
    119 
    120 export PKG_CONFIG_PATH=%{_datadir}/pkgconfig
    121 %totemparser.build -d %name-%version
    122 
    123 export PKG_CONFIG_PATH=../totem-pl-parser-%{totemparser.version}:%{_datadir}/pkgconfig
    124 %totem.build -d %name-%version
    125 
    126 export PKG_CONFIG_PATH=../totem-pl-parser-%{totemparser.version}:../totem-%{totem.version}
    127 %rhythmbox.build -d %name-%version
    128 
    129 %install
    130 rm -rf $RPM_BUILD_ROOT
    131 %totemparser.install -d %name-%version
    132 %totem.install -d %name-%version
    133 %rhythmbox.install -d %name-%version
    134 rm -rf $RPM_BUILD_ROOT%{_mandir}
    135 cd %{_builddir}/%name-%version/sun-manpages
    136 make install DESTDIR=$RPM_BUILD_ROOT
    137 
    138 rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
    139 rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
    140 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/lib*.la
    141 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/lib*.a
    142 rm $RPM_BUILD_ROOT%{_libdir}/firefox/plugins/lib*.la
    143 rm $RPM_BUILD_ROOT%{_libdir}/firefox/plugins/lib*.a
    144 rm $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/lib*.la
    145 rm $RPM_BUILD_ROOT%{_libdir}/totem/plugins/*/lib*.a
    146 
    147 # We remove the below totem plugins including YouTube and Gromit
    148 # since their respective dependecies gdata and gromit are missing
    149 # on Solaris:
    150 #
    151 # - YouTube: a plugin to let you browse YouTube videos
    152 # - Gromit: presentation helper to make annotations on screen
    153 #
    154 rm -r $RPM_BUILD_ROOT%{_libdir}/totem/plugins/gromit
    155 rm -r $RPM_BUILD_ROOT%{_libdir}/totem/plugins/youtube
    156 
    157 # We remove the below rhythmbox upnp_coherence plugin since its
    158 # dependecy Coherence is missing on Solaris:
    159 #
    160 # - upnp_coherence: adds support for playing media from and sending media
    161 # to DLNA/UPnP network devices, and enables Rhythmbox to be controlled
    162 # by a DLNA/UPnP ControlPoint
    163 #
    164 rm -r $RPM_BUILD_ROOT%{_libdir}/rhythmbox/plugins/upnp_coherence
    165 
    166 %if %build_l10n
    167 %else
    168 # REMOVE l10n FILES
    169 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    170 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
    171 rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
    172 rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf
    173 %endif
    174 
    175 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT}
    176 
    177 %clean
    178 rm -rf $RPM_BUILD_ROOT
    179 
    180 %post
    181 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    182   echo '/usr/bin/update-desktop-database'
    183 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
    184 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    185   echo '/usr/bin/scrollkeeper-update'
    186 ) | $BASEDIR/lib/postrun -b -u -c JDS
    187 
    188 %postun
    189 test -x $BASEDIR/lib/postrun || exit 0
    190 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    191   echo '/usr/bin/update-desktop-database'
    192 ) | $BASEDIR/lib/postrun -b -u -c JDS
    193 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    194   echo '/usr/bin/scrollkeeper-update'
    195 ) | $BASEDIR/lib/postrun -b -u -c JDS
    196 
    197 %post root
    198 %include gconf-install.script
    199 
    200 %preun root
    201 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    202 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    203   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    204   echo '  exit 0';
    205   echo '}';
    206   echo 'umask 0022';
    207   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    208   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    209   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    210   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    211   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    212   echo 'schemas="$SDIR/rhythmbox.schemas';
    213   echo '         $SDIR/totem-handlers.schemas';
    214   echo '         $SDIR/totem-video-thumbnail.schemas';
    215   echo '         $SDIR/totem.schemas"';
    216   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    217 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    218 
    219 %files
    220 %defattr (-, root, bin)
    221 %dir %attr (0755, root, bin) %{_bindir}
    222 %{_bindir}/*
    223 %dir %attr (0755, root, bin) %{_libdir}
    224 %{_libdir}/lib*.so*
    225 %{_libdir}/nautilus/extensions-2.0/lib*.so*
    226 %{_libdir}/firefox/plugins
    227 %{_libdir}/rhythmbox
    228 %{_libdir}/rhythmbox-metadata
    229 %{_libdir}/totem-plugin-viewer
    230 %{_libdir}/totem
    231 %dir %attr (0755, root, sys) %{_datadir}
    232 %dir %attr (0755, root, other) %{_datadir}/applications
    233 %{_datadir}/applications/*
    234 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
    235 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
    236 %{_datadir}/dbus-1/services/org.gnome.Rhythmbox.service
    237 %dir %attr (0755, root, other) %{_datadir}/gnome
    238 %{_datadir}/gnome/help/rhythmbox/C
    239 %{_datadir}/gnome/help/totem/C
    240 %attr (-, root, other) %{_datadir}/icons
    241 %{_datadir}/omf/rhythmbox/*-C.omf
    242 %{_datadir}/omf/totem/*-C.omf
    243 %{_datadir}/rhythmbox
    244 %{_datadir}/totem
    245 %dir %attr(0755, root, bin) %{_mandir}
    246 %dir %attr(0755, root, bin) %{_mandir}/*
    247 %{_mandir}/*/*
    248 
    249 %files root
    250 %defattr(-, root, sys)
    251 %attr(0755, root, sys) %dir %{_sysconfdir}
    252 %{_sysconfdir}/gconf/schemas/rhythmbox.schemas
    253 %{_sysconfdir}/gconf/schemas/totem-handlers.schemas
    254 %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
    255 %{_sysconfdir}/gconf/schemas/totem.schemas
    256 
    257 %files devel
    258 %defattr (-, root, bin)
    259 %dir %attr (0755, root, bin) %dir %{_libdir}
    260 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    261 %{_libdir}/pkgconfig/*
    262 %dir %attr (0755, root, bin) %dir %{_includedir}
    263 %{_includedir}/*
    264 %dir %attr (0755, root, sys) %{_datadir}
    265 %{_datadir}/gtk-doc
    266 
    267 %if %build_l10n
    268 %files l10n
    269 %defattr (-, root, bin)
    270 %dir %attr (0755, root, sys) %{_datadir}
    271 %dir %attr (0755, root, other) %{_datadir}/gnome
    272 %attr (-, root, other) %{_datadir}/locale
    273 %{_datadir}/gnome/help/*/[a-z]*
    274 %{_datadir}/omf/*/*-[a-z]*.omf
    275 %endif
    276 
    277 %changelog
    278 * Thu May 15 2008 - jijun.yu@sun.com
    279 - Remove the rm commands which won't useful any more.
    280 * Thu May 15 2008 - jijun.yu (at] sun.com
    281 - Remove rhthmbox upnp_coherence plugin.
    282 * Thu May 08 2008 - jijun.yu (at] sun.com
    283 - Remove 2 plugins including youtube and gromit. 
    284 * Mon Apr 28 2008 - jijun.yu (at] sun.com
    285 - Remove the 4 rm commands added on Apr.25, since the same functions will be 
    286   done at configuring. 
    287 * Fri Apr 25 2008 - jijun.yu (at] sun.com
    288 - Remove some plugins including libtotem-gmp, libtotem-narrowspace,
    289   libtotem-mully and libtotem-cone, because they are not supported on Solaris.
    290 * Mon Mar 31 2008 - brian.cameron (at] sun.com
    291 - Add SUNW_Copyright.
    292 * Thu Mar 13 2008 - brian.cameron (at] sun.com
    293 - Remove .la/.a files from totem plugin library directories.
    294 * Fri Jan 11 2008 - damien.carbery (at] sun.com
    295 - nautilus extensions go to extensions-2.0 dir. Change %files and %install.
    296 * Wed Jan 09 2008 - damien.carbery (at] sun.com
    297 - Uncomment plugins code as firefox 2 is back in the build.
    298 * Thu Jan 03 2008 - damien.carbery (at] sun.com
    299 - Comment out plugins code as firefox is not found by totem or rhythmbox and
    300   browser plugins not built. This is a workaround while firefox build corrected.
    301 * Thu Jan  3 2008 - laca (at] sun.com
    302 - use gconf-install.script instead of an inline script
    303 * Mon Dec 03 2007 - brian.cameron (at] sun.com
    304 - Add totem-pl-parser.
    305 * Thu Nov 08 2007 - brian.cameron (at] sun.com
    306 - Added proper totem/totem-video-thumbnailer manpages in the manpage
    307   tarball, so now remove the NROF ones included by totem module in the
    308   %install step.
    309 * Fri Oct 12 2007 - laca (at] sun.com
    310 - add /usr/X11/include to CXXFLAGS
    311 * Thu Oct  4 2007 - laca (at] sun.com
    312 - add %arch_ldadd to LDFLAGS for the libintl libs
    313 * Tue Jul 03 2007 - damien.carbery (at] sun.com
    314 - Browser plugins now installed to firefox/plugins dir.
    315 * Wed Jun 13 2007 - damien.carbery (at] sun.com
    316 - Comment out removal of 2 la/a files as they are not being installed.
    317 * Wed May 23 2007 - damien.carbery (at] sun.com
    318 - Add Build/Requires SUNWgnome-themes/-devel for gnome-icon-theme, required by
    319   totem.
    320 * Tue May 15 2007 - damien.carbery (at] sun.com
    321 - Add %{_libdir}/totem to %files; remove .a and .la files from there.
    322 * Thu Apr 26 2007 - laca (at] sun.com
    323 - delete some unnecessary env variables; set CXX to $CXX -norunpath because
    324   libtool swallows this option sometimes and leaves compiler paths in the
    325   binaries, fixes 6497719
    326 * Tue Apr 24 2007 - laca (at] sun.com
    327 - s/0755/-/ in defattr so that files are not made all executable
    328 * Mon Mar 12 2007 - laca (at] sun.com
    329 - delete rhythmbox .la files in rhythmbox.spec
    330 * Thu Mar 01 2007 - halton.huo (at] sun.com
    331 - Remove -I%{_includedir}/mps from CXXFLAGS because it is 
    332   in /usr/lib/pkgconfig/firefox-xpcom.pc
    333 * Wed Feb 28 2007 - halton.huo (at] sun.com
    334 - Add -I%{_includedir}/mps into CXXFLAGS to fix build error.
    335 * Thu Feb 22 2007 - damien.carbery (at] sun.com
    336 - Add '-features=extensions' to CXXFLAGS because __func__ is used in new totem
    337   tarball.
    338 * Mon Feb 12 2007 - damien.carbery (at] sun.com
    339 - Remove '-I/usr/include/mps' from CFLAGS/CXXFLAGS. Make change to
    340   firefox-xpcom.pc file instead.
    341 * Thu Nov 30 2006 - damien.carbery (at] sun.com
    342 - Remove duplicate 'BuildRequires: SUNWfirefox-devel' line.
    343 * Mon Nov 20 2006 - laca (at] sun.com
    344 - s/Requires: SUNWfirefox-devel/Requires: SUNWfirefox/, fixes 6495619
    345 * Fri Oct 20 2006 - damien.carbery (at] sun.com
    346 - Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51.
    347 * Fri Oct 13 2006 - damien.carbery (at] sun.com
    348 - Delete .a and .la files.
    349 * Mon Oct 02 2006 - damien.carbery (at] sun.com
    350 - Remove application-registry and mime-info dirs from %files as they are no 
    351   longer installed.
    352 * Mon Sep 18 2006 - Brian.Cameron (at] sun.com
    353 - Add SUNWhalh BuildRequires.
    354 * Fri Sep 08 2006 - Matt.Keenan (at] sun.com
    355 - Remove "rm" of _mandir during %install, add man page tarball for rhythmbox.1
    356   Deliver totem.1, totem-video-thumbnailer.1 from community, and manp
    357 * Thu Aug 17 2006 - damien.carbery (at] sun.com
    358 - Add the mozilla/plugins dir and totem-mozilla-viewer.
    359 - Add Build/Requires SUNWfirefox/-devel for the xpidl compiler.
    360 * Wed Aug 16 2006 - damien.carbery (at] sun.com
    361 - Remove empty mozilla/plugins dir in %install.
    362 * Sat Aug 12 2006 - laca (at] sun.com
    363 - change datadir/icons permissions back to root:other since it's a stable
    364   interface and wasn't supposed to be changed
    365 * Fri Aug 11 2006 - damien.carbery (at] sun.com
    366 - Change SUNWhal-devel ref to SUNWhal as the former does not exist.
    367 * Tue Aug 08 2006 - damien.carbery (at] sun.com
    368 - Update Build/Requires after check-deps.pl run.
    369 * Fri Jul 14 2006 - laca (at] sun.com
    370 - update %post/%postun/etc scripts to support diskless client setup,
    371   part of 6448317
    372 * Thu Jun 29 2006 - laca (at] sun.com
    373 - update postrun scripts
    374 * Wed Jun 21 2006 - brian.cameron (at] sun.com
    375 - Fix packaging.
    376 * Sun Jun 11 2006 - laca (at] sun.com
    377 - change group from other to bin/sys
    378 * Thu May 25 2006 - laca (at] sun.com
    379 - use post/preun scripts to install schemas into the merged gconf files
    380 * Fri May 12 2006 - damien.carbery (at] sun.com
    381 - Small update to dependency list after check-deps.pl run.
    382 * Wed May 10 2006 - laca (at] sun.com
    383 - merge -share pkg(s) into the base pkg(s)
    384 * Thu Mar  2 2006 - damien.carbery (at] sun.com
    385 - Remove locale dir from l10n package - no files installed there.
    386 * Mon Feb 20 2006 - damien.carbery (at] sun.com
    387 - Update Build/Requires after running check-deps.pl script.
    388 * Sat Dec  3 2005 - laca (at] sun.com
    389 - add %post script that runs update-desktop-database
    390 * Tue Nov 29 2005 - laca (at] sun.com
    391 - remove javahelp stuff
    392 * Fri Sep 30 2005 - brian.cameron (at] sun.com
    393 - Fix l10n packaging.
    394 * Tue Sep 27 2005 - brian.cameron (at] sun.com
    395 - Move back to default prefix instead of /usr/demo/jds, since we have
    396   decided to support this application.
    397 * Wed Jan 19 2005 - matt.keenan (at] sun.com
    398 - Deliver javahelp files for totem #6197736
    399 * Mon Dec 13 2004 - damien.carbery (at] sun.com
    400 - Move to /usr/sfw to implement ARC decision.
    401 * Sun Nov 14 2004 - laca (at] sun.com
    402 - move to /usr/demo/jds
    403 * Sat Oct 02 2004 - laca (at] sun.com
    404 - added %pkgbuild_postprocess
    405 * Fri Oct 01 2004 - takao.fujiwara (at] sun.com
    406 - Added l10n package
    407 - Added '--x-libraries' option in configure to fix bug 5081938
    408 * Sat Sep 11 2004 - laca (at] sun.com
    409 - Set LDFLAGS so Xrandr and Xrender can be found.
    410 * Mon Aug 23 2004 - laca (at] sun.com
    411 - s/SUNWpl5u/SUNWperl584usr/
    412 * Fri Jul 23 2004 - damien.carbery (at] sun.com
    413 - Add SUNWgnome-media-devel as build requirement.
    414 * Thu Jul 15 2004 - brian.cameron (at] sun.com
    415 - Created.
    416