SUNWvirt-manager.spec
changeset 15650 dbcf7e3715dd
parent 15556 79756053d7da
child 15942 40ffef79e81f
equal deleted inserted replaced
15649:241f195b9ae0 15650:dbcf7e3715dd
    24 %ifnarch sparc
    24 %ifnarch sparc
    25 # these packages are only avavilable on i386/x64
    25 # these packages are only avavilable on i386/x64
    26 # ===========================================
    26 # ===========================================
    27 
    27 
    28 %include default-depend.inc
    28 %include default-depend.inc
       
    29 Requires: SUNWgtk2
    29 Requires: SUNWgnome-python-libs
    30 Requires: SUNWgnome-python-libs
    30 Requires: SUNWlibvirt
    31 Requires: SUNWlibvirt
    31 Requires: SUNWvirtinst
    32 Requires: SUNWvirtinst
    32 Requires: SUNWurlgrabber
    33 Requires: SUNWurlgrabber
    33 Requires: SUNWdesktop-cache
    34 Requires: SUNWdesktop-cache
    34 Requires: %{name}-root
    35 Requires: %{name}-root
       
    36 BuildRequires: SUNWgtk2-devel
    35 BuildRequires: SUNWgnome-python-libs-devel
    37 BuildRequires: SUNWgnome-python-libs-devel
    36 
    38 
    37 %package root
    39 %package root
    38 Summary:                 %{summary} - / filesystem
    40 Summary:                 %{summary} - / filesystem
    39 SUNW_BaseDir:            /
    41 SUNW_BaseDir:            /
    40 %include default-depend.inc
    42 %include default-depend.inc
    41 
       
    42 
    43 
    43 %if %build_l10n
    44 %if %build_l10n
    44 %package l10n
    45 %package l10n
    45 Summary:                 %{summary} - l10n files
    46 Summary:                 %{summary} - l10n files
    46 SUNW_BaseDir:            %{_basedir}
    47 SUNW_BaseDir:            %{_basedir}
    47 %include default-depend.inc
    48 %include default-depend.inc
    48 Requires:                %{name}
    49 Requires:                %{name}
    49 %endif
    50 %endif
    50 
    51 
    51 
       
    52 %prep
    52 %prep
    53 rm -rf %name-%version
    53 rm -rf %name-%version
    54 mkdir %name-%version
    54 mkdir %name-%version
    55 %virtmanager.prep -d %name-%version
    55 %virtmanager.prep -d %name-%version
    56 #unzip the manpage tarball
    56 #unzip the manpage tarball
    57 cd %{_builddir}/%name-%version
    57 cd %{_builddir}/%name-%version
    58 gzcat %SOURCE | tar xf -
    58 gzcat %SOURCE | tar xf -
    59 
    59 
    60 
       
    61 %build
    60 %build
    62 cd %{name}-%{version}
    61 cd %{name}-%{version}
    63 %virtmanager.build
    62 %virtmanager.build
    64 
       
    65 
    63 
    66 %install
    64 %install
    67 rm -rf $RPM_BUILD_ROOT
    65 rm -rf $RPM_BUILD_ROOT
    68 %virtmanager.install -d %name-%version
    66 %virtmanager.install -d %name-%version
    69 
    67 
    80 cd %{_builddir}/%name-%version/sun-manpages
    78 cd %{_builddir}/%name-%version/sun-manpages
    81 make install DESTDIR=$RPM_BUILD_ROOT
    79 make install DESTDIR=$RPM_BUILD_ROOT
    82 
    80 
    83 %clean
    81 %clean
    84 rm -rf $RPM_BUILD_ROOT
    82 rm -rf $RPM_BUILD_ROOT
    85 
       
    86 
    83 
    87 %post
    84 %post
    88 %restart_fmri gconf-cache
    85 %restart_fmri gconf-cache
    89 
    86 
    90 %files
    87 %files
   114 %dir %attr (0755, root, bin) %{_datadir}/omf/virt-manager
   111 %dir %attr (0755, root, bin) %{_datadir}/omf/virt-manager
   115 %{_datadir}/omf/virt-manager/virt-manager-C.omf
   112 %{_datadir}/omf/virt-manager/virt-manager-C.omf
   116 %dir %attr(0755, root, bin) %{_mandir}
   113 %dir %attr(0755, root, bin) %{_mandir}
   117 %{_mandir}/*/*
   114 %{_mandir}/*/*
   118 
   115 
   119 
       
   120 %files root
   116 %files root
   121 %defattr (-, root, sys)
   117 %defattr (-, root, sys)
   122 %attr (0755, root, sys) %dir %{_sysconfdir}
   118 %attr (0755, root, sys) %dir %{_sysconfdir}
   123 %{_sysconfdir}/gconf/schemas/virt-manager.schemas
   119 %{_sysconfdir}/gconf/schemas/virt-manager.schemas
   124 
       
   125 
   120 
   126 %if %build_l10n
   121 %if %build_l10n
   127 %files l10n
   122 %files l10n
   128 %defattr (-, root, bin)
   123 %defattr (-, root, bin)
   129 %dir %attr (0755, root, sys) %{_datadir}
   124 %dir %attr (0755, root, sys) %{_datadir}
   130 %attr (-, root, other) %{_datadir}/locale
   125 %attr (-, root, other) %{_datadir}/locale
   131 %endif
   126 %endif
   132 
   127 
   133 # endif for "ifnarch sparc"
   128 # endif for "ifnarch sparc"
   134 %endif
   129 %endif
   135 
       
   136 
   130 
   137 %changelog
   131 %changelog
   138 * Fri Apr  3 2009 - [email protected]
   132 * Fri Apr  3 2009 - [email protected]
   139 - use desktop-cache instead of postrun
   133 - use desktop-cache instead of postrun
   140 * Wed Sep 17 2008 - Henry Zhang <[email protected]>
   134 * Wed Sep 17 2008 - Henry Zhang <[email protected]>
   175   move patch 01 to linux spec file
   169   move patch 01 to linux spec file
   176 * Tue Dec 12 2006 - [email protected]
   170 * Tue Dec 12 2006 - [email protected]
   177 - Add Build/Requires SUNWgnome-python-libs/-devel for pygtk.
   171 - Add Build/Requires SUNWgnome-python-libs/-devel for pygtk.
   178 * Fri Dec  8 2006 - [email protected]
   172 * Fri Dec  8 2006 - [email protected]
   179 - Initial version
   173 - Initial version
       
   174