having problems wrapping a simple jar file in rpm
mark meyer
geeky2 at hotmail.com
Mon Mar 21 15:39:40 UTC 2011
No. I did not get a response to this question from this list.
thank you,
mark
Date: Fri, 18 Mar 2011 06:46:18 -0700
From: mark_maule at yahoo.com
Subject: Re: having problems wrapping a simple jar file in rpm
To: geeky2 at hotmail.com
Mark:
Did you ever get a response to this? I have a similar situation where I want to gather up a handful of files from various places on a build machine into an RPM and then install them into specific locations on a target machine.
thanks
From: mark meyer <geeky2 at hotmail.com>
To: rpm-list at lists.rpm.org
Sent: Mon, March 7, 2011 1:50:25 PM
Subject:
having problems wrapping a simple jar file in rpm
hello all,
need help wrapping a simple jar file in an rpm.
all of the examples i have found assume that you are going to create the rpm from source code.
for my application - i already have the "built" jar file and want to distribute it to a user as an rpm.
when i try to build the rpm - i get the following error:
>>
Processing files: maximus-2.0.0-1.i586
error: File not found: /home/mark/rpmbuild/BUILDROOT/maximus-2.0.0-1.i386/home/mark/PWMP-EJB.jar
RPM build errors:
File not found: /home/mark/rpmbuild/BUILDROOT/maximus-2.0.0-1.i386/home/mark/PWMP-EJB.jar
<<
the single jar that i am trying to package up is really located in /home/mark/ on my build machine.
also - how do i specify that the contents of the rpm should "land" in a specific directory - example /var/sns/install-2.5.0.9/
thank you,
mark
here is my spec
file:
mark at gecko3 rpmbuild > cat ./SPECS/mark.spec
Summary: Maximus utility for handling everything
Name: maximus
Version: 2.0.0
Release: 1
License: GPL
Group: Development/Tools
%description
%build
%prep
%install
%clean
%post
%postrun
echo -e "i am in postrun \n"
%files
%defattr(-,root,root,-)
/home/mark/PWMP-EJB.jar
here are the settings in my .rpmmacros file
mark at gecko3 rpmbuild > cat ~/.rpmmacros
%packager mark meyer <mmeyer at primexinc.com>
%vendor Primex Wireless
%_topdir /home/mark/rpmbuild/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20110321/26d122b0/attachment.html>
More information about the Rpm-list
mailing list