List Info

Thread: Creating file list




Creating file list
user name
2006-02-27 16:54:28

Hello,

 

I’m newbie at RPM. I’m reading a document to learn how to build a rpm, and I’m having some troubles creating the file list under %files section. In this document it’s written the following:

 

“At present, the best way to create the file list is to read the makefile to see what files it installs, verify this against the files installed on the build system, and create the list”;

 

As I was said the document was printed some time ago, IR17;d like to know if it’s provided an easier way of making the file list.

 

Thanks in advance

 

Mariano Mediavilla

Creating file list
user name
2006-02-27 19:23:41
On Mon, 2006-02-27 at 17:54 +0100, Mariano Mediavilla wrote:
> Hello, 
> 
>  
> 
> Iÿm newbie at RPM. Iÿm reading a document to learn how
to build a rpm,
> and Iÿm having some troubles creating the file list
under %files
> section. In this document itÿs written the following:
> 
>  
> 
> ´At present, the best way to create the file list is to
read the
> makefile to see what files it installs, verify this
against the files
> installed on the build system, and create the list¡
> 
>  
> 
> As I was said the document was printed some time ago,
Iÿd like to know
> if itÿs provided an easier way of making the file list.

Mimick the actual rpm build process by doing
# DESTDIR=/var/tmp/package-root make install

for *most* Makefiles that should install the package as
if /var/tmp/package-root was the root of the file system.
This will show
you where all files are. You can then place them in the
%files section,
and or separate %files sections like *.h => %files devel
for the devel
package etc..

-- 
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613

_______________________________________________
Rpm-devel mailing list
Rpm-devellists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )