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