Macros by Category Revision History
Search:

ax_dist_rpm

SYNOPSIS

AX_DIST_RPM([SPEC])

DESCRIPTION

Adds support for a rpm dist target.

You will need to create a spec template with everything except the files and the Changlog. @NAME@ will be replaced with the value of @PACKAGE@ and @VER@ will be replaced with the value of @VERSION@. The files and ChangeLog will be filled in automatically. For instance:

    Summary: Foobar
    Name: @NAME@
    Version: @VER@
    Release: 0
    Copyright: GPL
    Group: Productivity/Networking
    Source0: http://somewhere/Foobar/%{name}-%{version}.tar.gz
    URL: http://somewhere
    BuildRoot: %{_tmppath}/%{name}-root
    Prefix: %{_prefix}

    %description
    Foobar does something

    %prep
    %setup

    %build
    %configure
    make

    %install
    %makeinstall

    %clean
    rm -rf $RPM_BUILD_ROOT

    %files
    %defattr(-,root,root)

    %doc AUTHORS BUGS COPYING INSTALL NEWS README

    %changelog

Make sure ax_upload.am is added to aminclude.am and you have 'include aminclude.am' in your toplevel Makefile.am

SOURCE CODE

http://autoconf-archive.cryp.to/ax_dist_rpm.m4

LICENSE

Copyright © 2009 Tom Howard <tomhoward@users.sf.net>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.