SUNWvirt-manager.spec
author dermot
Tue, 06 Mar 2007 12:08:48 +0000
changeset 9455 1ba8958b7391
parent 9397 b16e349d18c5
child 9498 a3c6f9fc9a5b
permissions -rw-r--r--
2007-03-06 Dermot McCluskey <[email protected]> * SUNWurlgrabber.spec: new file * SUNWvirt-manager.spec: added virtinst module * base-specs/virt-manager.spec: bumped tarball to 0.3.1 * base-specs/virtinst.spec: new file
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 SUNWvirt-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
# includes module(s): virt-manager
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# Copyright (c) 2006 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# 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
     8
# 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
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
# Owner: dermotm
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%use virtmanager = virt-manager.spec
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    15
%use virtinst = virtinst.spec
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Name:                    SUNWvirt-manager
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Summary:                 Virtual Machine Manager
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Version:                 %{virtmanager.version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Requires: SUNWgnome-python-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRequires: SUNWgnome-python-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%package root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Summary:                 %{summary} - / filesystem
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
SUNW_BaseDir:            /
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: SUNWpostrun-root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: SUNWgnome-config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%virtmanager.prep -d %name-%version
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    41
%virtinst.prep -d %name-%version
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
cd %{name}-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%virtmanager.build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
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
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%virtmanager.install -d %name-%version
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    51
%virtinst.install -d %name-%version
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%post root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
( echo 'test -x /usr/bin/gconftool-2 || {';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
  echo '  echo "ERROR: gconftool-2 not found"';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
  echo '  exit 0';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
  echo '}';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
  echo 'umask 0022';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
  echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
  echo 'export GCONF_CONFIG_SOURCE';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
  echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%preun root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
  echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
  echo '  exit 0';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
  echo '}';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
  echo 'umask 0022';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
  echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
  echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
  echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
  echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
  echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
  echo 'schemas="$SDIR/virt-manager.schemas';
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
  echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%defattr(-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%dir %attr (0755, root, bin) %{_bindir}
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    92
%{_bindir}/*
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%dir %attr (0755, root, bin) %{_libdir}/virt-manager
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_libdir}/virt-manager/*
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    96
%dir %attr (0755, root, bin) %{_libdir}/python2.4
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
    97
%{_libdir}/python2.4/*
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%{_libexecdir}/virt-manager-launch
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%dir %attr (0755, root, bin) %{_datadir}/virt-manager
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_datadir}/virt-manager/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%dir %attr (0755, root, bin) %{_datadir}/dbus-1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%{_datadir}/dbus-1/services/virt-manager.service
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%dir %attr (0755, root, other) %{_datadir}/applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%{_datadir}/applications/virt-manager.desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%defattr(-, root, other)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%dir %attr (0755, root, other) %{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%{_datadir}/locale/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%files root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%attr (0755, root, sys) %dir %{_sysconfdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%defattr (0755, root, sys)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%{_sysconfdir}/gconf/schemas/virt-manager.schemas
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%changelog
9455
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
   119
* Mon Mar 05 2007 - [email protected]
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
   120
- Add virtinst module
1ba8958b7391 2007-03-06 Dermot McCluskey <[email protected]>
dermot
parents: 9397
diff changeset
   121
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Fri Jan 12 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- Tidy up.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Wed Jan 10 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- fixes from code review:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
  handle GConf schemas properly (in new -root pkg);
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
  use %{_libexecdir};
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
  move patch 01 to linux spec file
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
* Tue Dec 12 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
- Add Build/Requires SUNWgnome-python-libs/-devel for pygtk.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
* Fri Dec  8 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- Initial version