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

Christophe Fergeau cfergeau at redhat.com
Mon Feb 11 13:04:51 UTC 2013


On Tue, Jan 29, 2013 at 04:56:44PM +0100, Marc-André Lureau 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
> +

Hmm quite ugly :-/ I'd tend to patch config.h after running
%mingw_configure if we go this road, this is differently ugly, no idea if
this is better

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130211/e1a22fce/attachment.sig>


More information about the virt-tools-list mailing list