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-mount 10 License: GPL 11 Group: System/GUI/GNOME 12 Version: 0.4 13 Release: 1 14 Distribution: Java Desktop System 15 Vendor: Sun Microsystems, Inc. 16 Summary: Programs for mounting, unmounting and ejecting storage devices. 17 Source: http://people.freedesktop.org/~david/dist/gnome-mount-%{version}.tar.gz 18 #owner:yippi date:2006-06-20 type:bug 19 Patch1: gnome-mount-01-sun-patch.diff 20 URL: www.gnome.org 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 Docdir: %{_defaultdocdir} 23 Autoreqprov: on 24 Prereq: /usr/sbin/groupadd 25 Prereq: /usr/sbin/useradd 26 Prereq: /sbin/nologin 27 Prereq: sed 28 Prereq: coreutils 29 30 %description 31 Handles mount/umount/eject by using HAL. 32 33 %prep 34 %setup -q 35 %patch1 -p1 36 37 %build 38 %ifos linux 39 if [ -x /usr/bin/getconf ]; then 40 CPUS=`getconf _NPROCESSORS_ONLN` 41 fi 42 %else 43 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 44 %endif 45 if test "x$CPUS" = "x" -o $CPUS = 0; then 46 CPUS=1 47 fi 48 49 export CFLAGS="$RPM_OPT_FLAGS" 50 autoheader 51 autoconf 52 libtoolize --force 53 glib-gettextize -c -f 54 intltoolize --copy --force --automake 55 aclocal $ACLOCAL_FLAGS 56 autoconf 57 autoheader 58 automake -a -c -f 59 %ifos solaris 60 ENABLE_MULTIUSER=--enable-multiuser=no 61 %else 62 ENABLE_MULTIUSER=--enable-multiuser=yes 63 %endif 64 65 ./configure \ 66 --prefix=%{_prefix} \ 67 --sysconfdir=%{_sysconfdir} \ 68 --localstatedir=/var/lib \ 69 --mandir=%{_mandir} \ 70 --libexecdir=%{_libexecdir} $ENABLE_MULTIUSER 71 make -j $CPUS 72 73 %install 74 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 75 make install DESTDIR=$RPM_BUILD_ROOT 76 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 77 78 cd $RPM_BUILD_ROOT%{_bindir} 79 80 # Build symlinks as relative instead of full path. 81 # 82 rm -rf gnome-umount 83 rm -fr gnome-eject 84 ln -s gnome-mount gnome-umount 85 ln -s gnome-mount gnome-eject 86 87 %clean 88 rm -rf $RPM_BUILD_ROOT 89 90 %post 91 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 92 SCHEMAS="gnome-volume-manager.schemas" 93 for S in $SCHEMAS; do 94 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 95 done 96 97 %files 98 %config %attr(-,gdm,gdm) %{_sysconfdir}/X11/gdm 99 %config %attr(-,root,root) %{_sysconfdir}/X11/dm 100 %{_datadir}/locale/*/LC_MESSAGES/gdm*.mo 101 %{_sbindir}/* 102 %{_bindir}/* 103 %{_libdir}/gtk-2.0/modules/*.so 104 %{_libexecdir}/* 105 %{_datadir}/gdm 106 %{_datadir}/applications/* 107 %{_datadir}/pixmaps/*.png 108 %{_datadir}/pixmaps/faces/*.jpg 109 %{_datadir}/pixmaps/faces/*.png 110 %{_datadir}/icons 111 %{_datadir}/gnome/help/* 112 %{_datadir}/xsessions/* 113 %{_mandir}/man1/* 114 %{_datadir}/omf/* 115 %attr(-,gdm,gdm) /var/lib/gdm 116 %config /etc/pam.d/* 117 %config /etc/security/* 118 119 %changelog 120 * Tue Jun 20 2006 - <brian.cameron@sun.com> 121 - Bump to 0.4 and add patch needed for Solaris support 122 * Wed May 03 2006 - <brian.cameron@sun.com> 123 - Created 124