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

Re: turn a tarball into RPM



thanks Tim,
and to all that responded.

I read up on the buildroot, stuff. Makes sense now.

steve

Tim Mooney wrote:

In regard to: Re: turn a tarball into RPM, Stephen Mah said (at 3:04pm on...:

thanks for the tip:

Now, I'm getting a weird error:


You're bypassing the buildroot.  Modern RPM really really wants you to
do buildroot packaging -- instead of dumping files into their final
location in the %install section, you install them into a temporary spot
for packaging (/var/tmp/<your-package-name-here> is common).

Read up on BuildRoot installs in Maximum RPM and elsewhere.

Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
getOutputFrom(): Broken pipe

It only happens when I have these 2 lines: install -m 644 %{SOURCE1} /usr/share/icons/foobar_enhancer.png, & /usr/share/icons/foobar_enhancer.png (under %files)

%install
cp -r ${RPM_BUILD_DIR}/foobar-enhancer /opt
install -m 644 %{SOURCE1} /usr/share/icons/foobar_enhancer.png

%files
%defattr(-,root,desktop, 0775)
/opt/foobar-enhancer/*
/usr/share/icons/foobar_enhancer.png


Tim



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