author | davelam |
Sat, 18 Apr 2009 12:26:03 +0000 | |
changeset 15650 | dbcf7e3715dd |
parent 15556 | 79756053d7da |
child 15942 | 40ffef79e81f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWvirt-manager |
|
3 |
# |
|
4 |
# includes module(s): virt-manager |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
15280
aca6853ecd64
* SUNWvirt-manager-spec: Change Ownership to mattman
mattman
parents:
14652
diff
changeset
|
10 |
# Owner: mattman |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use virtmanager = virt-manager.spec |
|
15 |
||
16 |
Name: SUNWvirt-manager |
|
17 |
Summary: Virtual Machine Manager |
|
18 |
Version: %{virtmanager.version} |
|
19 |
SUNW_BaseDir: %{_basedir} |
|
11956 | 20 |
SUNW_Copyright: %{name}.copyright |
9397 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
11643 | 22 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 23 |
|
12106 | 24 |
%ifnarch sparc |
25 |
# these packages are only avavilable on i386/x64 |
|
26 |
# =========================================== |
|
9397 | 27 |
|
28 |
%include default-depend.inc |
|
15650 | 29 |
Requires: SUNWgtk2 |
9397 | 30 |
Requires: SUNWgnome-python-libs |
12065 | 31 |
Requires: SUNWlibvirt |
32 |
Requires: SUNWvirtinst |
|
33 |
Requires: SUNWurlgrabber |
|
15556 | 34 |
Requires: SUNWdesktop-cache |
35 |
Requires: %{name}-root |
|
15650 | 36 |
BuildRequires: SUNWgtk2-devel |
9397 | 37 |
BuildRequires: SUNWgnome-python-libs-devel |
38 |
||
39 |
%package root |
|
40 |
Summary: %{summary} - / filesystem |
|
41 |
SUNW_BaseDir: / |
|
42 |
%include default-depend.inc |
|
43 |
||
9780 | 44 |
%if %build_l10n |
45 |
%package l10n |
|
46 |
Summary: %{summary} - l10n files |
|
47 |
SUNW_BaseDir: %{_basedir} |
|
48 |
%include default-depend.inc |
|
49 |
Requires: %{name} |
|
50 |
%endif |
|
51 |
||
9397 | 52 |
%prep |
53 |
rm -rf %name-%version |
|
54 |
mkdir %name-%version |
|
55 |
%virtmanager.prep -d %name-%version |
|
11643 | 56 |
#unzip the manpage tarball |
57 |
cd %{_builddir}/%name-%version |
|
58 |
gzcat %SOURCE | tar xf - |
|
9397 | 59 |
|
60 |
%build |
|
61 |
cd %{name}-%{version} |
|
62 |
%virtmanager.build |
|
63 |
||
64 |
%install |
|
9498 | 65 |
rm -rf $RPM_BUILD_ROOT |
9397 | 66 |
%virtmanager.install -d %name-%version |
67 |
||
9780 | 68 |
%if %build_l10n |
69 |
%else |
|
70 |
# REMOVE l10n FILES |
|
71 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
72 |
%endif |
|
73 |
||
9397 | 74 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
75 |
||
11643 | 76 |
# install man page |
77 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
78 |
cd %{_builddir}/%name-%version/sun-manpages |
|
79 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
9397 | 80 |
|
81 |
%clean |
|
82 |
rm -rf $RPM_BUILD_ROOT |
|
83 |
||
15556 | 84 |
%post |
85 |
%restart_fmri gconf-cache |
|
9397 | 86 |
|
87 |
%files |
|
13630 | 88 |
%doc -d virt-manager-%{virtmanager.version} README AUTHORS |
13631 | 89 |
%doc(bzip2) -d virt-manager-%{virtmanager.version} COPYING COPYING-DOCS NEWS ChangeLog |
13630 | 90 |
%dir %attr (0755, root, other) %{_datadir}/doc |
9397 | 91 |
%defattr(-, root, bin) |
92 |
%dir %attr (0755, root, bin) %{_bindir} |
|
9455 | 93 |
%{_bindir}/* |
9397 | 94 |
%dir %attr (0755, root, bin) %{_libdir} |
95 |
%dir %attr (0755, root, bin) %{_libdir}/virt-manager |
|
96 |
%{_libdir}/virt-manager/* |
|
97 |
%{_libexecdir}/virt-manager-launch |
|
98 |
%dir %attr (0755, root, sys) %{_datadir} |
|
99 |
%dir %attr (0755, root, bin) %{_datadir}/virt-manager |
|
100 |
%{_datadir}/virt-manager/* |
|
101 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1 |
|
102 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services |
|
103 |
%{_datadir}/dbus-1/services/virt-manager.service |
|
104 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
105 |
%{_datadir}/applications/virt-manager.desktop |
|
9936 | 106 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
107 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help |
|
108 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help/virt-manager |
|
109 |
%{_datadir}/gnome/help/virt-manager/* |
|
110 |
%dir %attr (0755, root, bin) %{_datadir}/omf |
|
111 |
%dir %attr (0755, root, bin) %{_datadir}/omf/virt-manager |
|
112 |
%{_datadir}/omf/virt-manager/virt-manager-C.omf |
|
11643 | 113 |
%dir %attr(0755, root, bin) %{_mandir} |
114 |
%{_mandir}/*/* |
|
9397 | 115 |
|
116 |
%files root |
|
9936 | 117 |
%defattr (-, root, sys) |
9397 | 118 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
119 |
%{_sysconfdir}/gconf/schemas/virt-manager.schemas |
|
120 |
||
9780 | 121 |
%if %build_l10n |
122 |
%files l10n |
|
123 |
%defattr (-, root, bin) |
|
124 |
%dir %attr (0755, root, sys) %{_datadir} |
|
125 |
%attr (-, root, other) %{_datadir}/locale |
|
126 |
%endif |
|
127 |
||
11876 | 128 |
# endif for "ifnarch sparc" |
129 |
%endif |
|
130 |
||
9397 | 131 |
%changelog |
15556 | 132 |
* Fri Apr 3 2009 - [email protected] |
133 |
- use desktop-cache instead of postrun |
|
13630 | 134 |
* Wed Sep 17 2008 - Henry Zhang <[email protected]> |
135 |
- Add %doc to %files for copyright |
|
12106 | 136 |
* Mon Apr 14 2008 - [email protected] |
137 |
- Move '%ifnarch sparc' test above BuildRequires lines as pkgs in those lines |
|
138 |
are not on sparc and so build fails incorrectly. |
|
139 |
* Thu Apr 9 2008 - [email protected] |
|
12065 | 140 |
- reopen the Xen dependencies since they were integrated into NV |
12106 | 141 |
* Fri Mar 28 2008 - [email protected] |
11956 | 142 |
- Add copyright package |
11876 | 143 |
* Wed Mar 19 2008 - [email protected] |
144 |
- Add ifnarch so it only build at i386/x64 platform |
|
11643 | 145 |
* Fri Feb 15 2008 - [email protected] |
146 |
- Add manpage |
|
11370 | 147 |
* Thu Jan 3 2008 - [email protected] |
148 |
- use gconf-install.script instead of an inline script |
|
10107 | 149 |
* Fri Jun 22 2007 - [email protected] |
150 |
- comment out Xen-team deps until they are integrated. |
|
10099 | 151 |
* Thu Jun 21 2007 - [email protected] |
152 |
- Remove virtinst from pkg and add deps. on libvirt, |
|
153 |
urlgrabber and virtinst |
|
9936 | 154 |
* Tue May 22 2007 - [email protected] |
155 |
- Update %files for bumped versions |
|
9780 | 156 |
* Tue Apr 24 2007 - [email protected] |
157 |
- s/0755/-/ in defattr so that files are not made all executable |
|
158 |
- define l10n subpkg |
|
9498 | 159 |
* Thu Mar 08 2007 - [email protected] |
160 |
- Clean out $RPM_BUILD_ROOT at start of the %install section. |
|
9455 | 161 |
* Mon Mar 05 2007 - [email protected] |
162 |
- Add virtinst module |
|
9397 | 163 |
* Fri Jan 12 2007 - [email protected] |
164 |
- Tidy up. |
|
165 |
* Wed Jan 10 2007 - [email protected] |
|
166 |
- fixes from code review: |
|
167 |
handle GConf schemas properly (in new -root pkg); |
|
168 |
use %{_libexecdir}; |
|
169 |
move patch 01 to linux spec file |
|
170 |
* Tue Dec 12 2006 - [email protected] |
|
171 |
- Add Build/Requires SUNWgnome-python-libs/-devel for pygtk. |
|
172 |
* Fri Dec 8 2006 - [email protected] |
|
173 |
- Initial version |
|
15650 | 174 |