[master][PATCH] Add install-requires target to the Anaconda makefile

Vratislav Podzimek vpodzime at redhat.com
Thu Oct 10 10:51:24 UTC 2013


On Thu, 2013-10-10 at 12:33 +0200, Martin Kolman wrote:
> This targets installs all packages specified as Required in the
> Anaconda specfile.
> 
> Also add some documentation to the install-buildrequires and
> install-requires targets.
> 
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  Makefile.am | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 363bdd0..787d84a 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -91,11 +91,20 @@ bumpver: po-pull
>  	$(MAKE) -C po $(PACKAGE_NAME).pot-update && \
>  	tx push $(TX_PUSH_ARGS)
>  
> +# Install all packages specified as BuildRequires in the Anaconda specfile
> +# -> installs packages needed to build Anaconda
>  install-buildrequires:
>  	srcdir="$(srcdir)" && \
>  	: $${srcdir:=.} && \
>  	yum install $$(grep BuildRequires: $${srcdir}/anaconda.spec.in | cut -d ' ' -f 2)
>  
> +# Install all packages specified as Requires in the Anaconda specfile
> +# -> installs packages needed to run Anaconda and the Anaconda unit tests
> +install-requires:
> +	srcdir="$(srcdir)" && \
> +	: $${srcdir:=.} && \
> +	yum install $$(grep Requires: $${srcdir}/anaconda.spec.in | cut -d ' ' -f 2)
> +
>  # Generate an updates.img based on the changed files since the release
>  # was tagged.  Updates are copied to ./updates-img and then the image is
>  # created.  By default, the updates subdirectory is removed after the
Looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list