[virt-tools-list] [virt-viewer 6/7] mingw: Add packages for virt-viewer NSIS installer

Marc-André Lureau mlureau at redhat.com
Wed Jan 23 11:21:30 UTC 2013


as long as this is not for upstream Fedora... Why do you need to build the RPM?

----- Mensaje original -----
> ---
>  mingw-virt-viewer.spec.in | 52
>  ++++++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 51 insertions(+), 1 deletion(-)
> 
> diff --git a/mingw-virt-viewer.spec.in b/mingw-virt-viewer.spec.in
> index cf657f7..06ed9f7 100644
> --- a/mingw-virt-viewer.spec.in
> +++ b/mingw-virt-viewer.spec.in
> @@ -14,15 +14,34 @@ BuildRequires:  mingw32-filesystem >= 23
>  BuildRequires:  mingw64-filesystem >= 23
>  BuildRequires:  mingw32-glib2 >= 2.22
>  BuildRequires:  mingw64-glib2 >= 2.22
> +BuildRequires:  mingw32-gstreamer-plugins-bad-free
> +BuildRequires:  mingw64-gstreamer-plugins-bad-free
> +BuildRequires:  mingw32-gstreamer-plugins-good
> +BuildRequires:  mingw64-gstreamer-plugins-good
>  BuildRequires:  mingw32-gtk2
>  BuildRequires:  mingw64-gtk2
> +BuildRequires:  mingw32-libusbx
> +BuildRequires:  mingw64-libusbx
>  BuildRequires:  mingw32-libvirt >= 0.9.7
>  BuildRequires:  mingw64-libvirt >= 0.9.7
>  BuildRequires:  mingw32-libxml2
>  BuildRequires:  mingw64-libxml2
>  BuildRequires:  mingw32-gtk-vnc >= 0.4.3
>  BuildRequires:  mingw64-gtk-vnc >= 0.4.3
> +BuildRequires:  mingw32-readline
> +BuildRequires:  mingw64-readline
> +BuildRequires:  mingw32-spice-glib
> +BuildRequires:  mingw64-spice-glib
> +BuildRequires:  mingw32-spice-gtk
> +BuildRequires:  mingw64-spice-gtk
> +BuildRequires:  mingw32-usbredir
> +BuildRequires:  mingw64-usbredir
>  BuildRequires:  pkgconfig
> +BuildRequires:  icoutils
> +BuildRequires:  dos2unix
> +BuildRequires:  mingw32-nsis
> +BuildRequires:  hicolor-icon-theme
> +BuildRequires:  gnome-icon-theme
>  
>  BuildArch:      noarch
>  
> @@ -34,6 +53,14 @@ Group:          Applications/Internet
>  Summary:        MinGW Windows virt-viewer console application
>  Group:          Applications/Internet
>  
> +%package -n mingw64-virt-viewer-installer
> +Summary:        MinGW Windows virt-viewer installer
> +Group:          Applications/Internet
> +
> +%package -n mingw32-virt-viewer-installer
> +Summary:        MinGW Windows virt-viewer installer
> +Group:          Applications/Internet
> +
>  %description
>  MinGW Windows virt-viewer console application
>  
> @@ -43,6 +70,12 @@ MinGW Windows virt-viewer console application
>  %description -n mingw64-virt-viewer
>  MinGW Windows virt-viewer console application
>  
> +%description -n mingw64-virt-viewer-installer
> +MinGW Windows virt-viewer installer
> +
> +%description -n mingw32-virt-viewer-installer
> +MinGW Windows virt-viewer installer
> +
>  %{mingw_debug_package}
>  
>  %prep
> @@ -53,10 +86,21 @@ MinGW Windows virt-viewer console application
>  %mingw_configure --with-gtk=2.0
>  %mingw_make %{?_smp_mflags} V=1
>  
> -
>  %install
>  %mingw_make_install DESTDIR=$RPM_BUILD_ROOT
>  
> +%if 0%{?mingw_build_win32} == 1
> +rpm -qa | grep mingw32 | sort | unix2dos >deps.txt
> +makensis -NOCD -DDESTDIR=$RPM_BUILD_ROOT
> build_win32$MINGW_BUILDDIR_SUFFIX/data/virt-viewer.nsis
> +cp virt-viewer-%{version}.exe
> $RPM_BUILD_ROOT/%{mingw32_datadir}/virt-viewer
> +%endif
> +
> +%if 0%{?mingw_build_win64} == 1
> +rpm -qa | grep mingw64 | sort | unix2dos >deps.txt
> +makensis -NOCD -DDESTDIR=$RPM_BUILD_ROOT
> build_win64$MINGW_BUILDDIR_SUFFIX/data/virt-viewer.nsis
> +cp virt-viewer-%{version}.exe
> $RPM_BUILD_ROOT/%{mingw64_datadir}/virt-viewer
> +%endif
> +
>  %find_lang virt-viewer
>  
>  # Don't need the XDG desktop files on Windows
> @@ -83,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
>  %{mingw32_mandir}/man1/virt-viewer.1*
>  %{mingw32_mandir}/man1/remote-viewer.1*
>  
> +%files -n mingw32-virt-viewer-installer
> +%{mingw32_datadir}/virt-viewer/virt-viewer- at VERSION@.exe
> +
>  %files -n mingw64-virt-viewer -f virt-viewer.lang
>  %defattr(-,root,root)
>  %{mingw64_bindir}/virt-viewer.exe
> @@ -100,4 +147,7 @@ rm -rf $RPM_BUILD_ROOT
>  %{mingw64_mandir}/man1/virt-viewer.1*
>  %{mingw64_mandir}/man1/remote-viewer.1*
>  
> +%files -n mingw64-virt-viewer-installer
> +%{mingw64_datadir}/virt-viewer/virt-viewer- at VERSION@.exe
> +
>  %changelog
> --
> 1.8.1
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
> 




More information about the virt-tools-list mailing list