Building a rpm with ant
Mike McGrath
mmcgrath at iesabroad.org
Thu Oct 27 19:44:15 UTC 2005
> -----Original Message-----
> From: fedora-list-bounces at redhat.com
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Paul Smith
> Sent: Thursday, October 27, 2005 12:12 PM
> To: For users of Fedora Core releases
> Subject: Building a rpm with ant
>
> Dear All
>
> I have got a program which is written in Java, and I would
> like to build a rpm for that. Unfortunately, the option
> "buildrpm" is not listed by "ant -projecthelp". Can one even
> so build a rpm without much trouble?
>
> Thanks in advance,
>
> Paul
>
Ant is typically a replacement for "make". Neither of which generate
rpms. What you'd want to do is build an rpm with a spec file, and in
that spec file call on ant.
I've found this link to be quite helpful.
http://www.fedora.us/wiki/PackagingHints
though it doesn't deal specifically with Ant it is still a good
resource. I do use ant to build java packages with rpmbuild.
-Mike
More information about the fedora-list
mailing list