Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for packages SUNWgnome-media
      3 #
      4 # includes module(s): gst, gst-plugins-base, gst-plugins-good
      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 with_hal %(pkginfo -q SUNWhal && echo 1 || echo 0)
     15 
     16 %use gst = gst.spec
     17 %use gst_plugins_base = gst-plugins-base.spec
     18 %use gst_plugins_good = gst-plugins-good.spec
     19 
     20 %define gst_minmaj %(echo %{gst.version} | cut -f1,2 -d.)
     21 
     22 Name:                    SUNWgnome-media
     23 Summary:                 GNOME streaming media framework
     24 Version:                 %{default_pkg_version}
     25 Source:                  %{name}-manpages-0.1.tar.gz
     26 SUNW_BaseDir:            %{_basedir}
     27 SUNW_Copyright:          %{name}.copyright
     28 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     29 
     30 %include default-depend.inc
     31 BuildRequires: SUNWgnome-libs-devel
     32 BuildRequires: SUNWgnome-base-libs-devel
     33 BuildRequires: SUNWbison
     34 BuildRequires: SUNWPython
     35 BuildRequires: SUNWmusicbrainz-devel
     36 BuildRequires: SUNWspeex-devel
     37 BuildRequires: SUNWflac-devel
     38 BuildRequires: SUNWlibtheora-devel
     39 BuildRequires: SUNWogg-vorbis-devel
     40 BuildRequires: SUNWPython-extra
     41 BuildRequires: SUNWliboil-devel
     42 BuildRequires: SUNWgnome-audio-devel
     43 BuildRequires: SUNWgnome-config-devel
     44 BuildRequires: SUNWgnome-vfs-devel
     45 BuildRequires: SUNWjpg-devel
     46 BuildRequires: SUNWpng-devel
     47 BuildRequires: SUNWlibsoup-devel
     48 Requires: SUNWgnome-libs
     49 Requires: SUNWgnome-base-libs
     50 Requires: SUNWgnome-media-root
     51 Requires: SUNWmusicbrainz
     52 Requires: SUNWspeex
     53 Requires: SUNWflac
     54 Requires: SUNWlibtheora
     55 Requires: SUNWogg-vorbis
     56 Requires: SUNWliboil
     57 Requires: SUNWlibms
     58 Requires: SUNWgnome-audio
     59 Requires: SUNWgnome-config
     60 Requires: SUNWgnome-vfs
     61 Requires: SUNWlibsoup
     62 Requires: SUNWjpg
     63 Requires: SUNWlibms
     64 Requires: SUNWlxml
     65 Requires: SUNWperl584core
     66 Requires: SUNWpng
     67 Requires: SUNWxorg-clientlibs
     68 Requires: SUNWzlib
     69 %if %with_hal
     70 Requires: SUNWhal
     71 %endif
     72 
     73 %package root
     74 Summary:                 %{summary} - / filesystem
     75 SUNW_BaseDir:            /
     76 %include default-depend.inc
     77 Requires: SUNWpostrun-root
     78 Requires: SUNWgnome-config
     79 
     80 %package devel
     81 Summary:                 %{summary} - development files
     82 SUNW_BaseDir:            %{_basedir}
     83 %include default-depend.inc
     84 
     85 %if %build_l10n
     86 %package l10n
     87 Summary:                 %{summary} - l10n files
     88 SUNW_BaseDir:            %{_basedir}
     89 %include default-depend.inc
     90 Requires:                %{name}
     91 %endif
     92 
     93 %prep
     94 rm -rf %name-%version
     95 mkdir %name-%version
     96 %gst.prep -d %name-%version
     97 %gst_plugins_base.prep -d %name-%version
     98 %gst_plugins_good.prep -d %name-%version
     99 cd %{_builddir}/%name-%version
    100 gzcat %SOURCE0 | tar xf -
    101 
    102 %build
    103 # Note that including  __STDC_VERSION n CFLAGS for gnome-media breaks the S9
    104 # build for gstreamer,  gst-plugins, and gnome-media, so not including for them.
    105 #
    106 export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP"
    107 export RPM_OPT_FLAGS="$CFLAGS"
    108 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
    109 export LDFLAGS="%_ldflags"
    110 
    111 %gst.build -d %name-%version
    112 
    113 # Need /usr/X11/lib and /usr/X11/include to gain access to libXv.so
    114 # needed for xvimagesink.
    115 #
    116 export PKG_CONFIG_PATH=%{_builddir}/%name-%version/gstreamer-%{gst.version}/pkgconfig:%{_pkg_config_path}
    117 export CFLAGS="%optflags -I/usr/sfw/include -I/usr/X11/include -DANSICPP"
    118 export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -lresolv"
    119 
    120 %gst_plugins_base.build -d %name-%version
    121 
    122 export PKG_CONFIG_PATH=%{_builddir}/%name-%version/gstreamer-%{gst.version}/pkgconfig:%{_pkg_config_path}:%{_builddir}/%name-%version/gst-plugins-base-%{gst_plugins_base.version}/pkgconfig:%{_pkg_config_path}
    123 export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP"
    124 export LDFLAGS="%_ldflags"
    125 
    126 %gst_plugins_good.build -d %name-%version
    127 
    128 %install
    129 rm -rf $RPM_BUILD_ROOT
    130 
    131 %gst.install -d %name-%version
    132 %gst_plugins_base.install -d %name-%version
    133 %gst_plugins_good.install -d %name-%version
    134 
    135 mkdir -p $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_minmaj}/tools
    136 cd $RPM_BUILD_ROOT%{_bindir}
    137 for prog in gst-feedback gst-inspect gst-launch gst-typefind \
    138             gst-xmlinspect gst-xmllaunch; do
    139   mv $prog-%{gst_minmaj} ../lib/gstreamer-%{gst_minmaj}/tools
    140   rm -f $prog
    141   ln -s ../lib/gstreamer-%{gst_minmaj}/tools/$prog-%{gst_minmaj} $prog
    142 done
    143 
    144 perl -pi -e 's,^toolsdir=.*,toolsdir=\${exec_prefix}/lib/gstreamer-%{gst_minmaj}/tools,' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gstreamer-%{gst_minmaj}.pc
    145 
    146 rm -rf $RPM_BUILD_ROOT%{_mandir}
    147 cd %{_builddir}/%name-%version/sun-manpages
    148 make install DESTDIR=$RPM_BUILD_ROOT
    149 
    150 chmod 755 $RPM_BUILD_ROOT%{_mandir}/man1/*.1
    151 chmod 755 $RPM_BUILD_ROOT%{_mandir}/man3/*.3
    152 chmod 755 $RPM_BUILD_ROOT%{_mandir}/man5/*.5
    153 
    154 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_minmaj}/*.la
    155 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_minmaj}/*.a
    156 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
    157 
    158 %if %{!?_without_gtk_doc:0}%{?_without_gtk_doc:1}
    159 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
    160 %endif
    161 
    162 %if %build_l10n
    163 %else
    164 # REMOVE l10n FILES
    165 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    166 %endif
    167 
    168 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    169 
    170 %clean
    171 rm -rf $RPM_BUILD_ROOT
    172 
    173 %post root
    174 %include gconf-install.script
    175 
    176 %preun root
    177 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    178 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    179   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    180   echo '  exit 0';
    181   echo '}';
    182   echo 'umask 0022';
    183   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    184   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    185   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    186   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    187   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    188   echo 'schemas="$SDIR/gstreamer-%{gst_minmaj}.schemas"';
    189   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    190 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    191 
    192 %files
    193 %defattr (-, root, bin)
    194 %dir %attr (0755, root, bin) %{_bindir}
    195 %{_bindir}/gst*
    196 %dir %attr (0755, root, bin) %{_libdir}
    197 %{_libdir}/libgst*.so*
    198 %{_libdir}/gstreamer-%{gst_minmaj}/lib*.so*
    199 %{_libdir}/gstreamer-%{gst_minmaj}/tools
    200 %dir %attr (0755, root, sys) %{_datadir}
    201 %dir %attr(0755, root, bin) %{_mandir}
    202 %dir %attr(0755, root, bin) %{_mandir}/man1
    203 %dir %attr(0755, root, bin) %{_mandir}/man5
    204 %{_mandir}/man1/gst*
    205 %{_mandir}/man5/*
    206 
    207 %files root
    208 %defattr (-, root, sys)
    209 %attr (0755, root, sys) %dir %{_sysconfdir}
    210 %{_sysconfdir}/gconf/schemas/gstreamer-%{gst_minmaj}.schemas
    211 
    212 %files devel
    213 %defattr (-, root, bin)
    214 %dir %attr (0755, root, bin) %{_libdir}
    215 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    216 %{_libdir}/pkgconfig/*
    217 %dir %attr (0755, root, bin) %{_includedir}
    218 %{_includedir}/gstreamer-%{gst_minmaj}/gst
    219 %dir %attr (0755, root, sys) %{_datadir}
    220 %dir %attr (0755, root, other) %{_datadir}/aclocal
    221 %{_datadir}/aclocal/*
    222 %if %{!?_without_gtk_doc:1}%{?_without_gtk_doc:0}
    223 %{_datadir}/gtk-doc
    224 %endif
    225 %dir %attr(0755, root, bin) %{_mandir}
    226 %dir %attr(0755, root, bin) %{_mandir}/man3
    227 %{_mandir}/man3/*
    228 
    229 %if %build_l10n
    230 %files l10n
    231 %defattr (-, root, bin)
    232 %dir %attr (0755, root, sys) %{_datadir}
    233 %attr (-, root, other) %{_datadir}/locale
    234 %endif
    235 
    236 %changelog
    237 * Wed Jun 18 2008 - damien.carbery@sun.com
    238 - Add Build/Requires SUNWlibsoup/-devel after check-deps.pl run.
    239 * Wed May 07 2008 - damien.carbery@sun.com
    240 - Remove PERL5LIB setting as it is not necessary.
    241 * Tue Apr 01 2008 - brian.cameron@sun.com
    242 - Add SUNW_Copyright.
    243 * Thu Jan  3 2008 - laca@sun.com
    244 - use gconf-install.script instead of an inline script
    245 * Fri Sep 28 2007 - laca@sun.com
    246 - delete SUNWxwrtl dep
    247 * Thu Aug 02 2007 - damien.carbery@sun.com
    248 - Add -lresolv to LDFLAGS for gst-plugins-base for hstrerror function.
    249 * Thu Aug 02 2007 - damien.carbery@sun.com
    250 - Delete gtk-doc files in %install when built using --without-gtk-doc. The root
    251   cause is in the gst/gst-plugins modules but this fix works for now.
    252 * Tue Jun 26 2007 - irene.huang@sun.com
    253 - remove libcdio as dependency
    254 * Fri Oct 20 2006 - damien.carbery@sun.com
    255 - Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51.
    256 * Mon Sep 18 2006 - Brian.Cameron@sun.com
    257 - Add SUNWhalh BuildRequires.
    258 * Mon Sep 04 2006 - Matt.Keenan@sun.com
    259 - New Manpage tarball
    260 * Thu Aug 24 2006 - brian.cameron@sun.com
    261 - Remove pointless libgstgetbits.3, libgstdataprotocol.3 manpage and move
    262   libgstreamer-0.8.3 manpage to libgstreamer-0.10.3.
    263 * Tue Aug 22 2006 - brian.cameron@sun.com
    264 - Remove gst-md5sum man page since this is no longer a part of GStreamer.
    265 * Mon Aug 14 2006 - damien.carbery@sun.com
    266 - Add Build/Requires SUNWhal after check-deps.pl run.
    267 * Fri Jul 14 2006 - laca@sun.com
    268 - update %post/%postun/etc scripts to support diskless client setup,
    269   part of 6448317
    270 * Thu Jun 29 2006 - laca@sun.com
    271 - update postrun scripts
    272 * Fri Jun 23 2006 - christopher.hanna@sun.com
    273 - Removed all of the 0.8 version manpages and the following
    274   manpages which are no longer needed:
    275   gst-complete, gst-compprep, gst-launch-ext, gst-register
    276 * Wed Jun 14 2006 - brian.cameron@sun.com
    277 - Changes from bumping to new versions of modules.
    278 * Sun Jun 11 2006 - laca@sun.com
    279 - change group from other to bin/sys
    280 * Thu Jun  1 2006 - laca@sun.com
    281 - use post/preun scripts to install schemas into the merged gconf files
    282 * Wed May 10 2006 - laca@sun.com
    283 - merge -share pkg(s) into the base pkg(s)
    284 - add the versioned binaries back in %{_libdir}/gstreamer-0.10/tools
    285   otherwise gnome-media (SUNWgnome-media-apps) fails
    286 * Tue Mar 28 2006 - brian.cameron@sun.com
    287 - Added libcdio dependency.
    288 * Mon Feb 20 2006 - damien.carbery@sun.com
    289 - Complete update of Build/Requires after running check-deps.pl script.
    290 * Fri Feb 17 2006 - damien.carbery@sun.com
    291 - Update Build/Requires after running check-deps.pl script.
    292 * Tue Jan 24 2006 - damien.carbery@sun.com
    293 - Add Build/Requires SUNWliboil/-devel as required by liboil.
    294 * Fri Jan 19 2006 - brian.cameron@sun.com
    295 - Bump to GStreamer 0.10.
    296 * Tue Nov 29 2005 - laca@sun.com
    297 - remove javahelp stuff
    298 * Mon Nov 07 2005 - brian.cameron@sun.com
    299 - Fix spec file so it builds xvimagesink.  This requires adding 
    300   /usr/X11/lib to LDFLAGS and /usr/X11/include to CFLAGS when building
    301   gst-plugins.  xvimagesink is faster than ximagesink since it uses
    302   the XVideo Xserver extension, so its nice to have.  This only works
    303   when using the Xorg Xserver, so users who are using Xsun will need
    304   to continue using the ximagesink plugin for video output.
    305 * Tue Sep 27 2005 - laca@sun.com
    306 - add python build dep for gstreamer-plugins gtk docs (mangle-tmpl.py)
    307 * Mon Sep 12 2005 - laca@sun.com
    308 - remove unpackaged files
    309 * Fri Aug 12 2005 - balamurali.viswanathan@wipro.com
    310 - Add dependency of SUNWflac
    311 * Tue Jul 26 2005 - balamurali.viswanathan@wipro.com
    312 - Add dependency of SUNWspeex and SUNWlibtheora
    313 * Mon Jul 11 2005 - balamurali.viswanathan@wipro.com
    314 - Add BuildRequires: SUNWmusicbrainz
    315 * Wed Jun 01 2005 - brian.cameron@sun.com
    316 - remove nautilus-media since it no longer works with nautilus.  Nautilus
    317   no longer supports extensions like nautilus-media.  Remove gnome-media
    318   since it needs to be split into a separate package.  This is because
    319   gnome-panel requires gstreamer and gnome-media requires gnome-panel.
    320 * Tue Feb 22 2005 - brian.cameron@sun.com
    321 - moved l10n package to last built since it tends to fail on re-install.
    322 * Fri Jan 28 2005 - matt.keenan@sun.com
    323 - #6222302 : Remove gstreamer properties from yelp TOC
    324 * Tue Nov 23 2004 - damien.carbery@sun.com
    325 - Fix 6197917: Restore files 'lost' when SUNWgnome-media packages reorganised
    326   to restore 'lost' Gnome 2.0 packages. Reviewed by Laca.
    327 * Fri Nov 12 2004 - laca@sun.com
    328 - Use the original GNOME 2.0 packaging structure: add SUNWgnome-cd*
    329   SUNWgnome-freedb-libs* and SUNWgnome-sound-recorder*
    330 * Thu Oct 21 2004 - laca@sun.com
    331 - change registry.xml to volatile, fixes 6180895
    332 * Thu Oct 14 2004 - brian.cameron@sun.com
    333 - Added gst-launch-ext* man pages.
    334 * Wed Oct 06 2004 - vinay.mandyakoppal@wipro.com
    335 - Added code to install javahelp documents.
    336   Fixes bugs #5096655,5096658.
    337 * Mon Oct 04 2004 - matt.keenan@sun.com
    338 - Added javahelp files for share package #5108690
    339 * Sat Oct 02 2004 - laca@sun.com
    340 - added %pkgbuild_postprocess
    341 * Mon Sep 27 2004 - arvind.samptur@wipro.com
    342 - Get GNOME_Media_CDDBSlave2.server to be installed
    343 * Fri Sep 24 2004 - brian.cameron
    344 - Added %post section so that programs that use GStreamer will work
    345   properly.  The timestamp of the registry file must be later than
    346   the libraries for programs to work.
    347 * Thu Sep 09 2004 - matt.keenan@sun.com
    348 - Added a heap of manpages
    349 * Thu Aug 26 2004 - Brian.Cameron@sun.com
    350 - Now package gtk-docs.
    351 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com
    352 - Added l10n javahelp entry in l10n pkg files
    353 * Tue Aug 24 2004 - laca@sun.com
    354 - move l10n files to the l10n package
    355 * Fri Aug 20 2004  brian.cameron@sun.com
    356 - No longer package Nautilus_View server files since they aren't being 
    357   installed by the nautilus-media.spec file.
    358 * Mon Aug 16 2004  shirley.woo (at] sun.com
    359 - change .../sman1/*.1 permissions to 0755 for Solaris integration error
    360 * Thu Jul 29 2004  brian.cameron (at] sun.com
    361 - Fixed setting of PKG_CONFIG_PATH and CPPFLAGS so that they work when
    362   gstreamer and gst-plugins have different version #'s.
    363 * Sat Jun 26 2004  shirley.woo@sun.com
    364 - Changed install location to /usr/...
    365 * Mon Jun 07 2004 - brian.cameron@sun.com
    366 - Added ogg/vorbis dependancy.  Now including registry.xml.
    367 * Wed Jun 02 2004 - brian.cameron@sun.com
    368 - Removed SUNWgnome-pilot-link dependancy which was wrong.
    369 * Wed Jun  2 2004 - takao.fujiwara@sun.com
    370 - Added %{_datadir}/locale to install l10n messages
    371 * Wed May 26 2004 - brian.cameron@sun.com
    372 - Fixed CFLAGS so that Kpic flag gets properly recognized, allowing
    373   gstreamer to actually work in addition to just compiling.
    374 * Tue May 25 2004 - brian.cameron@sun.com
    375 - Updated dependencies to include SUNWgnome-file-mgr.
    376 * Wed May 12 2004 - brian.cameron@sun.com
    377 - Add nautilus-media.  Made changes so that this works with 
    378   gstreamer and gst-plugins 0.8.1.
    379 * Sun Mar 28 2004 - brian.cameron@sun.com
    380 - Corrected PKG_CONFIG_PATH so it will find gst-plugins properly.
    381 * Fri Mar 26 2004 - laca@sun.com
    382 - buildrequires CBEbison instead of SUNWbison
    383 * Wed Mar 24 2004 - brian.cameron@sun.com
    384 - Added SGML man page integration
    385 * Thu Feb 26 2004 - niall.power@sun.com
    386 - Initial spec-file created
    387