[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Unexpected result 'rpm -bb'
- From: Alexander Volovics <awol home nl>
- To: enigma-list redhat com
- Cc: Wil Cooley <wcooley nakedape cc>
- Subject: Re: Unexpected result 'rpm -bb'
- Date: Thu, 27 Dec 2001 22:19:00 +0100
On Thu, Dec 27, 2001 at 11:45:35AM -0800, Wil Cooley wrote:
> Also Sprach Michael Schwendt <mschwendt yahoo com>:
> > On 2001-12-27, Alexander Volovics wrote:
> >
> > >RPM build errors:
> > > File not found: /var/tmp/bbconf-1.2/usr/man/man1/bbconf.1
> > > Bad exit status from /var/tmp/rpm-tmp.7208 (%doc)
> > >--------------------
> > >
> > >When I look in /var/tmp/bbconf-1.2/usr/man/man1/ it does indeed
> > >NOT contain 'bbconf.1' but it DOES contain 'bbconf.1.gz'.
> > >
> > >But my patched version of bbconf-1.2.tar.gz does NOT contain
> > >the gzipped version 'bbconf.1.gz', only the original 'bbconf.1'.
> > >
> > >1) Where does this gzipped version come from?
> >
> > Red Hat RPm macros that compress manual pages after the %install
> > script part of the spec file.
> Yes, and the easy fix for this is a glob at the end (and use
> the %{_mandir} macro:
>
> %files
> ...
> %{_mandir}/man1/bbconf.1*
I would like to try this but do not know how and where to insert this.
The file 'file.list.bbconf' is generated "automagically" as follows:
-----------------
# Build the file-list automagically :)
cd $RPM_BUILD_ROOT
find . -type d | grep -v include | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | grep -v include | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | grep -v include | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
%pre
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf ${RPM_BUILD_ROOT}
rm ../file.list.%{name}
%files -f ../file.list.%{name}
%defattr(-,root,root)
%doc README README.html TODO NEWS AUTHORS COPYING ChangeLog
------------------
I would appreciate it very much if you could give some concrete
suggestions. (I suppose a straightforward solution is to delete
the "automagic" (find/grep/sed) part and just simply list the files).
But I would much prefer a small addition to the above.
Alexander
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]