Re: need "cheat" to package installed files into RPMS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
*To:* General discussion about the RPM package manager <rpm-list@xxxxxxxxxxxxx>
*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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux