1 # 2 # spec file for packages SUNWgnome-media, SUNWgnome-sound-recorder 3 # 4 # includes module(s): gnome-media 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 %use gmedia = gnome-media.spec 15 16 Name: SUNWgnome-media-apps 17 Summary: GNOME media components 18 Version: %{default_pkg_version} 19 Source: %{name}-manpages-0.1.tar.gz 20 SUNW_BaseDir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 24 %include default-depend.inc 25 BuildRequires: SUNWgnome-audio-devel 26 BuildRequires: SUNWgnome-libs-devel 27 BuildRequires: SUNWgnome-base-libs-devel 28 BuildRequires: SUNWgnome-media-devel 29 BuildRequires: CBEbison 30 BuildRequires: SUNWPython 31 BuildRequires: SUNWgnome-cd-burner-devel 32 BuildRequires: SUNWgnome-component-devel 33 BuildRequires: SUNWgnome-config-devel 34 BuildRequires: SUNWgnome-vfs-devel 35 Requires: SUNWgnome-libs 36 Requires: SUNWgnome-base-libs 37 Requires: SUNWgnome-media 38 Requires: SUNWgnome-media-apps-root 39 Requires: SUNWgnome-cd-burner 40 Requires: SUNWgnome-vfs 41 Requires: SUNWgnome-config 42 Requires: SUNWlibms 43 Requires: SUNWpostrun 44 45 %package root 46 Summary: %{summary} - / filesystem 47 SUNW_BaseDir: / 48 %include default-depend.inc 49 Requires: SUNWpostrun-root 50 Requires: SUNWgnome-config 51 52 %if %build_l10n 53 %package l10n 54 Summary: %{summary} - l10n files 55 SUNW_BaseDir: %{_basedir} 56 %include default-depend.inc 57 Requires: %{name} 58 %endif 59 60 %package devel 61 Summary: %{summary} - development files 62 SUNW_BaseDir: %{_basedir} 63 %include default-depend.inc 64 65 %package -n SUNWgnome-sound-recorder 66 Summary: GNOME sound recording utilities 67 SUNW_BaseDir: %{_basedir} 68 %include default-depend.inc 69 Requires: SUNWgnome-sound-recorder-root 70 Requires: SUNWgnome-libs 71 Requires: SUNWgnome-base-libs 72 Requires: SUNWgnome-audio 73 Requires: SUNWgnome-config 74 Requires: SUNWgnome-media 75 Requires: SUNWgnome-media-apps 76 Requires: SUNWgnome-vfs 77 Requires: SUNWpostrun 78 79 %package -n SUNWgnome-sound-recorder-root 80 Summary: GNOME sound recording utilities - / filesystem 81 SUNW_BaseDir: / 82 %include default-depend.inc 83 Requires: SUNWpostrun-root 84 Requires: SUNWgnome-config 85 86 %prep 87 rm -rf %name-%version 88 mkdir %name-%version 89 %gmedia.prep -d %name-%version 90 cd %{_builddir}/%name-%version 91 gzcat %SOURCE0 | tar xf - 92 93 %build 94 # Note that including __STDC_VERSION n CFLAGS for gnome-media breaks the S9 95 # build for gstreamer, gst-plugins, and gnome-media, so not including for them. 96 # 97 export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP" 98 export RPM_OPT_FLAGS="$CFLAGS" 99 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 100 export LDFLAGS="%_ldflags" 101 102 %gmedia.build -d %name-%version 103 104 %install 105 rm -rf $RPM_BUILD_ROOT 106 %gmedia.install -d %name-%version 107 108 rm -rf $RPM_BUILD_ROOT%{_mandir} 109 cd %{_builddir}/%name-%version/sun-manpages 110 make install DESTDIR=$RPM_BUILD_ROOT 111 112 chmod 755 $RPM_BUILD_ROOT%{_mandir}/man1/*.1 113 114 # Remove .la and .a file as we don't ship them. 115 rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/lib*.la 116 rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/lib*.a 117 118 %if %build_l10n 119 %else 120 # REMOVE l10n FILES 121 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 122 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 123 rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 124 rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf 125 %endif 126 127 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 128 129 %clean 130 rm -rf $RPM_BUILD_ROOT 131 132 %post -n SUNWgnome-sound-recorder 133 %include desktop-database-install.script 134 %include scrollkeeper-update.script 135 %include icon-cache.script 136 137 %postun -n SUNWgnome-sound-recorder 138 test -x $BASEDIR/lib/postrun || exit 0 139 %include desktop-database-uninstall.script 140 %include scrollkeeper-update.script 141 %include icon-cache.script 142 143 %post -n SUNWgnome-sound-recorder-root 144 %include gconf-install.script 145 146 %preun -n SUNWgnome-sound-recorder-root 147 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 148 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 149 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 150 echo ' exit 0'; 151 echo '}'; 152 echo 'umask 0022'; 153 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 154 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 155 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 156 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 157 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 158 echo 'schemas="$SDIR/gnome-sound-recorder.schemas"'; 159 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 160 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 161 162 %post 163 %include desktop-database-install.script 164 %include scrollkeeper-update.script 165 %include icon-cache.script 166 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 167 echo '/usr/bin/scrollkeeper-update' 168 ) | $BASEDIR/lib/postrun -b -u -c JDS 169 170 %postun 171 test -x $BASEDIR/lib/postrun || exit 0 172 %include desktop-database-uninstall.script 173 %include scrollkeeper-update.script 174 %include icon-cache.script 175 176 %post root 177 %include gconf-install.script 178 179 %preun root 180 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 181 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 182 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 183 echo ' exit 0'; 184 echo '}'; 185 echo 'umask 0022'; 186 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 187 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 188 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 189 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 190 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 191 echo 'schemas="$SDIR/gnome-audio-profiles.schemas'; 192 echo ' $SDIR/gnome-volume-control.schemas"'; 193 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 194 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 195 196 %files 197 %defattr (-, root, bin) 198 %dir %attr (0755, root, bin) %{_bindir} 199 %{_bindir}/gnome-audio-profiles-properties 200 %{_bindir}/gnome-volume-control 201 %{_bindir}/gstreamer-properties 202 %dir %attr (0755, root, bin) %{_libdir} 203 %{_libdir}/libgnome-media*.so* 204 %{_libdir}/libglade/2.0/lib*.so* 205 %dir %attr (0755, root, sys) %{_datadir} 206 %dir %attr (0755, root, other) %{_datadir}/applications 207 %{_datadir}/applications/gstreamer-properties.desktop 208 %{_datadir}/applications/gnome-volume-control.desktop 209 %dir %attr (0755, root, other) %{_datadir}/gnome 210 %{_datadir}/gnome/help/gnome-volume-control/C 211 %{_datadir}/gnome/help/gstreamer-properties/C 212 %{_datadir}/gnome-media 213 %{_datadir}/gstreamer-properties 214 %dir %attr (-, root, other) %{_datadir}/icons 215 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 216 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 217 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/devices 218 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/status 219 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 220 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 221 %{_datadir}/icons/hicolor/16x16/devices/gvc-3d-sound.png 222 %{_datadir}/icons/hicolor/16x16/devices/gvc-headphones.png 223 %{_datadir}/icons/hicolor/16x16/devices/gvc-line-in.png 224 %{_datadir}/icons/hicolor/16x16/devices/gvc-tone.png 225 %{_datadir}/icons/hicolor/16x16/status/audio-input-microphone-muted.png 226 %{_datadir}/icons/hicolor/48x48/apps/gstreamer-properties.png 227 %{_datadir}/omf/*/gstreamer-properties-C.omf 228 %{_datadir}/omf/gnome-sound-recorder/gnome-sound-recorder-C.omf 229 %{_datadir}/omf/gnome-volume-control/gnome-volume-control-C.omf 230 %dir %attr(0755, root, bin) %{_mandir} 231 %dir %attr(0755, root, bin) %{_mandir}/man1 232 %{_mandir}/man1/gnome-audio-profiles-properties.1 233 %{_mandir}/man1/gnome-volume-control.1 234 %{_mandir}/man1/gst* 235 236 %files -n SUNWgnome-sound-recorder 237 %defattr (-, root, bin) 238 %dir %attr (0755, root, bin) %{_bindir} 239 %{_bindir}/gnome-sound-recorder 240 %dir %attr (0755, root, sys) %{_datadir} 241 %dir %attr (0755, root, other) %{_datadir}/applications 242 %{_datadir}/applications/gnome-sound-recorder.desktop 243 %dir %attr (0755, root, other) %{_datadir}/gnome 244 %{_datadir}/gnome/help/gnome-sound-recorder/C 245 %{_datadir}/gnome-sound-recorder 246 %dir %attr (-, root, other) %{_datadir}/icons 247 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 248 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 249 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 250 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 251 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 252 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 253 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 254 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 255 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 256 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 257 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 258 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 259 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 260 %{_datadir}/icons/hicolor/16x16/apps/gnome-sound-recorder.png 261 %{_datadir}/icons/hicolor/22x22/apps/gnome-sound-recorder.png 262 %{_datadir}/icons/hicolor/24x24/apps/gnome-sound-recorder.png 263 %{_datadir}/icons/hicolor/32x32/apps/gnome-sound-recorder.png 264 %{_datadir}/icons/hicolor/48x48/apps/gnome-sound-recorder.png 265 %{_datadir}/icons/hicolor/scalable/apps/gnome-sound-recorder.svg 266 %dir %attr(0755, root, bin) %{_mandir} 267 %dir %attr(0755, root, bin) %{_mandir}/man1 268 %{_mandir}/man1/gnome-sound-recorder.1 269 270 %if %build_l10n 271 %files l10n 272 %defattr (-, root, bin) 273 %dir %attr (0755, root, sys) %{_datadir} 274 %dir %attr (0755, root, other) %{_datadir}/gnome 275 %attr (-, root, other) %{_datadir}/locale 276 %{_datadir}/gnome/help/*/[a-z]* 277 %{_datadir}/omf/*/*-[a-z][a-z].omf 278 #FIXME: Not in 2.22.0:%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf 279 %endif 280 281 %files root 282 %defattr (-, root, sys) 283 %attr (0755, root, sys) %dir %{_sysconfdir} 284 %{_sysconfdir}/gconf/schemas/gnome-audio-profiles.schemas 285 %{_sysconfdir}/gconf/schemas/gnome-volume-control.schemas 286 287 %files -n SUNWgnome-sound-recorder-root 288 %defattr (-, root, sys) 289 %attr (0755, root, sys) %dir %{_sysconfdir} 290 %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas 291 292 %files devel 293 %defattr (-, root, bin) 294 %dir %attr (0755, root, bin) %{_libdir} 295 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 296 %{_libdir}/pkgconfig/* 297 %dir %attr (0755, root, bin) %{_includedir} 298 %{_includedir}/gnome-media/profiles 299 %dir %attr (0755, root, sys) %{_datadir} 300 301 %changelog 302 * Tue Jun 03 2008 - brian.cameron@sun.com 303 - Packaging changes related to bumping to 2.23. No longer ship 304 cddb code or vumeter since these are no longer supported upstream. 305 Remove support for building with gnome-cd since this is also 306 no longer supported upstream. Removes SUNWgnome-freedb-libs/-root. 307 * Wed May 07 2008 - damien.carbery@sun.com 308 - Remove PERL5LIB setting as it is not necessary. 309 * Wed Apr 02 2008 - brian.cameron@sun.com 310 - Add SUNW_Copyright. 311 * Wed Mar 12 2008 - damien.carbery@sun.com 312 - Update %files for new tarball. 313 * Thu Jan 3 2008 - laca@sun.com 314 - use gconf-install.script instead of an inline script 315 * Mon Oct 8 2007 - damien.carbery@sun.com 316 - Remove some icons from base package because they are already in 317 SUNWgnome-sound-recorder. Fixes 6613798. 318 * Wed Sep 19 2007 - damien.carbery@sun.com 319 - Update %files for 2.20.0 tarball - remove omf files and move png files. 320 * Wed Sep 05 2007 - damien.carbery@sun.com 321 - Remove references to SUNWgnome-a11y-base-libs as its contents have been 322 moved to SUNWgnome-base-libs. 323 * Wed Jan 24 2007 - brian.cameron@sun.com 324 - Change %with_cd to %build_with_gnome_cd with suggestions from Laca. 325 * Tue Jan 23 2007 - brian.cameron@sun.com 326 - Add %with_cd logic so it is easier to build with gnome-cd if desired. 327 * Mon Oct 16 2006 - damien.carbery@sun.com 328 - Remove the '-rf' from the 'rm *.la *.a' lines so that any changes to the 329 module source will be seen as a build error and action can be taken. 330 * Mon Sep 04 2006 - Matt.Keenan@sun.com 331 - New Manpage tarball 332 * Mon Aug 21 2006 - damien.carbery@sun.com 333 - Fix l10n package - C locale omf file was in base and l10n package. 334 * Fri Jul 14 2006 - laca@sun.com 335 - update %post/%postun/etc scripts to support diskless client setup, 336 part of 6448317 337 * Thu Jun 29 2006 - laca@sun.com 338 - update postrun scripts 339 * Sun Jun 11 2006 - laca@sun.com 340 - change group from other to bin/sys 341 * Fri Jun 2 2006 - laca@sun.com 342 - use post/preun scripts to install schemas into the merged gconf files 343 * Thu May 04 2006 - laca@sun.com 344 - merge -share pkg(s) into the base pkg(s) 345 * Tue Mar 28 2006 - brian.cameron@sun.com 346 - Removed SUNWgnome-cd, since now using sound-juicer. 347 * Tue Feb 21 2006 - damien.carbery@sun.com 348 - Just a few more dependencies for SUNWgnome-cd. 349 * Mon Feb 20 2006 - damien.carbery@sun.com 350 - Complete update of Build/Requires after running check-deps.pl script. 351 * Fri Feb 17 2006 - damien.carbery@sun.com 352 - Update Build/Requires after running check-deps.pl script. 353 * Fri Jan 20 2006 - brian.cameron@sun.com 354 - Do not package gstreamer gconf files since GStreamer already installs 355 its own. 356 * Sat Dec 3 2005 - laca@sun.com 357 - add %post script that runs update-desktop-database 358 * Tue Nov 29 2005 - laca@sun.com 359 - remove javahelp stuff 360 * Fri Sep 30 2005 - brian.cameron@sun.com 361 - Fix l10n packaging. 362 * Thu Sep 22 2005 - brian.cameron@sun.com 363 - Build gnome-cd again since sound-juicer doesn't build on Solaris. 364 * Wed Sep 21 2005 - brian.cameron (at] sun.com 365 - Fix packaging. 366 * Tue Jul 12 2005 - balamurali.viswanathan (at] wipro.com 367 - Don't build gnome-cd and remove nautilus-cd-burner dependency 368 * Tue Jul 12 2005 - balamurali.viswanathan@wipro.com 369 - Add nautilus-cd-burner dependency 370 * Thu Jul 07 2005 - balamurali.viswanathan@wipro.com 371 - Initial spec-file created 372