[virt-tools-list] [PATCH virt-viewer] spec: use finer package version in mingw-virt-viewer

Marc-André Lureau marcandre.lureau at gmail.com
Wed Feb 6 12:17:12 UTC 2013


ping

On Tue, Jan 29, 2013 at 4:56 PM, Marc-André Lureau
<marcandre.lureau at gmail.com> wrote:
> This is a proposed solution related to:
> https://bugzilla.redhat.com/show_bug.cgi?id=905268
> ---
>  mingw-virt-viewer.spec.in | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/mingw-virt-viewer.spec.in b/mingw-virt-viewer.spec.in
> index 6fdb8b5..cdbb6be 100644
> --- a/mingw-virt-viewer.spec.in
> +++ b/mingw-virt-viewer.spec.in
> @@ -1,4 +1,5 @@
>  %{?mingw_package_header}
> +%{!?enable_autotools:%define enable_autotools 1}
>
>  Name:           mingw-virt-viewer
>  Version:        @VERSION@
> @@ -44,6 +45,13 @@ BuildRequires:  mingw32-nsis
>  BuildRequires:  hicolor-icon-theme
>  BuildRequires:  gnome-icon-theme
>
> +%if 0%{?enable_autotools}
> +BuildRequires: autoconf
> +BuildRequires: automake
> +BuildRequires: gettext-devel
> +BuildRequires: libtool
> +%endif
> +
>  BuildArch:      noarch
>
>  %package -n mingw32-virt-viewer
> @@ -84,6 +92,11 @@ MinGW Windows virt-viewer installer
>
>
>  %build
> +%if 0%{?enable_autotools}
> +sed -i "s/^AC_INIT.*/AC_INIT([virt-viewer], [$RPM_PACKAGE_VERSION-$RPM_PACKAGE_RELEASE])/" configure.ac
> +autoreconf -if
> +%endif
> +
>  %mingw_configure --with-gtk=2.0
>  %mingw_make %{?_smp_mflags} V=1
>
> --
> 1.8.1.1.439.g50a6b54
>



-- 
Marc-André Lureau




More information about the virt-tools-list mailing list