need "cheat" to package installed files into RPMS
Andy Helten
andy.helten at dot21rts.com
Mon Feb 15 17:05:28 UTC 2010
Why can't you just name the top-level directory in the %files section:
=========================
%prep
# Nothing to do here.
%build
# Nothing to do here.
%install
# Nothing to do here.
%files
/usr/share/A
=========================
This is what I do when I don't want to rebuild from sources when
building the RPM (and also don't want to list each individual file).
This approach also maintains the file-by-file verification for an
installed package -- so you lose nothing from the "list every file"
approach.
Andy
----- Original Message -----
*From:* Paul Johnson <pauljohn32 at gmail.com>
*To:* General discussion about the RPM package manager
<rpm-list at lists.rpm.org>
*Sent:* 02/15/2010 1:52:47 AM -0600
*Subject:* need "cheat" to package installed files into RPMS
> I have been building RPMs for a long time and I've always lectured new
> users about the need to build from source.
>
> Now I'm in a position where I need to completely ignore that advice.
>
> I have a directory of installed files like so:
>
> /usr/share/A
> /usr/share/B
> /usr/share/C
>
> and I'd like to build a a separate RPM for each subdirectory.
>
> I don't plan to share these RPMs to the outside world. I plan to share
> them among compute nodes in a cluster.
>
> I believe there are some other RPM *cheaters* lurking out there and
> I'd appreciate their advice. :)
>
> PJ
>
>
More information about the Rpm-list
mailing list