Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-volume-manager
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner:stephen
      9 Name:         gnome-volume-manager
     10 License:      GPL
     11 Group:        System/GUI/GNOME
     12 Version:      2.15.0
     13 Release:      2
     14 Distribution: Java Desktop System
     15 Vendor:       Sun Microsystems, Inc.
     16 Summary:      A Volume Manager for GNOME
     17 Source:       http://ftp.gnome.org/pub/GNOME/sources/gnome-volume-manager/2.15/gnome-volume-manager-%{version}.tar.bz2
     18 #owner:yippi date:2006-05-01 type:bug
     19 Patch1:       gnome-volume-manager-01-fixcompile.diff
     20 #owner:Irene date:2006-07-04 type:feature bugster:6849183,6849189,6483288
     21 #FIXME: what is Irene's opensolaris id?
     22 Patch2:       gnome-volume-manager-02-autoplay.diff
     23 #owner:yippi date:2006-07-26 type:bug
     24 Patch3:       gnome-volume-manager-03-libexec.diff
     25 #owner:yippi date:2006-09-19 type:bug
     26 Patch4:       gnome-volume-manager-04-fixlocaluser.diff
     27 #owner:yippi date:2006-09-26 type:bug
     28 Patch5:       gnome-volume-manager-05-claimbranch.diff
     29 #owner:gman date:2006-10-30 type:bug bugzilla:340485
     30 Patch6:       gnome-volume-manager-06-no-linux-msg.diff
     31 URL:          www.gnome.org
     32 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     33 Docdir:       %{_defaultdocdir}
     34 Autoreqprov:  on
     35 Prereq:       /usr/sbin/groupadd
     36 Prereq:       /usr/sbin/useradd
     37 Prereq:       /sbin/nologin
     38 Prereq:       sed
     39 Prereq:       coreutils
     40 
     41 %description
     42 GNOME daemon that acts as a policy agent on top of the kernel, udev, d-bus, and HAL.  It supports automount of new media and hot-plugged devices, autorun, autoplay for CD's and DVD's, and automatic camera management.
     43 
     44 %prep
     45 %setup -q
     46 %patch1 -p1
     47 %patch2 -p1
     48 %patch3 -p1
     49 %patch4 -p1
     50 %patch5 -p1
     51 %patch6 -p1
     52 
     53 %build
     54 %ifos linux
     55 if [ -x /usr/bin/getconf ]; then
     56   CPUS=`getconf _NPROCESSORS_ONLN`
     57 fi
     58 %else
     59   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     60 %endif
     61 if test "x$CPUS" = "x" -o $CPUS = 0; then
     62   CPUS=1
     63 fi
     64 
     65 export CFLAGS="$RPM_OPT_FLAGS"
     66 autoheader
     67 autoconf
     68 libtoolize --force
     69 glib-gettextize -c -f
     70 intltoolize --copy --force --automake
     71 aclocal $ACLOCAL_FLAGS
     72 autoconf
     73 autoheader
     74 automake -a -c -f
     75 %ifos solaris
     76 ENABLE_MULTIUSER=--enable-multiuser=no
     77 %else
     78 ENABLE_MULTIUSER=--enable-multiuser=yes
     79 %endif 
     80 
     81 ./configure \
     82 	--prefix=%{_prefix} \
     83 	--sysconfdir=%{_sysconfdir} \
     84 	--localstatedir=/var/lib \
     85 	--mandir=%{_mandir} \
     86 	--libexecdir=%{_libexecdir} $ENABLE_MULTIUSER
     87 make -j $CPUS
     88 
     89 %install
     90 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
     91 make install DESTDIR=$RPM_BUILD_ROOT
     92 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
     93 
     94 %clean
     95 rm -rf $RPM_BUILD_ROOT
     96 
     97 %post
     98 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     99 SCHEMAS="gnome-volume-manager.schemas"
    100 for S in $SCHEMAS; do
    101         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    102 done
    103 
    104 %files
    105 %config %attr(-,gdm,gdm) %{_sysconfdir}/X11/gdm
    106 %config %attr(-,root,root) %{_sysconfdir}/X11/dm
    107 %{_datadir}/locale/*/LC_MESSAGES/gdm*.mo
    108 %{_sbindir}/*
    109 %{_bindir}/*
    110 %{_libdir}/gtk-2.0/modules/*.so
    111 %{_libexecdir}/*
    112 %{_datadir}/gdm
    113 %{_datadir}/applications/*
    114 %{_datadir}/pixmaps/*.png
    115 %{_datadir}/pixmaps/faces/*.jpg
    116 %{_datadir}/pixmaps/faces/*.png
    117 %{_datadir}/icons
    118 %{_datadir}/gnome/help/*
    119 %{_datadir}/xsessions/*
    120 %{_mandir}/man1/*
    121 %{_datadir}/omf/*
    122 %attr(-,gdm,gdm) /var/lib/gdm
    123 %config /etc/pam.d/*
    124 %config /etc/security/*
    125 
    126 %changelog
    127 * Wed Nov 01 2006 - irene.huang@sun.com
    128 - merge 02-autoplay.diff and 06-autoplay.diff to
    129   02-autoplay.diff, move 07-no-linux-msg.diff to 
    130   06-no-linux-msg.diff
    131 * Mon Oct 30 2006 - glynn.foster@sun.com
    132 - No linux msg, it only makes things embarassing to everyone.
    133   Filed as part of bugzilla #340485.
    134 * Thu Oct 19 2006 - irene.huang@sun.com
    135 - Add patch gnome-volume-manager-06-autoplay.diff to change
    136   default gconf setting so that totem will not automatically
    137   startup offering to play a VCD/DVD when one is inserted.
    138 * Sun Sep 24 2006 - artem.kachitchkin@sun.com
    139 - Add a call to "ClaimBranch" HAL method to avoid conflicts
    140   with rmvolmgr, the non-gui volume manager.
    141 * Tue Sep 19 2006 - brian.cameron@sun.com
    142 - Fix problem that was causing gnome-volume-manager to just 
    143   exit on startup.
    144 * Tue Aug 01 2006 - damien.carbery@sun.com
    145 - Bump to 2.15.0.
    146 * Tue Jul 25 2006 - <brian.cameron@sun.com>
    147 - Move gnome-volume-manager to libexec.
    148 * Fri Jul 14 2006 - <brian.cameron@sunc.om>
    149 - Add patch to use sound-juicer as autoplay for CD's.
    150 * Tue May 02 2006 - <brian.cameron (at] sun.com>
    151 - Fix gconf stuff.
    152 * Mon May 01 2006 - <brian.cameron (at] sun.com>
    153 - Created
    154 
    155