Joe- I'm trying to do something similar and was wondering if you were successful in your attempt. I've never created a RPM before and am not having any luck. The build process at my company is very simple, label, checkout label, ant clean and ant. The ant puts files in a directory called "deploy". Currently I'm tarring up the deploy directory. The goal is to package up deploy and depending on whether this is a new install or an update, prompt the user for whether or not they want to overwrite the directory /deploy/config (there are only two files in this subdir). The last bit of information is, these files are owned by produser.prod on the build machine and we'd like them to be deployed as such. My setup seems rather disjointed in that typing "which rpm" gives me /bin/rpm (version 4.3.3) as its location but I found other related directories such as: /usr/src/redhat/SPECS /usr/src/redhat/BUILD /usr/src/redhat/SOURCES /usr/src/redhat/SRPMS And then I have all these directories: /etc/rpm /etc/logrotate.d/rpm /etc/cron.daily/rpm /usr/lib/rpm /usr/share/mc/extfs/rpm /usr/include/rpm /usr/local/USAGE/etc/rpm /usr/local/USAGE/usr/lib/rpm /usr/local/USAGE/var/lib/rpm /var/lib/rpm /var/lock/rpm I tried to use RUST but it threw errors for almost everything I did. At one point I was able to get a spec file out of it but I couldn't build the RPM. RUST is in: /tmp/rust/etc/rpm /tmp/rust/build/.trash/etc/rpm /tmp/rust/build/.trash/usr/lib/rpm /tmp/rust/build/.trash/var/lib/rpm /tmp/rust/usr/lib/rpm /tmp/rust/var/lib/rpm My feeling is that I'm simply not experienced enough in my environment to get a good grip on what I'm doing. If someone couple spend 15 minutes or so to take this in and send me an email that might help me sort all this out, I would greatly appreciate it. Lisa Alfieri Sr. Release Engineer Gotuit Media, Inc. lalfieri@xxxxxxxxxx 781-970-5460 -----Original Message----- From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx] On Behalf Of Joe Van Dyk Sent: Wednesday, February 01, 2006 6:38 PM To: RPM Package Manager Subject: Re: packaging up a bunch of files On 2/1/06, Joe Van Dyk <joevandyk@xxxxxxxxx> wrote: > Hi, > > I want to package up a bunch of files (pre-built binaries) that should > get installed to /usr/local/some/path. > > Would the following spec snippet be ok? > > BuildRoot: %{_tmpdir}/%{name}-%{version}-root > > %description > Description here > > %prep > %setup > > %build > # Nothing, it's already built. > > %install > rm -rf $RPM_BUILD_ROOT > mkdir -p $RPM_BUILD_ROOT%{_prefix}/local/%{name}-%{version} > cp -R . $RPM_BUILD_ROOT%{_prefix}/local/%{name}-%{version} > > %files > # What goes here? I just want all the files that were in the tar.gz > file to be installed to /usr/local/some/path. I have %files $RPM_BUILD_ROOT%{_prefix}/local/%{name}-%{version} But that gives an error at the very end saying: RPM build errors: File must begin with "/": $RPM_BUILD_ROOT/usr/local/gcc-3.3.1 Any ideas? _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list