[Fedora-mentors-list] error: Installed (but unpackaged) file(s) found

Marc Wiriadisastra marc.w at smlintl.com.au
Wed Jun 14 06:19:54 UTC 2006


Hi All,

My first discussion re packaging.

I get this error now a bit of googling and finding that on the mailing
list it relates to an error where the files installed are not listed in
the files section.  Please correct me if I'm wrong.

If thats the case that all files installed have to be listed in the
files section how do people go about installing python packages.  My
direct example which I'll list here for completeness of the question is
because in my circumstance there is not a build for this python package
using the standard tools.

rm -rf $RPM_BUILD_ROOT
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}
install -m 644 *.py ${RPM_BUILD_ROOT}/usr/share/%{name}
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/BitTorrent
install -m 644 BitTorrent/*
${RPM_BUILD_ROOT}/usr/share/%{name}/BitTorrent
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
install -m 644 images/flags/*
${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
install -m 644 images/*.png
${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
install -m 644 images/*.ico
${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/en/LC_MESSAGES
install -m 644 locale/en/LC_MESSAGES/*
${RPM_BUILD_ROOT}/usr/share/%{name}/locale/en/LC_MESSAGES
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/h4/LC_MESSAGES
install -m 644 locale/h4/LC_MESSAGES/*
${RPM_BUILD_ROOT}/usr/share/%{name}/locale/h4/LC_MESSAGES

Its basically a script to install all the necessary files into the
respective locations.  The actual running of the program is a bash
script file that runs it using the python -OO /usr/share/rufus/rufus.py

Am I going about this the completely wrong way?

Regards,

Marc




More information about the Fedora-mentors-list mailing list