9397
|
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 |
#
|
16434
|
8 |
%define owner stephen
|
16427
|
9 |
|
|
10 |
%define OSR 12727:0.x
|
|
11 |
|
9397
|
12 |
Name: gnome-mount
|
|
13 |
License: GPL
|
|
14 |
Group: System/GUI/GNOME
|
9575
|
15 |
# Note: HAL may need to be bumped before gnome-mount.
|
9397
|
16 |
Version: 0.4
|
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17864
|
19 |
Vendor: Other
|
9397
|
20 |
Summary: Programs for mounting, unmounting and ejecting storage devices.
|
|
21 |
Source: http://people.freedesktop.org/~david/dist/gnome-mount-%{version}.tar.gz
|
12031
|
22 |
%if %build_l10n
|
|
23 |
Source1: l10n-configure.sh
|
|
24 |
%endif
|
15677
|
25 |
# This patch addresses two separate Sun-specific bugs which are both
|
|
26 |
# upstream. Note that bugster bug #6790821 is not fully resolved
|
|
27 |
# with the patch. However, backporting some code from upstream did
|
|
28 |
# improve the situation significantly so this patch partially
|
|
29 |
# addresses this bug.
|
15540
|
30 |
#owner:yippi date:2006-06-20 type:bug bugzilla:400499 bugster:6790821 state:upstream
|
9397
|
31 |
Patch1: gnome-mount-01-sun-patch.diff
|
|
32 |
URL: www.gnome.org
|
|
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
34 |
Docdir: %{_defaultdocdir}
|
|
35 |
Autoreqprov: on
|
|
36 |
Prereq: /usr/sbin/groupadd
|
|
37 |
Prereq: /usr/sbin/useradd
|
|
38 |
Prereq: /sbin/nologin
|
|
39 |
Prereq: sed
|
|
40 |
Prereq: coreutils
|
|
41 |
|
|
42 |
%description
|
|
43 |
Handles mount/umount/eject by using HAL.
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q
|
|
47 |
%patch1 -p1
|
|
48 |
|
|
49 |
%build
|
|
50 |
%ifos linux
|
|
51 |
if [ -x /usr/bin/getconf ]; then
|
|
52 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
53 |
fi
|
|
54 |
%else
|
|
55 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
56 |
%endif
|
|
57 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
58 |
CPUS=1
|
|
59 |
fi
|
|
60 |
|
|
61 |
export CFLAGS="$RPM_OPT_FLAGS"
|
|
62 |
autoheader
|
|
63 |
autoconf
|
|
64 |
libtoolize --force
|
|
65 |
glib-gettextize -c -f
|
|
66 |
intltoolize --copy --force --automake
|
12031
|
67 |
|
|
68 |
%if %build_l10n
|
|
69 |
bash -x %SOURCE1 --enable-copyright
|
|
70 |
%endif
|
|
71 |
|
9397
|
72 |
aclocal $ACLOCAL_FLAGS
|
|
73 |
autoconf
|
|
74 |
autoheader
|
|
75 |
automake -a -c -f
|
|
76 |
%ifos solaris
|
|
77 |
ENABLE_MULTIUSER=--enable-multiuser=no
|
|
78 |
%else
|
|
79 |
ENABLE_MULTIUSER=--enable-multiuser=yes
|
|
80 |
%endif
|
|
81 |
|
|
82 |
./configure \
|
|
83 |
--prefix=%{_prefix} \
|
|
84 |
--sysconfdir=%{_sysconfdir} \
|
|
85 |
--localstatedir=/var/lib \
|
|
86 |
--mandir=%{_mandir} \
|
|
87 |
--libexecdir=%{_libexecdir} $ENABLE_MULTIUSER
|
|
88 |
make -j $CPUS
|
|
89 |
|
|
90 |
%install
|
|
91 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
92 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
93 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
94 |
|
|
95 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
96 |
|
|
97 |
# Build symlinks as relative instead of full path.
|
|
98 |
#
|
|
99 |
rm -rf gnome-umount
|
|
100 |
rm -fr gnome-eject
|
|
101 |
ln -s gnome-mount gnome-umount
|
|
102 |
ln -s gnome-mount gnome-eject
|
|
103 |
|
|
104 |
%clean
|
|
105 |
rm -rf $RPM_BUILD_ROOT
|
|
106 |
|
|
107 |
%post
|
|
108 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
109 |
SCHEMAS="gnome-volume-manager.schemas"
|
|
110 |
for S in $SCHEMAS; do
|
|
111 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
|
|
112 |
done
|
|
113 |
|
|
114 |
%files
|
|
115 |
%config %attr(-,gdm,gdm) %{_sysconfdir}/X11/gdm
|
|
116 |
%config %attr(-,root,root) %{_sysconfdir}/X11/dm
|
|
117 |
%{_datadir}/locale/*/LC_MESSAGES/gdm*.mo
|
|
118 |
%{_sbindir}/*
|
|
119 |
%{_bindir}/*
|
|
120 |
%{_libdir}/gtk-2.0/modules/*.so
|
|
121 |
%{_libexecdir}/*
|
|
122 |
%{_datadir}/gdm
|
|
123 |
%{_datadir}/applications/*
|
|
124 |
%{_datadir}/pixmaps/*.png
|
|
125 |
%{_datadir}/pixmaps/faces/*.jpg
|
|
126 |
%{_datadir}/pixmaps/faces/*.png
|
|
127 |
%{_datadir}/icons
|
|
128 |
%{_datadir}/gnome/help/*
|
|
129 |
%{_datadir}/xsessions/*
|
|
130 |
%{_mandir}/man1/*
|
|
131 |
%{_datadir}/omf/*
|
|
132 |
%attr(-,gdm,gdm) /var/lib/gdm
|
|
133 |
%config /etc/pam.d/*
|
|
134 |
%config /etc/security/*
|
|
135 |
|
|
136 |
%changelog
|
15540
|
137 |
* Wed Apr 01 2009 - [email protected]
|
|
138 |
- Merge both upstream Sun-specific patches into one patch.
|
15189
|
139 |
* Fri Feb 20 2009 - [email protected]
|
|
140 |
- Add patch gnome-mount-02-fixdelay.diff. This patch is from upstream, and
|
|
141 |
helps to ensure that gnome-mount waits for mount operations to complete.
|
9397
|
142 |
* Tue Jun 20 2006 - <[email protected]>
|
|
143 |
- Bump to 0.4 and add patch needed for Solaris support
|
|
144 |
* Wed May 03 2006 - <[email protected]>
|
|
145 |
- Created
|