gnome-mount.spec revision 15940
10139N/A#
10139N/A# spec file for package gnome-volume-manager
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
15395N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: stephen
10139N/AName: gnome-mount
10139N/ALicense: GPL
10139N/AGroup: System/GUI/GNOME
10139N/A# Note: HAL may need to be bumped before gnome-mount.
15395N/AVersion: 0.4
10139N/ARelease: 1
17176N/ADistribution: Java Desktop System
17176N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Programs for mounting, unmounting and ejecting storage devices.
10139N/ASource: http://people.freedesktop.org/~david/dist/gnome-mount-%{version}.tar.gz
10139N/A%if %build_l10n
10164N/ASource1: l10n-configure.sh
10164N/A%endif
10164N/A#owner:yippi date:2006-06-20 type:bug bugzilla:400499
10164N/APatch1: gnome-mount-01-sun-patch.diff
17037N/A#owner:yippi date:2009-02-20 type:bug bugster:6790821 state:upstream
10139N/APatch2: gnome-mount-02-fixdelay.diff
10139N/AURL: www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}
10398N/AAutoreqprov: on
10139N/APrereq: /usr/sbin/groupadd
10139N/APrereq: /usr/sbin/useradd
10139N/APrereq: /sbin/nologin
10139N/APrereq: sed
10139N/APrereq: coreutils
10139N/A
10139N/A%description
10139N/AHandles mount/umount/eject by using HAL.
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10159N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
15395N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Aexport CFLAGS="$RPM_OPT_FLAGS"
10139N/Aautoheader
10139N/Aautoconf
10139N/Alibtoolize --force
10139N/Aglib-gettextize -c -f
10139N/Aintltoolize --copy --force --automake
10139N/A
17037N/A%if %build_l10n
17037N/Abash -x %SOURCE1 --enable-copyright
15395N/A%endif
15395N/A
15361N/Aaclocal $ACLOCAL_FLAGS
15361N/Aautoconf
10159N/Aautoheader
10159N/Aautomake -a -c -f
10139N/A%ifos solaris
10139N/AENABLE_MULTIUSER=--enable-multiuser=no
10139N/A%else
10139N/AENABLE_MULTIUSER=--enable-multiuser=yes
10139N/A%endif
10139N/A
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --localstatedir=/var/lib \
10139N/A --mandir=%{_mandir} \
--libexecdir=%{_libexecdir} $ENABLE_MULTIUSER
make -j $CPUS
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
cd $RPM_BUILD_ROOT%{_bindir}
# Build symlinks as relative instead of full path.
#
rm -rf gnome-umount
rm -fr gnome-eject
ln -s gnome-mount gnome-umount
ln -s gnome-mount gnome-eject
%clean
rm -rf $RPM_BUILD_ROOT
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="gnome-volume-manager.schemas"
for S in $SCHEMAS; do
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
done
%files
%config %attr(-,gdm,gdm) %{_sysconfdir}/X11/gdm
%config %attr(-,root,root) %{_sysconfdir}/X11/dm
%{_datadir}/locale/*/LC_MESSAGES/gdm*.mo
%{_sbindir}/*
%{_bindir}/*
%{_libdir}/gtk-2.0/modules/*.so
%{_libexecdir}/*
%{_datadir}/gdm
%{_datadir}/applications/*
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/faces/*.jpg
%{_datadir}/pixmaps/faces/*.png
%{_datadir}/icons
%{_datadir}/gnome/help/*
%{_datadir}/xsessions/*
%{_mandir}/man1/*
%{_datadir}/omf/*
%attr(-,gdm,gdm) /var/lib/gdm
%config /etc/pam.d/*
%config /etc/security/*
%changelog
* Fri Feb 20 2009 - brian.cameron@sun.com
- Add patch gnome-mount-02-fixdelay.diff. This patch is from upstream, and
helps to ensure that gnome-mount waits for mount operations to complete.
* Tue Jun 20 2006 - <brian.cameron@sun.com>
- Bump to 0.4 and add patch needed for Solaris support
* Wed May 03 2006 - <brian.cameron@sun.com>
- Created