Filenames with blanks

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

 



Hello,

I couldn't find anything helpful in the archive, so this is my question:

How can I include filenames with blanks into an RPM package?

I'm using

%files -f filelist

to tell rpmbuild which files to include. This filelist is created by:

find $RPM_BUILD_ROOT -type f -print | \
        sed "s@^$RPM_BUILD_ROOT@@g" > filelist

Results look like this:

/var/tmp/mypackage/one two.gif

But I got an error:

Processing files: mypackage-3.4.9-1
error: Two files on one line: /var/tmp/mypackage/one
error: File must begin with "/": two.gif


So I tried to escape each blank:

find $RPM_BUILD_ROOT -type f -print | \
        sed "s@^$RPM_BUILD_ROOT@@g" | \
        sed 's@ @\\ @g' > filelist

Results look like this:

/var/tmp/mypackage/one\ two.gif

Again, it didn't work out:

Processing files: mypackage-3.4.9-1
error: Two files on one line: /var/tmp/mypackage/one\
error: File must begin with "/": two.gif


Then I tried to put the whole line into quotation marks:

find $RPM_BUILD_ROOT -type f -print | \
        sed "s@^$RPM_BUILD_ROOT@@g" | \
        sed 's@^.* .*$@"&"@g' > filelist

Results look like this:

"/var/tmp/mypackage/one two.gif"

But for the third time I received an error:

Processing files: mypackage-3.4.9-1
error: File not found: /var/tmp/mypackage/one
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/mypackage

I have no clue what I could change? Any other escaping techniques? As this is no software developed by us that I'm trying to package, I cannot change filenames.

I'm using rpm-build-4.4.2.3-20.el5_5.1 on CentOS release 5.5.

Kind regards
Marten
_______________________________________________
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