9397
|
1 |
#
|
|
2 |
# spec file for package SUNWvirt-manager
|
|
3 |
#
|
|
4 |
# includes module(s): virt-manager
|
|
5 |
#
|
11370
|
6 |
# Copyright 2008 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 |
#
|
|
10 |
# Owner: dermotm
|
|
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
|
|
29 |
Requires: SUNWgnome-python-libs
|
12065
|
30 |
Requires: SUNWlibvirt
|
|
31 |
Requires: SUNWvirtinst
|
|
32 |
Requires: SUNWurlgrabber
|
9397
|
33 |
BuildRequires: SUNWgnome-python-libs-devel
|
|
34 |
|
|
35 |
%package root
|
|
36 |
Summary: %{summary} - / filesystem
|
|
37 |
SUNW_BaseDir: /
|
|
38 |
%include default-depend.inc
|
|
39 |
Requires: SUNWpostrun-root
|
|
40 |
Requires: SUNWgnome-config
|
|
41 |
|
|
42 |
|
9780
|
43 |
%if %build_l10n
|
|
44 |
%package l10n
|
|
45 |
Summary: %{summary} - l10n files
|
|
46 |
SUNW_BaseDir: %{_basedir}
|
|
47 |
%include default-depend.inc
|
|
48 |
Requires: %{name}
|
|
49 |
%endif
|
|
50 |
|
|
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 |
|
|
61 |
%build
|
|
62 |
cd %{name}-%{version}
|
|
63 |
%virtmanager.build
|
|
64 |
|
|
65 |
|
|
66 |
%install
|
9498
|
67 |
rm -rf $RPM_BUILD_ROOT
|
9397
|
68 |
%virtmanager.install -d %name-%version
|
|
69 |
|
9780
|
70 |
%if %build_l10n
|
|
71 |
%else
|
|
72 |
# REMOVE l10n FILES
|
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
74 |
%endif
|
|
75 |
|
9397
|
76 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
77 |
|
11643
|
78 |
# install man page
|
|
79 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
80 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
81 |
make install DESTDIR=$RPM_BUILD_ROOT
|
9397
|
82 |
|
|
83 |
%clean
|
|
84 |
rm -rf $RPM_BUILD_ROOT
|
|
85 |
|
|
86 |
|
|
87 |
%post root
|
11370
|
88 |
%include gconf-install.script
|
9397
|
89 |
|
|
90 |
|
|
91 |
%preun root
|
|
92 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
93 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
94 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
95 |
echo ' exit 0';
|
|
96 |
echo '}';
|
|
97 |
echo 'umask 0022';
|
|
98 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
99 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
100 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
101 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
102 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
103 |
echo 'schemas="$SDIR/virt-manager.schemas';
|
|
104 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
105 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
106 |
|
|
107 |
|
|
108 |
%files
|
13630
|
109 |
%doc -d virt-manager-%{virtmanager.version} README AUTHORS
|
13631
|
110 |
%doc(bzip2) -d virt-manager-%{virtmanager.version} COPYING COPYING-DOCS NEWS ChangeLog
|
13630
|
111 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
9397
|
112 |
%defattr(-, root, bin)
|
|
113 |
%dir %attr (0755, root, bin) %{_bindir}
|
9455
|
114 |
%{_bindir}/*
|
9397
|
115 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
116 |
%dir %attr (0755, root, bin) %{_libdir}/virt-manager
|
|
117 |
%{_libdir}/virt-manager/*
|
|
118 |
%{_libexecdir}/virt-manager-launch
|
|
119 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
120 |
%dir %attr (0755, root, bin) %{_datadir}/virt-manager
|
|
121 |
%{_datadir}/virt-manager/*
|
|
122 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1
|
|
123 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
|
|
124 |
%{_datadir}/dbus-1/services/virt-manager.service
|
|
125 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
126 |
%{_datadir}/applications/virt-manager.desktop
|
9936
|
127 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
128 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
|
|
129 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help/virt-manager
|
|
130 |
%{_datadir}/gnome/help/virt-manager/*
|
|
131 |
%dir %attr (0755, root, bin) %{_datadir}/omf
|
|
132 |
%dir %attr (0755, root, bin) %{_datadir}/omf/virt-manager
|
|
133 |
%{_datadir}/omf/virt-manager/virt-manager-C.omf
|
11643
|
134 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
135 |
%{_mandir}/*/*
|
9397
|
136 |
|
|
137 |
|
|
138 |
%files root
|
9936
|
139 |
%defattr (-, root, sys)
|
9397
|
140 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
141 |
%{_sysconfdir}/gconf/schemas/virt-manager.schemas
|
|
142 |
|
|
143 |
|
9780
|
144 |
%if %build_l10n
|
|
145 |
%files l10n
|
|
146 |
%defattr (-, root, bin)
|
|
147 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
148 |
%attr (-, root, other) %{_datadir}/locale
|
|
149 |
%endif
|
|
150 |
|
11876
|
151 |
# endif for "ifnarch sparc"
|
|
152 |
%endif
|
|
153 |
|
9780
|
154 |
|
9397
|
155 |
%changelog
|
13630
|
156 |
* Wed Sep 17 2008 - Henry Zhang <[email protected]>
|
|
157 |
- Add %doc to %files for copyright
|
12106
|
158 |
* Mon Apr 14 2008 - [email protected]
|
|
159 |
- Move '%ifnarch sparc' test above BuildRequires lines as pkgs in those lines
|
|
160 |
are not on sparc and so build fails incorrectly.
|
|
161 |
* Thu Apr 9 2008 - [email protected]
|
12065
|
162 |
- reopen the Xen dependencies since they were integrated into NV
|
12106
|
163 |
* Fri Mar 28 2008 - [email protected]
|
11956
|
164 |
- Add copyright package
|
11876
|
165 |
* Wed Mar 19 2008 - [email protected]
|
|
166 |
- Add ifnarch so it only build at i386/x64 platform
|
11643
|
167 |
* Fri Feb 15 2008 - [email protected]
|
|
168 |
- Add manpage
|
11370
|
169 |
* Thu Jan 3 2008 - [email protected]
|
|
170 |
- use gconf-install.script instead of an inline script
|
10107
|
171 |
* Fri Jun 22 2007 - [email protected]
|
|
172 |
- comment out Xen-team deps until they are integrated.
|
10099
|
173 |
* Thu Jun 21 2007 - [email protected]
|
|
174 |
- Remove virtinst from pkg and add deps. on libvirt,
|
|
175 |
urlgrabber and virtinst
|
9936
|
176 |
* Tue May 22 2007 - [email protected]
|
|
177 |
- Update %files for bumped versions
|
9780
|
178 |
* Tue Apr 24 2007 - [email protected]
|
|
179 |
- s/0755/-/ in defattr so that files are not made all executable
|
|
180 |
- define l10n subpkg
|
9498
|
181 |
* Thu Mar 08 2007 - [email protected]
|
|
182 |
- Clean out $RPM_BUILD_ROOT at start of the %install section.
|
9455
|
183 |
* Mon Mar 05 2007 - [email protected]
|
|
184 |
- Add virtinst module
|
9397
|
185 |
* Fri Jan 12 2007 - [email protected]
|
|
186 |
- Tidy up.
|
|
187 |
* Wed Jan 10 2007 - [email protected]
|
|
188 |
- fixes from code review:
|
|
189 |
handle GConf schemas properly (in new -root pkg);
|
|
190 |
use %{_libexecdir};
|
|
191 |
move patch 01 to linux spec file
|
|
192 |
* Tue Dec 12 2006 - [email protected]
|
|
193 |
- Add Build/Requires SUNWgnome-python-libs/-devel for pygtk.
|
|
194 |
* Fri Dec 8 2006 - [email protected]
|
|
195 |
- Initial version
|