2012-12-13 21:14:30 +04:00
%{?mingw_package_header}
2012-09-14 20:34:53 +04:00
Name : mingw-virt-viewer
Version : @VERSION@
Release : 1%{?dist} %{?extra_release}
Summary : MinGW Windows virt-viewer console application
License : GPLv2+
Group : Applications/Internet
URL : http://virt-manager.org/
Source0 : ftp://virt-manager.org/downloads/virt-viewer/virt-viewer-%{version} .tar.gz
BuildRequires : mingw32-filesystem >= 23
BuildRequires : mingw64-filesystem >= 23
2013-12-18 17:17:19 +04:00
BuildRequires : mingw32-glib2 >= @GLIB2_REQUIRED@
BuildRequires : mingw64-glib2 >= @GLIB2_REQUIRED@
2012-12-13 21:14:54 +04:00
BuildRequires : mingw32-gstreamer-plugins-bad-free
BuildRequires : mingw64-gstreamer-plugins-bad-free
BuildRequires : mingw32-gstreamer-plugins-good
BuildRequires : mingw64-gstreamer-plugins-good
2013-12-18 17:17:19 +04:00
BuildRequires : mingw32-gtk2 >= @GTK2_REQUIRED@
BuildRequires : mingw64-gtk2 >= @GTK2_REQUIRED@
2012-12-13 21:14:54 +04:00
BuildRequires : mingw32-libusbx
BuildRequires : mingw64-libusbx
2013-12-18 17:17:19 +04:00
BuildRequires : mingw32-libvirt >= @LIBVIRT_REQUIRED@
BuildRequires : mingw64-libvirt >= @LIBVIRT_REQUIRED@
BuildRequires : mingw32-libxml2 >= @LIBXML2_REQUIRED@
BuildRequires : mingw64-libxml2 >= @LIBXML2_REQUIRED@
BuildRequires : mingw32-gtk-vnc >= @GTK_VNC1_REQUIRED@
BuildRequires : mingw64-gtk-vnc >= @GTK_VNC1_REQUIRED@
2012-12-13 21:14:54 +04:00
BuildRequires : mingw32-readline
BuildRequires : mingw64-readline
BuildRequires : mingw32-spice-glib
BuildRequires : mingw64-spice-glib
2013-12-18 17:17:19 +04:00
BuildRequires : mingw32-spice-gtk >= @SPICE_GTK_REQUIRED@
BuildRequires : mingw64-spice-gtk >= @SPICE_GTK_REQUIRED@
2012-12-13 21:14:54 +04:00
BuildRequires : mingw32-usbredir
BuildRequires : mingw64-usbredir
2012-09-14 20:34:53 +04:00
BuildRequires : pkgconfig
2013-04-03 16:02:30 +04:00
BuildRequires : /usr/bin/pod2man
2013-01-22 15:55:52 +04:00
BuildRequires : intltool
2012-12-13 21:14:54 +04:00
BuildRequires : icoutils
BuildRequires : dos2unix
BuildRequires : hicolor-icon-theme
BuildRequires : gnome-icon-theme
2013-04-03 16:02:30 +04:00
BuildRequires : msitools >= 0.92-2
2012-09-14 20:34:53 +04:00
BuildArch : noarch
%package -n mingw32-virt-viewer
Summary : MinGW Windows virt-viewer console application
Group : Applications/Internet
%package -n mingw64-virt-viewer
Summary : MinGW Windows virt-viewer console application
Group : Applications/Internet
2013-04-03 16:02:30 +04:00
%package -n mingw64-virt-viewer-msi
Summary : MinGW Windows virt-viewer MSI
2012-12-13 21:14:54 +04:00
Group : Applications/Internet
2013-04-03 16:02:30 +04:00
%package -n mingw32-virt-viewer-msi
Summary : MinGW Windows virt-viewer MSI
2012-12-13 21:14:54 +04:00
Group : Applications/Internet
2012-09-14 20:34:53 +04:00
%description
MinGW Windows virt-viewer console application
%description -n mingw32-virt-viewer
MinGW Windows virt-viewer console application
%description -n mingw64-virt-viewer
MinGW Windows virt-viewer console application
2013-04-03 16:02:30 +04:00
%description -n mingw64-virt-viewer-msi
MinGW Windows virt-viewer MSI
2012-12-13 21:14:54 +04:00
2013-04-03 16:02:30 +04:00
%description -n mingw32-virt-viewer-msi
MinGW Windows virt-viewer MSI
2012-12-13 21:14:54 +04:00
2012-12-21 18:24:42 +04:00
%{mingw_debug_package}
2012-09-14 20:34:53 +04:00
%prep
%setup -q -n virt-viewer-%{version}
%build
2014-04-02 15:43:17 +04:00
%mingw_configure --with-gtk=2.0 --with-buildid=%{release}
2013-04-03 16:02:30 +04:00
2012-09-14 20:34:53 +04:00
%mingw_make %{?_smp_mflags} V=1
2013-04-12 16:45:56 +04:00
%mingw_make %{?_smp_mflags} V=1 -C data msi
2012-09-14 20:34:53 +04:00
%install
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
2012-12-13 21:14:54 +04:00
%if 0%{?mingw_build_win32} == 1
2013-04-12 16:45:56 +04:00
cp build_win32$MINGW_BUILDDIR_SUFFIX/data/virt-viewer-x86-@VERSION@.msi $RPM_BUILD_ROOT /%{mingw32_datadir} /virt-viewer
2012-12-13 21:14:54 +04:00
%endif
%if 0%{?mingw_build_win64} == 1
2013-04-23 14:50:17 +04:00
cp build_win64$MINGW_BUILDDIR_SUFFIX/data/virt-viewer-x64-@VERSION@.msi $RPM_BUILD_ROOT /%{mingw64_datadir} /virt-viewer
2012-12-13 21:14:54 +04:00
%endif
2012-09-14 20:34:53 +04:00
%find_lang virt-viewer
# Don't need the XDG desktop files on Windows
find $RPM_BUILD_ROOT -name " * . d e s k t o p " -delete
%clean
rm -rf $RPM_BUILD_ROOT
%files -n mingw32-virt-viewer -f virt-viewer.lang
%defattr (-,root,root)
%{mingw32_bindir} /virt-viewer.exe
%{mingw32_bindir} /remote-viewer.exe
%{mingw32_bindir} /windows-cmdline-wrapper.exe
2012-12-21 18:25:58 +04:00
%{mingw32_bindir} /debug-helper.exe
2012-09-14 20:34:53 +04:00
%dir %{mingw32_datadir} /virt-viewer/
%dir %{mingw32_datadir} /virt-viewer/ui/
%{mingw32_datadir} /virt-viewer/ui/virt-viewer.xml
%{mingw32_datadir} /virt-viewer/ui/virt-viewer-about.xml
%{mingw32_datadir} /virt-viewer/ui/virt-viewer-auth.xml
%{mingw32_datadir} /icons/hicolor/*/apps/*
2014-03-13 01:35:25 +04:00
%{mingw32_datadir} /icons/hicolor/*/devices/*
2012-09-14 20:34:53 +04:00
%{mingw32_mandir} /man1/virt-viewer.1*
%{mingw32_mandir} /man1/remote-viewer.1*
2013-04-03 16:02:30 +04:00
%files -n mingw32-virt-viewer-msi
%{mingw32_datadir} /virt-viewer/virt-viewer-x86-@VERSION@.msi
2012-12-13 21:14:54 +04:00
2012-09-14 20:34:53 +04:00
%files -n mingw64-virt-viewer -f virt-viewer.lang
%defattr (-,root,root)
%{mingw64_bindir} /virt-viewer.exe
%{mingw64_bindir} /remote-viewer.exe
%{mingw64_bindir} /windows-cmdline-wrapper.exe
2012-12-21 18:25:58 +04:00
%{mingw64_bindir} /debug-helper.exe
2012-09-14 20:34:53 +04:00
%dir %{mingw64_datadir} /virt-viewer/
%dir %{mingw64_datadir} /virt-viewer/ui/
%{mingw64_datadir} /virt-viewer/ui/virt-viewer.xml
%{mingw64_datadir} /virt-viewer/ui/virt-viewer-about.xml
%{mingw64_datadir} /virt-viewer/ui/virt-viewer-auth.xml
%{mingw64_datadir} /icons/hicolor/*/apps/*
2014-03-13 01:35:25 +04:00
%{mingw64_datadir} /icons/hicolor/*/devices/*
2012-09-14 20:34:53 +04:00
%{mingw64_mandir} /man1/virt-viewer.1*
%{mingw64_mandir} /man1/remote-viewer.1*
2013-04-03 16:02:30 +04:00
%files -n mingw64-virt-viewer-msi
%{mingw64_datadir} /virt-viewer/virt-viewer-x64-@VERSION@.msi
2012-12-13 21:14:54 +04:00
2012-09-14 20:34:53 +04:00
%changelog