2006-03-29 15:40:14 +04:00
# -*- rpm-spec -*-
2006-07-25 15:24:09 +04:00
# This macro is used for the continuous automated builds. It just
# allows an extra fragment based on the timestamp to be appended
# to the release. This distinguishes automated builds, from formal
# Fedora RPM builds
2006-03-29 15:40:14 +04:00
%define _extra_release %{?extra_release:%{extra_release}}
Name : @PACKAGE@
Version : @VERSION@
2006-08-25 18:58:25 +04:00
Release : 3%{_extra_release}
2006-06-27 19:17:46 +04:00
Summary : Virtual Machine Manager
2006-03-29 15:40:14 +04:00
Group : Applications/Emulators
2006-07-17 19:11:53 +04:00
License : GPL
URL : http://virt-manager.et.redhat.com/
2006-07-25 15:24:09 +04:00
Source0 : http://virt-manager.et.redhat.com/%{name} -%{version} .tar.gz
2006-03-29 15:40:14 +04:00
BuildRoot : %{_tmppath} /%{name} -%{version} -%{release} -root-%(%{__id_u} -n)
2006-07-19 22:33:23 +04:00
# These two are just the oldest version tested
2006-03-29 15:40:14 +04:00
Requires : pygtk2 >= 1.99.12-6
Requires : gnome-python2-gconf >= 1.99.11-7
2006-07-19 22:33:23 +04:00
# Absolutely require this version or newer
2006-08-22 22:50:45 +04:00
Requires : libvirt-python >= 0.1.4-3
2006-07-19 22:33:23 +04:00
# Definitely does not work with earlier due to python API changes
2006-06-17 01:09:28 +04:00
Requires : dbus-python >= 0.61
2006-07-19 22:33:23 +04:00
# Might work with earlier, but this is what we've tested
# We use 'ctypes' so don't need the 'gnome-keyring-python' bits
Requires : gnome-keyring >= 0.4.9
# Minimum we've tested with
2006-08-22 22:50:45 +04:00
# Although if you don't have this, comment it out and the app
# will work just fine - keyring functionality will simply be
# disabled
2006-08-16 00:27:14 +04:00
Requires : gnome-python2-gnomekeyring >= 2.15.4
2006-08-11 00:47:14 +04:00
# Minimum we've tested with
Requires : libxml2-python >= 2.6.23
2006-08-17 23:52:52 +04:00
# Required to install Xen guests
2006-08-22 22:50:45 +04:00
Requires : python-xeninst >= 0.90.1
2006-08-11 00:47:14 +04:00
2006-08-22 22:50:45 +04:00
# Earlier vte han broken python binding module
2006-08-11 00:47:14 +04:00
Requires : vte >= 0.12.2
2006-06-17 01:09:28 +04:00
2006-08-25 18:58:25 +04:00
ExclusiveArch : %{ix86} x86_64 ia64
2006-06-27 01:17:45 +04:00
BuildRequires : pygtk2-devel
BuildRequires : gtk2-devel
2006-06-28 21:46:42 +04:00
BuildRequires : python-devel
2006-08-25 18:58:25 +04:00
BuildRequires : gettext
2006-03-29 15:40:14 +04:00
%description
2006-06-27 19:17:46 +04:00
Virtual Machine Manager provides a graphical tool for administering
virtual machines such as Xen. It uses libvirt as the backend management
API.
2006-03-29 15:40:14 +04:00
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
2006-06-27 01:17:45 +04:00
rm -f $RPM_BUILD_ROOT %{_libdir} /%{name} /sparkline.a
rm -f $RPM_BUILD_ROOT %{_libdir} /%{name} /sparkline.la
2006-08-08 20:02:00 +04:00
%find_lang %{name}
2006-03-29 15:40:14 +04:00
%clean
rm -rf $RPM_BUILD_ROOT
2006-09-02 00:33:32 +04:00
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS=" %{name} . s c h e m a s "
for S in $SCHEMAS; do
gconftool-2 --makefile-install-rule /etc/gconf/schemas/$S > /dev/null
done
update-desktop-database %{_datadir} /applications
%postun
update-desktop-database %{_datadir} /applications
2006-08-08 20:02:00 +04:00
%files -f %{name}.lang
2006-03-29 15:40:14 +04:00
%defattr (-,root,root,-)
2006-07-17 19:11:53 +04:00
%doc README COPYING AUTHORS ChangeLog NEWS
2006-09-02 00:33:32 +04:00
%{_sysconfdir} /gconf/schemas/%{name} .schemas
2006-06-27 01:17:45 +04:00
%{_bindir} /%{name}
%{_libexecdir} /%{name} -launch
%{_libdir} /%{name} /*
2006-07-25 15:24:09 +04:00
%{_datadir} /%{name} /*.glade
%{_datadir} /%{name} /pixmaps/*.png
%{_datadir} /%{name} /pixmaps/*.svg
%{_datadir} /%{name} /*.py
%{_datadir} /%{name} /*.pyc
%ghost %{_datadir} /%{name} /*.pyo
%{_datadir} /%{name} /virtManager/*.py
%{_datadir} /%{name} /virtManager/*.pyc
%ghost %{_datadir} /%{name} /virtManager/*.pyo
%{_datadir} /%{name} /vncViewer/*.py
%{_datadir} /%{name} /vncViewer/*.pyc
%ghost %{_datadir} /%{name} /vncViewer/*.pyo
2006-08-08 20:02:00 +04:00
2006-06-27 01:17:45 +04:00
%{_datadir} /applications/%{name} .desktop
%{_datadir} /dbus-1/services/%{name} .service
2006-03-29 15:40:14 +04:00
%changelog
2006-08-25 18:58:25 +04:00
* Thu Aug 24 2006 Jeremy Katz <katzj@redhat.com> - 0.2.0-3
- BR gettext
* Thu Aug 24 2006 Jeremy Katz <katzj@redhat.com> - 0.2.0-2
- only build on arches with virt
2006-08-22 22:50:45 +04:00
* Tue Aug 22 2006 Daniel Berrange <berrange@redhat.com> - 0.2.0-1
- Added wizard for creating virtual machines
- Added embedded serial console
- Added ability to take screenshots
2006-07-25 15:24:09 +04:00
* Mon Jul 24 2006 Daniel Berrange <berrange@redhat.com> - 0.1.5-2
- Prefix *.pyo files with 'ghost' macro
- Use fully qualified URL in Source tag
2006-07-21 00:02:51 +04:00
* Thu Jul 20 2006 Daniel Berrange <berrange@redhat.com> - 0.1.5-1
- Update to new 0.1.5 release snapshot
2006-07-20 19:34:03 +04:00
* Thu Jul 20 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-1
- Update to new 0.1.4 release snapshot
2006-07-17 19:11:53 +04:00
* Mon Jul 17 2006 Daniel Berrange <berrange@redhat.com> - 0.1.3-1
- Fix License tag
- Updated for new release
2006-06-28 23:50:17 +04:00
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-3
- Added missing copyright headers on all .py files
2006-06-28 21:46:42 +04:00
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-2
- Added python-devel to BuildRequires
2006-06-28 21:00:54 +04:00
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-1
- Change URL to public location
2006-06-17 01:09:28 +04:00
* Fri Jun 16 2006 Daniel Berrange <berrange@redhat.com> - 0.1.0-1
- Added initial support for using VNC console
2006-04-20 18:24:14 +04:00
* Thu Apr 20 2006 Daniel Berrange <berrange@redhat.com> - 0.0.2-1
- Added DBus remote control service
* Wed Mar 29 2006 Daniel Berrange <berrange@redhat.com> - 0.0.1-1
2006-03-29 15:40:14 +04:00
- Initial RPM build