Next: , Previous: ax_dist_msi, Up: The Macros


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. Use @PACKAGE@ and @VERSION@ to refer to the package name and version respectively. The files and ChangeLog will be filled in automatically. For instance:

       Summary: Foobar
       Name: @PACKAGE@
       Version: @VERSION@
       Release: 0
       License: 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

Download the latest version of ax_dist_rpm.m4 or browse the macro's revision history.

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. This file is offered as-is, without any warranty.